View Full Version : Certain x, y dont work.
JoMan
November 29th, 2004, 04:38 PM
Hi,
I have a problem regarding the x, and y coordinates on a flash project of mine. Whenever I set the x and y coordinates for a movieClip:
function setPos() {
with (mc1) {
_x = 400;
_y = 300;
}
}
The MovieClip never gets sent to the proper coordinates. If anyone could help me, that would be great. Thanks.
Sincerely,
-Joman.
Michael Chen
November 29th, 2004, 05:25 PM
Personally I don't like using the "with" function.
However I think that should work. By the way are you calling the "setPos" function from another movie clip?
If all else fails, try _root.mc1._x = 400; _root.mc1._y = 300;
JoMan
November 29th, 2004, 06:03 PM
Thankyou for replying :).
Yes, I declared the setPos function with '_root.onEnterFrame = setPos'. The '_root.mc1._x = 400' does the same thing as what I had before.
senocular
November 29th, 2004, 06:10 PM
Are you sure there arent any other processes that might be re-positioning the clip somewhere else directly after that is called? And are you sure you are referencing it properly? (i.e. does a trace of mc1 "trace(mc1);" actually trace the movieclip you're attempting to move?)
Tinuviel
November 29th, 2004, 06:12 PM
I actually did something very similar recently. Check this out, it'll probably help:
http://www.kirupaforum.com/forums/showthread.php?t=77414
JoMan
November 29th, 2004, 06:29 PM
I actually did something very similar recently. Check this out, it'll probably help:
http://www.kirupaforum.com/forums/showthread.php?t=77414
Oh, Thankyou, that fixed my problem! Thankyou everyone for your help :).
peace
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.