I’m kind of embarrassed I’m having trouble with this, but I guess I’m still just a Young Flash Padwan…
I’m trying to use switches in a Flash project I’m working with right now, but in the process I’ve discovered that either there’s something I don’t know about setProperty, if, or both.
The first thing I wrote was for a button’s actions:
You should try something, a simple debug :
put another layer in your movie, and in the first frame put a dynamic text zone called test. Go to the frame where you test if dog ==1, and press F5 so that the text zone stays there during the whole process.
Now in the first frame of that layer, put the action test = dog ;
You’ll see if your variable dog really transits where you want it to.
And why don’t you write dog = 1 ; instead of (set (dog,1) ; ?
Last but not least, do you use at any point a movie clip ? Where’s your animation ?
I just had two lines of code misplaced. It was a simple stupid mistake. At least I don’t have to feel bad about my lack of flashibility over it, and instead just my ability to goof up every now and then…