Getter and Setter in a Class
//inside the object class (BonecoCesar, for exemple)
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::SET THE VIDEO URL
public function set myVideoUrl(myVideoURL:String):void {
_myVideoURL = myVideoURL;
};
public function get myVideoUrl():String {
return _myVideoURL;
};
//inside the main class
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::BONECO CÉSAR
cesar = new BonecoCesar();
cesar.myVideoUrl = "videos/cesar.flv";----------->>>myVideoUrl
cesar.x = 0;
cesar.y = stage.stageHeight - cesar.height;
addChild(cesar);