-
Not sure why attachMovie clip isnt working in this instance
The line: topSubNav.attachMovie("subText", "subText"+y, 0);
doesnt seem to be working correctly. The spelling is correct.
I am trying to attach a movie clip inside movieclip: topSubNav
anyIdeas?
__________________________________________________ ____________
for(x=0; x<3; x++) {
for(y=0; y<2; y++) {
topSubNav.attachMovie("subText", "subText"+y, 0);
trace("name"+this._name)
topSubNav.eval("subText"+y)._x = orgX;
topSubNav.eval("subText"+y)._y = orgY;
topSubNav.eval("subText"+y).label.htmlText = topLevel[x][y];
trace("topLevel[x][y]" + topSubNav.eval("subText"+y)._y);
topSubNav.navBGobj._height += 25;
}
this.attachMovie("topLevelItem","item"+x, x+4);
eval("item"+x)._y = yPos;
eval("item"+x)._x = xPos;
....... yada yada yada }
-
-
well incase anyone is in the least bit interested... i figured it out
i had to put the full path in the eval() statement
old:
topSubNav.eval("subText"+1)._y = yada yada.....
new:
eval("topSubNav.subText"+1)._y = yada yada.....
this is helpful down the road i suppose.
-
well incase anyone is in the least bit interested... i figured it out
i had to put the full path in the eval() statement
old:
topSubNav.eval("subText"+1)._y = yada yada.....
new:
eval("topSubNav.subText"+1)._y = yada yada.....
this is helpful down the road i suppose.
-
Senior Member
topSubNav.attachMovie("subText", "subText"+y, 0);
isnt work properly because of for (x=...) cycle.
first :
you "overwrite" "subText"+y at same depth = 0.
second :
to say , you will use instead of 0(depth), y ... the problem appear after y full cycle, because ... every time the "x" cycle is incremented ... you overwrite again subText0, subText1 in y cycle.
I hope Im not so confused in my poor english
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
|