Re: [Flashcoders] moving functions one scope up

2007-01-25 Thread Andy Herrman
Yea, Delegate would probably work (assuming I'm understanding correctly): import mx.utils.Delegate; // I think that's the right path // STUFF var myVariable:Number = 10; myButton.onRelease = Delegate.create(this, function() { this.myAction(); }); // I think this line would work too, but I'm not

[Flashcoders] moving functions one scope up

2007-01-25 Thread Helmut Granda
Hello all, I was looking for some recomendations into moving functions one level up. Let me show you a piece of code to explain what I am trying to accomplish: //This code is within a Class var myVariable:Number = 10; myButton.onRelease = myAction; private function myAction() { trace(_paren