PDA

View Full Version : import FLASH Array to AMS Table



stickck
10-21-2007, 08:54 AM
Just asking for a favor...

I'm pulling in a txt file that contains a few FLASH Arrays using the textfile.readtostring.

Has anyone created a function for this yet that they wouldn't mind sharing?

basically, the ~ sign separates the increments for the array, and the & sign precedes and proceeds the array.

thanks for any help you guys can give me.


Chris

reteset
10-21-2007, 12:23 PM
hi i hope this will help you
this function gets only values of arrays and returns a numerically indexed table containing the flash arrays
Array~1=Hello&Array~2=My&Array~3=Name&Array~4=Is&Array~5=Serkan
function in Global Functions

bye

stickck
10-21-2007, 04:45 PM
Very close! I can make a few small changes to get it working.

my array looks like this...


&Quest = TYPES OF FRUIT~Apples~Oranges~Bananas~Pears~Grapes&

the very first item of the array is the QUIZ name. then the questions (or in this case fruit names will follow) i didn't give a value to each of the fruits like in your sample but i should be able to edit your scripts pretty easily.


&Ans_A=na~True~True~True~True~True&

&Ans_B=na~False~False~False~False~False&

those two lines would be the Answer options for each of the questions (Fruits)

Thank you so much for your help!

Chris