The following code is to make the movie stop/start when i click ‘btn1’.
btn1.addEventListener(MouseEvent.CLICK, clicked)
function clicked (event:Event)
{
var stopped:int
trace(stopped)
if(stopped==0)
{
stopped=1
this.stop()
}
else
{
stopped=0
this.play()
}
}
The movie stops when i click it, but never resumes. Also the trace always shows ‘stopped’ as 0. Any help would be appreciated.