audio - pause sound in flash using as2 -
i'll using as2 in pause button
on (press) { if (pause!=true) { playing=false; paused=true; stopped=false myconditiontext="paused"; mymusicposition=_root.my_sound.position/10000; _root.my_sound.stop("sound1"); } }
but whn play sound 1 time
i want loop sound how can loop sound...
please me.
on pause button is:
on (press) { if (playing!=true) { playing=true; paused=false; stopped=false myconditiontext="playing"; _root.my_sound.start(mymusicposition,0); } _root.my_sound.onsoundcomplete = function() { _root.mycondition.textcolor = 0x00ff00; myconditiontext="completed"; } }
you can specify number of loops when calling sound.start()
. or listen onsoundcomplete
(like do) , start sound over.
Comments
Post a Comment