Hi people. I am going through the tutorial in the Flash MX 2004 Bible, Chap 33 “Creating A Game in Flash” when on page 1000, the author states in a side note that “We don’t use the var keyword here because we want the style variables to be scoped to the main timeline of the movie. In this way, we can access the styles from various functions throughout the game.”
I’ve noticed what I thought were two ways to declare variables:
- “someVar:Type = someThing”
- “var somVar:Type = someThing”
I never knew what the difference was between these two methods. Is this what the author is talking about?