# Inheriting Classes

**URL:** <https://forum.kirupa.com/t/inheriting-classes/306949>\
**Category:** flash\
**Created:** [March 25, 2010, 1:37am UTC](https://forum.kirupa.com/t/inheriting-classes/306949 "2010-03-25T01:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleelof](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Post date:** [March 25, 2010, 1:37am UTC](https://forum.kirupa.com/t/inheriting-classes/306949/1 "2010-03-25T01:37:47Z")

</div>

Hello,

I made a document class for a project that is similar to this:

package{

public class test1{

// stage assets : these are all objects that were put on the stage in CS4  
public var object1:MovieClip;  
public var object2:MovieClip;

public function test1():void{  
object1.alpha = 0;  
object2.alpha = 0;  
}  
}

}

Now what I want to do is extend test1 into test2. I used code similar to this:

package{  
public class test2 extends test1{  
public function test2():void{  
super();  
}  
}  
}

but this error is being returned:  
test2.as:6: 1152: A conflict exists with inherited definition test1.StratusPanel\_mc in namespace public.

It seems the inherited class does not want to access the objects on the stage. Is this correct?

take care,  
lee
