I am trying to make something like this [color=#000020]http://www.go2nplay.com[/color] /, to place mouse on the images they I move myself, giving a half effect that 3d, seeing what he has behind. I am obtaining to move my image of deep, but the others I do not obtain, I made this so far. as I move the other images?
- I created one mc emptiness with the instancia drag.
- image with the instancia of pic
//mc drag
startDrag (“drag”, true);
//== stage
sx = 200;
sy = 260;
//== mouse
dx = getProperty (“drag”, _x);
dy = getProperty (“drag”, _y);
//== image background
w = getProperty (“pic”, _width);
h = getProperty (“pic”, _height);
//== moviment
p_x = ((w/sx)dx)((1-(sx/w))-1);
p_y = ((h/sy)dy)((1-(sy/h))-1);
//== back image
setProperty (“pic”, _x, p_x);
setProperty (“pic”, _y, p_y);
gotoAndPlay (2);