First Post! I like what you’ve done with the place.
I'm was getting good with as2 but recently made the mind switch from, I'll learn as3 tomorrow to as3 is awesome. The problem for me is that I don't understand the scope for classes. I know I can trace a variable on the main time line when the var is declared in the class. But how do you access a main time line var from a class?
Here’s an example - main time line Monkey.fla
var cagedMonkies:int = 10;
var monkeyTransport:MovieClip = new CarTrunk();
Here’s the second part - CarTrunk.as
package {
import flash.display.MovieClip;
public class CarTrunk extends MovieClip {
public function CarTrunk() {
trace(cagedMonkies);
}
}
}
What would I need to change or do to make code like this work?
**Thankful People:**