Ideas are Worthless Unless Acted Upon
http://asgamer.com/2009/using-string-variables-to-call-functions-in-as3
var myfunc:String = "functionFromVariable";
public function functionFromVariable() : void { trace("I was ran from a string"); }主要是下面這句, 酷!this[myfunc]();
public function functionFromVariable() : void { trace("I was ran from a string"); }
主要是下面這句, 酷!
this[myfunc]();
張貼留言
沒有留言:
張貼留言