How to create ActionScript 3.0 component capable of rotate/translate/skew/scale animation for use in Flash CS?
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.
精彩评论