# Assign a linkage class to a movieclip instance?

**URL:** https://forum.kirupa.com/t/assign-a-linkage-class-to-a-movieclip-instance/303941
**Category:** Uncategorized
**Created:** [January 29, 2010, 11:56am UTC](https://forum.kirupa.com/t/assign-a-linkage-class-to-a-movieclip-instance/303941 "2010-01-29T11:56:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)
#### Post date: [January 29, 2010, 11:56am UTC](https://forum.kirupa.com/t/assign-a-linkage-class-to-a-movieclip-instance/303941/1 "2010-01-29T11:56:21Z")

</div>

Hi.

The problem: I’ve got a class (BasicButton) that extends MovieClip to extend the ‘button’ capabilities. To this class I pass a movieClip instance (saved in BasicButton.button) and then I add to it some fancy events and fx functionalities to ‘button’. All fine, I used it for years… BUT, if I for example want to set say x,y or alpha properties, I have to set them to BasicButton.button. I don’t like this. I’d like to set directly to the BasicButton instance.

The question: I know, I can assign the linkage class, or maybe better the linkage basic class of the movieclip to BasicButton. But it’s not my case. Is there a way to do it via actionscript? 🙂
