PDA

View Full Version : Easing with mouse click question in MX



gmcgrawa
July 8th, 2003, 02:21 PM
I hae gone through the tutorial on how to use a mouse click to ease a movie clip and there is something I can't quite figure out.

If I want to have the clip start at a different location, I need to change the:

onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}

When I change this to where I want to put the movie clip, it still doesn't place it in the right location.

Another thing...if I want the movement to be associated with a button, do I place the:

onClipEvent (mouseDown) {
endX = _root._xmouse;
endY = _root._ymouse;
}

on the button specifying onClipEvent(slider_MC.mouseDown) {}
onClipEvent (enterFrame) {


Thanks! Sorry if this is a little confusing, I will try to post a copy of the fla I am working on if anyone needs to see what I am trying to do.

jingman
July 8th, 2003, 03:18 PM
you should certainly post the fla.

As for placing it where you want, _x and _y alone are relative coordinates, so make sure you aren't thinking that say, 0,0 is in the top left corner of the stage. That can get confusing, you just have to try and stay on top of it.

gmcgrawa
July 8th, 2003, 04:06 PM
Here is the FLA...

Keep in mind that this is the first webpage I have ever tried...so please be gentle!

I am trying to get the slider_MC (bar with the arrow on top) to slide when a button is clicked...

I only have one button but you get the point.

Thanks

gmcgrawa
July 8th, 2003, 04:06 PM
a

rustybones
April 5th, 2004, 08:53 PM
was this ever solved ? I am trying to do the same thing...any help would be great !

lostinbeta
April 5th, 2004, 09:16 PM
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
} should be
onClipEvent (load) {
endX = 0;
endY = 0;
speed = 5;
}