all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Combo Pause and Play Button Actionscripting?


Re: Combo Pause and Play Button Actionscripting? Bruce McMurry
9/30/2004 2:24:50 PM
flash actionscript:
a simple way to accomplish this is with a 2 frame movie clip... put the
play button on frame 1 and the pause button on frame 2... place a stop
action on each of the 2 key frames. When the user clicks the play button
the button code should first start to play the sound and then
gotoAndStop at frame 2... the user now sees the pause button... yada,
yada...

[quoted text, click to view]
Combo Pause and Play Button Actionscripting? kevin_tx
9/30/2004 7:13:00 PM
Hey all...

I'm using flash mx pro 2004 and exporting for Flash 7 player and am wondering
how to create actionscript whereby an individual button first appears as a
"pause" button when audio is playing and then when user presses the pause
button, it reverts to a "play" button and audio is stopped.

Thanks in advance for your help in this matter...

Sincerely,

Kevin

Re: Combo Pause and Play Button Actionscripting? kglad
9/30/2004 7:57:37 PM
audioBtn.onPress=function(){
if(!toggle){ // use toggle instead of !toggle if your sound if off by default
yourSound.stop();
} else {
youSound.start();
}
toggle=!toggle;
AddThis Social Bookmark Button