Ian,
That worked, however, I need to do something a bit different.
I have a mc with some motion tweens. there are two frame lables in the mc,
"open" and "close". When the user goes over a button, it starts the "open"
animation, and on rollOut it plays "close". Unfortunatly, when you rollOver
and it starts to "open", if you rollOut before it is done moving it will
continue moving to finish the "open" animation.
What I really need is: on rollOver the "open" animation starts, and if the
mouse rolls out before the 30 frame animation is complete, the animation
will appear to 'reverse' smoothly.
Do you know how to do this?
If you have anymore questions please feel free to ask. I have been pulling
my hair out for 4 days over this. I an just not good enough.
I hope you can help. I have posted this same request 3 different ways but no
one responds. You are the first to respond and I am very grateful.
The file that I am really building is located here
http://www.blookie.com/blookie/helpVan.htm. It is a different one than you
saw before.
Thanks.
Van
[quoted text, click to view] "Ian" <ian_m_watson@yahoo.com> wrote in message
news:2gbg0jFpdrhU1@uni-berlin.de...
> Hey Van,
>
> > how do i make a mc slide across the stage and stop at specified
location?
>
> Try this.
>
> Hey Van,
>
> > how do i make a mc slide across the stage and stop at specified
location?
>
> Give this a try.
>
> var mouseOverFlag_boo = false;
> var limitX_num = 500;
>
> ball_MC.onRollOver = function() {
> mouseOverFlag_boo = true;
> }
>
> ball_MC.onRollOut = function() {
> mouseOverFlag_boo = false;
> }
>
> // this function will execute on every frame
> ball_MC.onEnterFrame = function() {
> // move square_MC only if mouse is over ball_MC AND the _x
> // of square_MC is less than or equal to the limit we set above
> if (mouseOverFlag_boo == true && square_MC._x <= limitX_num) {
> square_MC._x += 20;
> }
> //trace("!");
> }
>
> Ian
>
>