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
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
2 matches
Mail list logo