I want to start a scene in silence and toggle sound on/off with a button.
When the scene starts there is also an info box which must be clicked away.
My problem now is, that the sound will start playing as soon as the infobox is clicked away.
Of course there is no trigger for sound on the infobox, just an alpha tween for the togglesound button.
I suspect that this is a default behavior of the ipad or am I doing something wrong here?
On my desktop everything runs as expected.
Code
<plugin name="soundinterface" url="sound/soundinterface.swf" volume="1.0" keep="true" alturl="sound/soundinterface.js" onloaded="playsound(shuttle_launch,sound/shuttle_launch.mp3,0);pausesound(shuttle_launch);"/>
<plugin name="snd" url="buttons/soundonoff.png" align="rightbottom" x="16" y="32" alpha="0.0" scale="1.0" crop="0|50|50|50" onclick="pausesoundtoggle(shuttle_launch); switch(crop, 0|0|50|50, 0|50|50|50);"/>
...
...
...
<plugin name="caption"
url="buttons/caption.png"
align="bottomright" x="16" y="32"
onloaded="set(alpha,0); tween(alpha,1.0);"
onclick="hidecaption();"
/>
<action name="hidecaption">
if(plugin[caption].enabled,
set(plugin[caption].enabled,false);
tween(plugin[snd].alpha, 1.0);
tween(plugin[caption].alpha, 0.0, 0.5, default, removeplugin(caption)););
</action>
Display More
Thank you
Jürgen