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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stupid Question: Static variables

Status
Not open for further replies.

DraconicArchmage

Programmer
Jan 19, 2002
3
US
I can't beleive I have to come here again to ask one of the stupidest questions I can think of: How does one make a variable that will maintain it's value for all frames and timelines of the movie? Sorry for the lack of description of the problem, but I think this is as clear as I can put it.

What I want to do is have a FirstTimeRunning variable. Problem is, it seems to reset every frame. The way it's working is it has 2 frames and loops between them. I'm not sure if it's clearing every time the frame changes or every time it loops. Eitherway, it'd be helpful to have such a variable, and I'm nearly positive Flash is able to do this.
 
If you set a variable on the first frame of your movie, and don't re-assign another value to it anywhere, my guess is that it wouldn't change!

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top