Shape, Sprite, MovieClip and other displayed objects: when to use?

There are a large number of displayed objects in the package flash.display. It is not clear to me in which situation I should use Shape, Spriteor MovieClip. What is pro and contras in using each of them?

Thanks in advance!

+3
source share
2 answers
  • Shape is the simplest display object that you can add to the scene. this is the most limited: you cannot add a child to it (does not extend DisplayObjectContainer), does not have interactivity (does not extend InteOnObject), does not have a timeline
  • Sprite DisplayObjectContainer InteractiveObject, , . , , , .
  • MovieClip Sprite, , /, , , , - " ", .

, , MovieClips Flash Authoring. "", Sprite, , .

+12

, :

  • Shape - , . , DisplayObject graphics, .
  • Sprite - , . DisplayObjectContainer, . .
  • MovieClip - Sprite . ( Flash).
+3

All Articles