I'm trying to get my buttons to work on iPads and iPhones. Here's the code of my buttons. On the iPad, pausing the music is no problem, but I can't get it to resume. What am I not including?
Code
<plugin name="soundinterface" url="soundinterface.swf" alturl="soundinterface.js"
keep="true"
volume=".1"
onloaded="playsound(1,'%SWFPATH%/audio/music.mp3',0);" />
<!-- PERSONAL TOUCH: Sound mute/resume button -->
<plugin name="bg-play"
url="soundoff.png"
onloaded="set(alpha,0); tween(alpha,.8);"
zorder="2"
origin="topleft"
edge="topleft"
y="25" x="25"
visible="false"
keep="true"
onhover="showtext(Resume Music);"
onclick="action(playsound)" />
<plugin name="bg-mute"
url="sound.png"
onloaded="set(alpha,0); tween(alpha,.8);"
zorder="2"
origin="topleft"
edge="topleft"
y="25" x="25"
visible="true"
keep="true"
onhover="showtext(Pause Music);"
onclick="action(mutesound)" />
<action name="playsound">
resumesound(1);
set(plugin[bg-mute].visible,true);
set(plugin[bg-play].visible,false);
</action>
<action name="mutesound">
pausesound(1);
set(plugin[bg-mute].visible,false);
set(plugin[bg-play].visible,true);
</action>
Alles anzeigen
Even when I change the resumesound (1) with playsound(1,'%SWFPATH%/audio/music.mp3',0); it still doesn't play.