Need help! :S

need help asap on moving background (drag control?)

i need to make somthing like the nokia l’amour flash site whereby the background moves (and with ease) when you move ur mouse.

here are the examples…
l’amour 2nd wave
l’amour

not sure if the effect only works on Mac, but you’ll be able to “move” the background (as well as the products) when you move your mouse.

so far i’m only able to get the effect but without the “ease” effect with this:

startDrag("", true);
setProperty("…/picture", _x, getProperty("", _x)-2);
if (getProperty ("", _x)>=398) {
setProperty("…/picture", _x, “-800”);
}
if (getProperty ("", _x)<=0) {
setProperty("…/picture", _x, “0”);
}
startDrag("", true);
setProperty("…/picture", _y, getProperty("", _y)
-2);
if (getProperty ("", _y)>=180)
setProperty("…/picture", _y, “-400”);

if (getProperty ("", _y)<=0) {
setProperty("…/picture", _y, “0”);
}

i need to create with Ease effect like the nokia one… any help available?

i need to submit my project in less than 24 hrs time! ur help is greatly appreciated!!

oh man…
I am fealing like looking to some kind of antique thing… your code I mean…
half of it deprecated since… flash 5… no? ands its flash 9 coming soon…
what you was doing all this time… sleaping winter sleap?

Naw first of all. Easing is animation efect. So you will have to make some kind of procces, constantly changing object position with ActionScript, and make animation with it.

startDrag cant be used here…

process can be created with setInterval or simply by puting script on MovieClip event: enterFrame.

there is simple formula for easing animation:

<Object Propierty> += (<Desired object Propierty after easing>-<Object Propierty>)*<easing factor>;

<easing factor> is a real number from 1 to 0

ehample:

_root.picture._x += (500-_root.picture._x)*0.3

Its simple math.

you will whant to connect your <Desired object Propierty after easing> with mause position.
_xmouse
to make it animate on mouse movements.

Have fun flashing.