# I Can't Access variables from the Tineline

**URL:** <https://forum.kirupa.com/t/i-cant-access-variables-from-the-tineline/306976>\
**Category:** flash\
**Created:** [March 25, 2010, 3:24pm UTC](https://forum.kirupa.com/t/i-cant-access-variables-from-the-tineline/306976 "2010-03-25T15:24:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rada](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Rada](https://forum.kirupa.com/u/Rada)\
**Post date:** [March 25, 2010, 3:24pm UTC](https://forum.kirupa.com/t/i-cant-access-variables-from-the-tineline/306976/1 "2010-03-25T15:24:54Z")

</div>

I have a class called Butterfly that extends MovieClip and exists as an asset in my Flash CS4 library.

The timeline of Butterfly consists of different wing flaps for different segments of its behavior. One of the animations is the wings opening up. Once the wings are open, dynamic text is shown on the wings of the butterfly.

```auto

//Butterfly.as
...
private var _textForWings:String = "Text For Wings";

```

I don’t seem to have access to that variable from frame 159 inside of the clip.

What is the right process for accessing variables defined in the class by the frames inside?

:-/ Currently I’m using a getter for the \_textForWings variable and using

```auto

//getter inside Butterfly.as
public function get textForWings():String
{
     return _textForWings;
}

//frame 159 inside Butterfly
(this.parent as Butterfly).textForWings;

```

In this instance this works, but this _things that i specify in the class are not avaiable to me within the timeline where i need them_ issue is really causing some headaches.

Thanks guys,  
Aaron
