all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Why won't my square move? _x help pleas.


Why won't my square move? _x help pleas. Habitmaster
5/25/2004 10:22:49 PM
flash actionscript:
As I trace _x I see that it isn't changing.
The following code is in a loop. The value of _x gets traced successfully but
doesn't change.

// quad_mc is the instance name for my movi clip.
on(release) {
quad_mc._x = _x + ((_x * 10) / 100); // the idea is for _x to increase by
10% of its value
trace(_x);
}

Thanks, Will
Re: Why won't my square move? _x help pleas. inhswebdev
5/25/2004 10:27:26 PM
try this;
// quad_mc is the instance name for my movi clip.
on(release) {
quad_mc._x += ((quad_mc._x * 10) / 100); // the idea is for _x to increase by
10% of its value
trace(quad_mc._x);
}

I didn't try it, but that would be my first guess.
Re: Why won't my square move? _x help pleas. Habitmaster
5/25/2004 11:06:00 PM
AddThis Social Bookmark Button