use mx.utils.Delegate to assign the function this.portfolio.onInit = Delegate.create(this,portfolioOnInit);
On 5/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:
Hi All I have this code within a class: class com.tequila.canon.PosterArtist.Controller { private var portfolio:MovieClip; public function Controller() { trace("Controller constructor: " + this.portfolio); this.portfolio.addEventListener("onClick",this); this.portfolio.onInit = this.portfolioOnInit; } private function portfolioOnInit():Void { trace("onInit: " + this); this.flipCorner("bottom_right"); } } But I get a compile error saying that flipCorner does not exist. It doesn't exist in COntroller but it does exist in portfolio. How do I get around this? Many Thanks Giles. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- j:pn http://www.lennel.org _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com