Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I ignore stops?

Status
Not open for further replies.

SteveHolmes

Technical User
Joined
Jun 21, 2003
Messages
1
Location
US
Hi

I have developed an animation of a procedure for a machine. There are fifteen steps to the procedure. I have a menu of numbered buttons for each step in the procedure. when a button is pressed it goes to the relative frame and plays until that step is finidhed and the stops. Now I want to create a play entire animation button as well. How do I get flash to ignore the 15 stops when that button is pressed?

 
use an if function!

put this on the button that allows playing without interruption:

_level0.mayIplay="yes";

then on the relative frames put this instead of stop:

if(_level0.mayIplay!=="yes"){
stop();
}

of course you'll have to set the variable mayIplay to another value if you want to stop the movie. in fact it does not matter to which values since the only thing that is important is, that it is set to "yes" if you want the film to continue, but the value "no" would probably be an appropriate one :-)



regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top