开发者

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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜