开发者

How to create ActionScript 3.0 component capable of rotate/translate/skew/scale animation for use in Flash CS?

开发者 https://www.devze.com 2022-12-24 06:35 出处:网络
I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is t

I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is then animated using Flash CS. Animation is performed using rotat开发者_运维知识库e/translate/scale/skew tools.

How to create such a component and add it to Flash CS library?


load the image using the Loader class, make sure you have permissions to alter the image, or else embed it into a Sprite to get around the permissions to alter the image.

the actual animation is supported in the Sprite/MovieClip/bitmap classes, have a look at the transformMatrix class and tween them with something like TweenLite.

0

精彩评论

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