Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 110690

Re: Storing functions with arguments as String

$
0
0

I have a static class that mainly functions as a mediator between my main and other classes. This static class has a dictionary that looks like this:

 

    public static var dict:Dictionary = [
   {index: 1, effect: "upgrade(front,1)",condition:"!isFront(empty,self)" }....}]

 

I want to be able to call the stored function like this:

 

Function(dict[0].effect).call()


Viewing all articles
Browse latest Browse all 110690

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>