This content has been marked as final. Show 4 replies
Functions are like variables - they are members of some class. And as such they can be referenced in similar ways. For example, if you have an instance of the Button class you can invoke its getStyle method either by doing:
b.getStyle("color") or b["getStyle"]("color").
You can do the same: var menuFunction:Function = this[event.item.@value); menuFunction(); Make sure you type your variable as Function.
The second example maybe exactly what I need. I will try it shortly
I tested this and it seems to work well.
OK, since this works, how can I go about doing the same thing for an HTTPService.send()?
In other words, I want to execute the send method of one of many HTTPServices based on data from an external source.
I know, you solve one of my problems, and I ask for more. I do appreciate the help...