flash pendulum motion
- Started
- Last post
- 5 Responses
- striplab
so, i've got a client that wants some objects in his flash movie to act like the main image scrolling in this page
gmillustration.com/collection1.h...
i can easily have the main movie clip of images slide to a _x position, but it's the "overshoot/recoil/center" movement that I'm having a hard time generating. I think I know what it needs to do, but not having a great time writing the actionscript.
thoughts or help are very appreciated.
- canuck0
some type of tween.as is in order
- striplab0
i think i'm a step or two ahead of that kind of insight, canuck; but thanks...
- level20
http://www.robertpenner.com/inde⦠Look at the tweening equations - I think he has .as functions you can download..
- phirschybar0
I think canuck is referring to this: check it out and make all your as look like butta: proto.layer51.com/d.aspx?f=804
- unfittoprint0
//paste function where the slider
// containing the pictures residefunction slide(targetx){
clearInterval(slideLoop);
slideLoop = setInterval(this,"chkSlide", 30, targetx)
};function chkSlide(targetx){
slider._x += (targetx-slidex)/4
if(Math.abs(targetx-slider._x) < 1){
clearInterval(slideLoop);
}
}//usage for 25% thumbs...
thumb.onPress = function(){
slide(-this._x*4)
}