I have a document class that looks like this:
package
{
import Map;
import Hero;
import flash.events.Event;
import flash.display.MovieClip;
import flash.display.Stage;
public class VelunaStory extends MovieClip
{
public static var STAGE:Stage;
private var player:Hero;
public var map:Map;
public function VelunaStory()
{
STAGE = this.stage;
map = new Map();
player = new Hero();
}
}
}
Is it possible to access a property of the Map class (though map defined in the Document class) from within the hero class?