Right now, I am sending a number of variables to flash from my php file using swfobject. The variables I am sending are like the following...
so.addVariable("val1", "6"); so.addVariable("val2", "3"); so.addVariable("val3", "0"); so.addVariable("val4", "9"); and so on...
In my flash file I am looping through the variables like so:
for(var i=1;i<=nbrSections;i++) { var segVal = eval(pClip + ".val" + i); }
It works beautifully except for val3. In other words, whenever the value of the variable is zero, eval pukes.
Is there any way to get it to accept zero? Or do it another way?
all help appreciated
I'd be a little suspect of swfObject in this case.
However you might try
var segVal = pClip["val" + i];
um... nevermind... it was the next line that was screwing up.
D'oh.
One of these days, I'll put a problem in the Flash forum that doesn't make me look like an ass.
Don't hold your breath 
Thanks anyway, P.