greg
01-13-2011, 06:33 AM
I'm using several MP3 sounds that way:
<view id="backgroundSound" play="false" source="00.mp3" />
The idea is to preload sound to be used later. However, when the view is created, the first half second the sound is played. I tried to use:
<view id="backgroundSound" play="false" >
<handler name="oninit" >
this.setAttribute("source", "00.mp3");
</handler>
</view>
... same result. What am I doing wrong??
<view id="backgroundSound" play="false" source="00.mp3" />
The idea is to preload sound to be used later. However, when the view is created, the first half second the sound is played. I tried to use:
<view id="backgroundSound" play="false" >
<handler name="oninit" >
this.setAttribute("source", "00.mp3");
</handler>
</view>
... same result. What am I doing wrong??