what the difference is between extend MovieClip and extends Sprite ?

what the difference is between extend MovieClip and extends Sprite ?
offrenbarunaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CyanBlueConnect With a Mentor Commented:
Yes you can, but that will make the app heavier as MovieClip has more functionality built in...

CyanBlue
0
 
CyanBlueCommented:
Simply, you can have only one frame with the Sprite whereas you can have many frames with the MovieClip...

CyanBlue
0
 
offrenbarunaAuthor Commented:
so if I do extend Sprite is gonna affect just one frame on my Project and if I use extend MovieClip is gonna affect many frames in my project.

Thanks for answering !
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
CyanBlueCommented:
No, that's the length of the frame of what you have just created...

For example, if you do var mc:MovieClip = new MovieClip();, the mc can have multiple frames whereas the sp in var sp:Sprite = new Sprite(); can only have one frame...

CyanBlue
0
 
offrenbarunaAuthor Commented:
haaaaaa, so If I want to have more flexibility I can always extend as MovieClip ?
0
 
offrenbarunaAuthor Commented:
Nice man, thanks a lot
0
All Courses

From novice to tech pro — start learning today.