View Single Post
  #1 (permalink)  
Old Sep 14th, 2006, 09:14
artdog artdog is offline
Junior Member
Join Date: Feb 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Condition on button action

Hopefully I will be able to explain this so someone can understand.

I am using a button to tell a movie clip to goto and play from a labelled frame.
I only want this button to do this if that movie clip is currently at a particular frame, otherwise I don't want the button to anything.

I am thinking that I can set a variable when the movie clip gets to that frame and set a condition on the button if the variable is 0 the button will not work. I have no idea how to write this in action script though.

I realize this will probably need a long explanation but after reading through quite a bit of actionscript documentation, I still can't figure out how to write this.
Reply With Quote