I've got a problem using variables in my Flash project.
I've got a variable called "count" declarate in a layer of my main timeline.
Like this: _global.count=0;
In my movieclip i want to set that variable from 0 to 1.
For do that I wrote in a code layer of my mc: _global.count=1;
Now... When i perform a new action the variables count return to 0.
It's seem that Flash reset all variables.
If you move away from the frame where you declare the variaable and return to it after the value has changed, it will be reset to the value it was declared with because that line of code executes each time you enter that frame.