once you create a variable/function in your class it becomes available across your whole movie. Caveat: This is not true for DisplayObjects (Objects that are part of the DisplayList like TextFields, MovieClips, Sprites etc.,) DisplayObjects are (in general) only available in the Scene/Frame where they are actually on stage DisplayObjects that belong to different Scenes can therefore be named identically without flash throwing an error. So you can call updateScore() from anywhere inside your movie, it will always use the same variable to increment your score and use a DisplayObject that is named "scorecounter" that is currently available on stage to display the score. There is a very good series, that explains these kind of fundamentals for Beginners: ActionScript 3 fundamentals: Functions | Adobe Developer Connection PS: It is strongly advised to avoid any kind of timeline-based programming (timeline-code/scenes etc.), since debugging that kind of code becomes quickly a nightmare, even in small projects. Scenes are basically a relic of Actionscript1/2 that have no place in a Language that wants to be object-oriented. (AS3)
... View more