# \[MTASC & Code Injection\] Getting Stuck On Custom Classes

**URL:** <https://forum.kirupa.com/t/mtasc-code-injection-getting-stuck-on-custom-classes/327130>\
**Category:** flash\
**Created:** [February 7, 2012, 4:18pm UTC](https://forum.kirupa.com/t/mtasc-code-injection-getting-stuck-on-custom-classes/327130 "2012-02-07T16:18:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zachwlewis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zachwlewis/32/350_2.png) [@zachwlewis](https://forum.kirupa.com/u/zachwlewis)\
**Post date:** [February 7, 2012, 4:18pm UTC](https://forum.kirupa.com/t/mtasc-code-injection-getting-stuck-on-custom-classes/327130/1 "2012-02-07T16:18:01Z")

</div>

\*\*tl;dr:Using MTASC, How can I take a MovieClip that exists on stage and interface with it through a custom class? \*\*

I’m a UI/UX designer and interface engineer, and I’ve recently been trying to improve my development workflow. I’ve been trying to achieve the following workflow:  
[LIST=1]  
[_]Create the UI in Adobe Illustrator  
[_]Import the UI into Adobe Flash  
[_]Set up MovieClips to allow interactivity on the stage  
[_]Export the finalized design as an .swf  
[_]Write code to interface with the various parts of the UI  
[_]Inject the code into the precompiled .swf using MTASC  
[/LIST]  
I can do all of the above, but I’ve been having problems when it comes to writing the code. I’d like to write object-oriented code as much as possible, but I can’t seem to link my custom classes to anything that starts on the stage. How can I take a MovieClip that exists on stage and interface with it through a custom class using the MTASC?
