all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Executing a string as a command



Re: Executing a string as a command BackBayChef
5/12/2004 4:48:57 PM
flash actionscript: You might want to take a look at my utilities
(http://www.backbaychef.com/AS2.0/). I have made a function called execute
and it executes a string command.

BackBayChef
www.backbaychef.com

Executing a string as a command SamInLosAngeles
5/12/2004 9:35:01 PM
I am hoping that someone can help with the following ActionScript problem. I
need to read data from a file and the data that needs to be read is in a text
file with URL format (q1=aaa&q2=bbb&q3=ccc - and so on). I want to code this in
a loop so that the name of the variable that contains the data is built
dynamically ( "myDataObject.q" + myQ - where q represents the number of the
loop - yielding the string "myDataObject.q3" for example).

How do I execute/run this string as a command?

Thanks for any suggestions you can give me.
AddThis Social Bookmark Button