PDA

View Full Version : Variable named "add" confuses flash! Help!


marclalosh
04-04-2003, 05:04 PM
Hello,

Anyone have any ideas for a workaround?...

I'm using a script that *requires* a variable named "add". I can't change the script. The problem is that Flash views this as a syntax error when I use setVariable since it's also a Flash command.

Any ideas??????!

CyanBlue
04-04-2003, 06:14 PM
Um... Something like this???this["add"] = "Hello???";
trace(this["add"]);You might want to show us what kind of code needs help so that others can help you... ;)

One thing I can tell you is that you are in trouble... :p

marclalosh
04-04-2003, 07:14 PM
That did it!

If I were a munchkin I would say "I thank you very sweetly for doing it so neatly..." etc.

But since I'm not a muchkin, "THANKS!!!!!!!!!!!!!!!!!!!!!!"

CyanBlue
04-04-2003, 07:36 PM
You're welcome... ;)

As I have said, you are asking for trouble here...

Create another variable and assign it and use that one instead... ;)