Fluid MovieClip with mouse pan at AS3
In fact, all I want to have is getting this pan effect and to be able to add buttons inside fluidly resizing main Mo开发者_如何学PythonvieClip.
See this example: www.avmevsimifilm.com
Do you have a good idea to make something working like this?
Thanks
Parallax scrolling for the parallax effect
and the "fluid" pan effect is probably just:
smoothCoeficitent = 0.2;
x = x + (targetX-x)*smoothCoeficient;
where targetX would be some future position based on mouseX (say targetX = mouseX; or similar);
精彩评论