Quiz score not updating flash as2
variables are scoped to movie clips and persist as long as the movie clip on which they are defined exists.Sometimes, that's longer than we need them to live.
Your approach to variable addressing will depend on what you want to happen when you place instances of a movie clip symbol on various timelines.
The old syntax is deprecated and no longer recommended.
Table 2-1 shows equivalencies between Flash 4 and Flash 5 syntax when addressing variables.
To is attached to our button, and our button is attached to the main timeline, our variable is indirectly attached to the main timeline.
We may, therefore, access the variable from frame 2 as we did before. A variable's scope describes when and where the variable can be manipulated by the code in a movie.