
03.11.2003, 18:13
|
|
Регистрация: Oct 2003
Сообщений: 11
|
class MyClass {
private var _Prop1:String = "2";
private var _Prop2:XML;
function MyClass(){
_Prop2 = new XML();
var ref:MyClass = this;
this._Prop2.onLoad = function()
{
ref._Prop1 = "1";
trace ("In onLoad: " + ref._Prop1);
ref.traceProp1 ();
ref.traceProp1_prvt ();
};
this._Prop2.load("class_attendance_report.xml");
}
function traceProp1 ():Void
{
trace ("in public method: " + _Prop1);
}
private function traceProp1_prvt ():Void
{
trace ("in private method: " + _Prop1);
}
}
|