I usually created a movieclip in flash and assign it to actionscript class(using export for actionscript method in its property panel) that exteds movieclip.
but sometimes movieclip is just too heavy for that,is there any possible way to draw a sprite directly in flash(not by code),and control it in actionscript-3
I usually created a movieclip in flash and assign it to actionscript class(using export
Share
Just change the base class to flash.display.Sprite instead of flash.display.MovieClip when converting the graphic to symbol or by right-click the object in the library . You’ll notice how the icon in the library will change from the standard “blue” MC-icon to a “green” sprite icon. You can then control it in your code as you usually control a MC, with a couple of differences.
Basically Movie clips are sprites with a timeline and methods/properties to manipulate it. The HUGE difference is that MovieClip is a dynamic class and Sprite a static one