# Class linkage with MovieClips

**URL:** https://forum.kirupa.com/t/class-linkage-with-movieclips/238652
**Category:** Uncategorized
**Created:** [September 13, 2007, 4:34pm UTC](https://forum.kirupa.com/t/class-linkage-with-movieclips/238652 "2007-09-13T16:34:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dfm\_](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dfm\_](https://forum.kirupa.com/u/dfm_)
#### Post date: [September 13, 2007, 4:34pm UTC](https://forum.kirupa.com/t/class-linkage-with-movieclips/238652/1 "2007-09-13T16:34:14Z")

</div>

hi,

Lets say I have  
main.swf with following MCs in it: canvas\_mc, tab\_mc…

I want to make some class, lets say TimeLineObjects, with functions. This class can be linkage to MovieClip or written in main timeline. I want when I import TimeLineObjects, in other class and write lets say getCanvas to return me in MovieClip in main.swf canvas\_mc,. Same for function getTab to return me tab\_mc.

How I can do that?  
I try many way, but when I linkage the class in some MC and made instance of it is now use.

I cant think of a way to do this.
