PDA

View Full Version : Variable Variables


moomoocow
08-19-2004, 05:17 PM
Hello all.

I'm reading in a string of variables using LoadVars, and the script generates a list of variables such as


itemID1=....
itemID2=....
etc, etc..

Is there a way in actionscript to read those variables even if i don't know how many there are? I was thinking something like

while(returns a value){

ASItemID+i = PHPitemID+i

}

so i would spit out

ASITEMID1 = (value of PHPitemID1)
ASITEMID2 = (value of PHPitemID2)
etc, etc

Thanks