-
Left side of assignment operator must be variable or property
I am pretty newbie in terms of flash, but I have a text in action script 2.0 flash player 1.0:
onClipEvent (construct)
{
var collProps = [];
this.photoColl = new mx.utils.CollectionImpl();
var collProp;
var i = 0;
while (i < collProps.length)
{
itemObj0 = new com.flashloaded.PhotoItem();
collProp = collProps[i];
for (var itemProps in collProp)
{
itemObj0[itemProps] = collProp[itemProps];
} // end of for...in
this.photoColl.addItem(itemObj0);
++i;
} // end while
mouseWheelFlip = true;
autoFlip = 0;
flipSound = "";
flipSpeed = 10;
nameBold = false;
nameColor = 0;
nameDistance = 0;
namePosition = "bottom center";
nameSize = 20;
nameFont = "Arial";
embedFont = false;
folderPath = "";
preloadSet = 0;
xmlPath = "lanamodernac.xml";
hpers = 2.000000E-001;
vpers = 2.000000E-001;
view = 50;
reflectionAlpha = 10;
reflectionDepth = 60;
reflectionDistance = 0;
reflectionExtend = 0;
selectedReflectionAlpha = 20;
showName = false;
showReflection = false;
photoHeight = 200;
photoWidth = 200;
selectedY = 0;
defaultId = 0;
holderAlpha = 100;
holderBorderAlpha = 100;
holderBorderColor = 15000804;
holderColor = 16777215;
scaleMode = "showAll";
selectedScale = 150;
spacing = 50;
zoom = 100;
zoomType = "selected";
}
and have an error in the 'new mx.utils.CollectionImpl this.photoColl = (); "who can not solve a try for a month and nothing. The error is:
Left side of assignment operator must be variable or property. eval(com.flashloaded)="PhotoItem";
-
More info on eval() here.
Since Flash 5, you cannot use eval on left side of an equation. Some solutions are proposed on the link above.
gparis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|