View Full Version : Flash Gurus Help Me
nemoBejingler
July 10th, 2003, 09:54 PM
i have this on the first frame on the main timeline:
middleMain.temp ._x = test[2];
temp is not a movie clip, it is a variable, how can i make it look for that variable value inside of middleMain instead of it looking for a movieclip called temp inside of middleMain.
THX
thoriphes
July 10th, 2003, 10:03 PM
just temp._x then.
nemoBejingler
July 10th, 2003, 10:06 PM
temp is located inside of movieclip middleMain, and even if it wasn't, i don't believe your idea will work.
THX
thoriphes
July 10th, 2003, 10:10 PM
...nevermind.
if you want to access the temp variable from inside middleMain (for example, code attached to middleMain), then you would just get it by simple using temp instead of middleMain.temp
since the code would be within middleMain, then all of its variables, including temp would be local, meaning you can simply call each variable without having to use middleMain.variable
nemoBejingler
July 10th, 2003, 10:34 PM
my bad, guess i didn't explain myself well enough. the temp variable is on main timeline, the value of the temp variable is the name of a movieclip inside of the movieclip middleMain. lets say that the value of temp is middleSecond. i want to change middleMain.middleSecond._x to lets say to 5 from the main timeline. but instead of:
middleMain.middleSecond._x
use the variable temp
middleMain.temp ._x = 5
thoriphes
July 10th, 2003, 10:39 PM
ok, i see. so this should work:
middleMain.temp = middleMain.middleSecond;
//now you are free to do to middleMain.temp as you would middleMain.middleSecond
middleMain.temp._x = 5;
nemoBejingler
July 10th, 2003, 11:19 PM
PROPS TO YOU!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.