# Inheritance?

**URL:** <https://forum.kirupa.com/t/inheritance/252456>\
**Category:** flash\
**Created:** [February 20, 2008, 10:42am UTC](https://forum.kirupa.com/t/inheritance/252456 "2008-02-20T10:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubbeat](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dubbeat](https://forum.kirupa.com/u/dubbeat)\
**Post date:** [February 20, 2008, 10:42am UTC](https://forum.kirupa.com/t/inheritance/252456/1 "2008-02-20T10:42:08Z")

</div>

Hi,

I’m having trouble referencing a components value.

My main document class creates a slider control. This is fine.

```auto
public class PCMAudioLibraryDemo extends Sprite {
public var aSlider:Slider = new Slider();
slider.width = 200;
slider.snapInterval = 10;
slider.tickInterval = 10;
slider.maximum = 100;
slider.value = 100;
slider.move(120, 330);
          
addChild(slider);

```

Ok so fine I have a slider control.

In this main document class I am creating an instance of another class

```auto
var dP:IAudioDataProvider=new SSWPr();//create a data source[\as]

As a quick test, in my new class named "dp" I try to trace the value of the slider I've made but it dosnt know the slider exsists and I get errors.

How can I get the values from the slider into the new class?? Or reference the slider in the new class. This new class cant extend Sprite because it is already extending another class

```

public class SSW extends AudioDataProvider [\as]

And due to this I cant make the slider in this class because addChild method wont work

Could somebody help me solve this convoluted puzzle?  
Thanks  
Dub
