AS3 Call a function by its name


/ Published in: ActionScript 3



Copy this code and paste it in your HTML
  1. var f:Function = object["function_name"] as Function;

URL: http://blog.open-design.be/2009/09/23/call-a-function-by-its-name-in-as3/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.