Hi list~, first post here.
I'm a totally newbie to AS2.0, so I think this might be a dumb question .
o_o
I got a problem when I try to call a private function in the onload handle
of a inner XML object.
// MyClass.as
class MyClass{
private var myxml:XML;
function MyClass(){
myxml = new XML();
myxml.onLoad = myXMLLoad;
myxml.load("somexml.xml");
}
private function myXMLLoad(){
trace("xml loaded");
myPrivateFunc();
}
private function myPrivateFunc(){
trace(this);
}
}
//FLA file
import MyClass;
var t = new MyClass();//the output window shows "xml loaded" only.
when I try to call the myPrivateFunc, it fails.
How to invoke that func when the XML instance is loaded?
many thanks
--
t.E.l : +8605513602273
m.o.B : +8613855184110
q.Q : 7387905
B.L.o.G : http://old9.wordpress.com
E.m.A.i.L : qi.jiahui⊕gmail.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders