# Shape, MovieClip or Sprite?!

**URL:** <https://forum.kirupa.com/t/shape-movieclip-or-sprite/245894>\
**Category:** flash\
**Created:** [December 5, 2007, 9:50am UTC](https://forum.kirupa.com/t/shape-movieclip-or-sprite/245894 "2007-12-05T09:50:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunetics](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lunetics](https://forum.kirupa.com/u/lunetics)\
**Post date:** [December 5, 2007, 9:50am UTC](https://forum.kirupa.com/t/shape-movieclip-or-sprite/245894/1 "2007-12-05T09:50:04Z")

</div>

Take a look at the code below:  
[AS]  
//var frame:Shape = new Shape();  
//var frame:Sprite = new Sprite();  
var frame:MovieClip = new MovieClip();  
frame.graphics.lineStyle(4, 0x333333, 1, true);  
frame.graphics.drawRoundRect(0, 0, 200, 200, 9);  
frame.graphics.endFill();  
frame.x = 50;  
frame.y = 50;

addChild(frame);  
[/AS]

This ‘frame’ can be created as a Shape, Sprite or MovieClip. In this case, are there any different between those? Better performance? In what case should I use this and in what case that? :huh:
