# How to assign a class dynamically?

**URL:** <https://forum.kirupa.com/t/how-to-assign-a-class-dynamically/311745>\
**Category:** Uncategorized\
**Created:** [July 15, 2010, 10:19am UTC](https://forum.kirupa.com/t/how-to-assign-a-class-dynamically/311745 "2010-07-15T10:19:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![just4kicks](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@just4kicks](https://forum.kirupa.com/u/just4kicks)\
**Post date:** [July 15, 2010, 10:19am UTC](https://forum.kirupa.com/t/how-to-assign-a-class-dynamically/311745/1 "2010-07-15T10:19:38Z")

</div>

Hi

I am currently having a scenario where I have a Container class and wish to extend it’s capabilities to TabContainer and SliderContainer. Both the component are using the same swf file.

Can I define a linkage for the movieclip in library using Container and change it to TabContainer dynamically through actionscript? How?

Thanks in advance.
