# Flash 9 linkage to as class

**URL:** <https://forum.kirupa.com/t/flash-9-linkage-to-as-class/218933>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 3:55pm UTC](https://forum.kirupa.com/t/flash-9-linkage-to-as-class/218933 "2007-03-12T15:55:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![warhero](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/warhero/32/1251_2.png) [@warhero](https://forum.kirupa.com/u/warhero)\
**Post date:** [March 12, 2007, 3:55pm UTC](https://forum.kirupa.com/t/flash-9-linkage-to-as-class/218933/1 "2007-03-12T15:55:54Z")

</div>

First off, Am i blind or is there no designated flash 9 forum here? There should be.

So heres my question. I’m trying to get a MovieClip linked to a class in flash 9.

here is the class:

package com.something.something{

```
import flash.display.Sprite;
import flash.display.MovieClip;

public class Main extends MovieClip
{
    public var homeloop:MovieClip;
    public var loadloop:MovieClip;
    
    public function Main()
    {
        addChild(homeloop)
        addChild(loadloop)
    }
}

```

}

Flash is giving compile errors.

ReferenceError: Error #1056: Cannot create property section2 on com.cpbgroup.something.Main.  
at flash.display::Sprite/flash.display:Sprite::constructChildren()  
at flash.display::Sprite$iinit()  
at com.something.something::Main$iinit()  
at flash.display::Sprite/flash.display:Sprite::constructChildren()  
at flash.display::Sprite$iinit()  
at flash.display::MovieClip$iinit()  
at Timeline0\_cc7677b84b49d8479eb469a9a0d8ed7b$iinit()

What is the correct way to go about linking a movie clip to an AS class that has other clips on it’s stage.

thanks.
