# Inheritence in Component

**URL:** <https://forum.kirupa.com/t/inheritence-in-component/23133>\
**Category:** Uncategorized\
**Created:** [June 13, 2003, 10:17am UTC](https://forum.kirupa.com/t/inheritence-in-component/23133 "2003-06-13T10:17:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajok](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ajok](https://forum.kirupa.com/u/ajok)\
**Post date:** [June 13, 2003, 10:17am UTC](https://forum.kirupa.com/t/inheritence-in-component/23133/1 "2003-06-13T10:17:04Z")

</div>

hi,

i have a doubt on inheritence in Component, i have two variables in comp. ie mc\_array and tar\_array, which i want to inherite. Pls. see down code

```auto
#initclip
dragClass=function(){
	this.update()
}

dragClass.prototype=new MovieClip()

dragClass.prototype.update=function(){
   for(i=0;i<this.mc_array.length;i++){
	movie=targetPath(eval(this.mc_array*))
	eval(movie).eval(movie).onPress=function(){
   	      startDrag(eval(movie),true)
	}
	eval(movie).onRelease=function(){
	stopDrag()
	// here i want to get the tar_array. How i can?????

	}
}
dragClass.prototype.getTarget=function(){
	return this.tar_array
}
Object.registerClass("FDrag",dragClass)
#endinitclip

```

Thanks  
Ajo.
