[Flashcoders] Delegate Help

2006-10-02 Thread [EMAIL PROTECTED]
i need to call playFlv() inside another function, but this ain't working... and i have never used Delegate class or some other workaround private function playFlv(file:String){ trace(file); } private function getFLV(id:String):Void{ var xml:XML = new XML(); xml.onLoad =

Re: [Flashcoders] Delegate Help

2006-10-02 Thread Yehia Shouman
You have different ways to do that, Highlighted in red what I added to your code in the 2 styles: 1) If you plan to do it clean, here it goes. import mx.utils.Delegate; private var xml:XML= new XML(); private function playFlv(file:String){ trace(file); } private function