that1guy
02-05-2009, 03:09 AM
Say I create a library symbol with only one frame, and I do not want to instantiate the symbol with actionscript. How do I reduce its overhead as much as possible? In the symbol properties dialogue box, should I
A) select Type: Graphic
B) select Type: MovieClip and leave Export for ActionScript unchecked
C) select Type: MovieClip and check Export for ActionScript, and set
Class: SomeClassName
Base class: flash.display.Sprite
What is best for framerate?
What is best for memory usage?
What happens to a symbol with Type: Graphic when the swf compiles? There's no corresponding AS3 class. Does a graphic get its own timeline?
What happens to a symbol with Type: MovieClip (and Export unchecked) if it only has one frame when the swf compiles? Does it still get a timeline?
A symbol with Type: MovieClip and Export checked with
Class: SomeClassName
Base class: flash.display.Sprite
apparently becomes a dynamic subclass of Sprite called SomeClassName. This sounds to me like the least overhead, because a Sprite does not have a timeline. However, the subclass is dynamic, and it's also being exported for actionscript when it doesn't need to be. Is this really the best way?
A) select Type: Graphic
B) select Type: MovieClip and leave Export for ActionScript unchecked
C) select Type: MovieClip and check Export for ActionScript, and set
Class: SomeClassName
Base class: flash.display.Sprite
What is best for framerate?
What is best for memory usage?
What happens to a symbol with Type: Graphic when the swf compiles? There's no corresponding AS3 class. Does a graphic get its own timeline?
What happens to a symbol with Type: MovieClip (and Export unchecked) if it only has one frame when the swf compiles? Does it still get a timeline?
A symbol with Type: MovieClip and Export checked with
Class: SomeClassName
Base class: flash.display.Sprite
apparently becomes a dynamic subclass of Sprite called SomeClassName. This sounds to me like the least overhead, because a Sprite does not have a timeline. However, the subclass is dynamic, and it's also being exported for actionscript when it doesn't need to be. Is this really the best way?