Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Error msg question


Who?
6/22/2004 9:39:13 PM
Hiya,

I've inherited a project with uncommented code. Great.
Its from MX and Im from MX 2004. Super.

After Ive loaded the proj into MX2004, i ctrl enter and i get
the following error msg;

Scene=Scene 1, layer=mc - controller, frame=1:Line 15: Left side of
assignment operator must be variable or property.
eval("w" + i) = 2000 * i - 25000;

Im not an advanced actionscripter, Id say more of an early
intermediate, so my guess is that this prehaps has to do with syntax
differences between ActionScript and ActionScript 2.0?

If anyone could offer wisdom on this Id appreciate it

hemendras NO[at]SPAM mindfiresolutions.com
6/22/2004 11:45:22 PM
Hi,

The problem is eval("w" + i) = 2000 * i - 25000;

Well eval returns a fully qualified reference to the object who's name
is passed to it and that should be assigned to some variable but here
you are trying to assign the value to a eval function itself that is
not posible.


Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
Jack.
6/23/2004 11:50:59 AM
Eval() on the left side of an argument causes error
http://www.macromedia.com/support/flash/ts/documents/assignment_area.htm

Who?
6/23/2004 8:16:57 PM
Super. That Technote did the trick.
thanks
w


On Wed, 23 Jun 2004 11:50:59 +0000 (UTC), "Jack."
[quoted text, click to view]
AddThis Social Bookmark Button