I have a flash program that needs to play and pause when the button is clicked, right now I have this code
var status;
status = stop
on (release)
{
if (status == stop)
{
play();
status = play;
}
if (status == play)
{
stop();
status = stop;
}
}
this is of course is not right. my var is in the wrong place but i dont want to declair on every “on (release)”
any help would be great.