# How to force the Main to see variable

**URL:** <https://forum.kirupa.com/t/how-to-force-the-main-to-see-variable/268324>\
**Category:** Uncategorized\
**Created:** [August 12, 2008, 4:26pm UTC](https://forum.kirupa.com/t/how-to-force-the-main-to-see-variable/268324 "2008-08-12T16:26:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectre7](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@spectre7](https://forum.kirupa.com/u/spectre7)\
**Post date:** [August 12, 2008, 4:26pm UTC](https://forum.kirupa.com/t/how-to-force-the-main-to-see-variable/268324/1 "2008-08-12T16:26:42Z")

</div>

How do i force the following class to see the variable angleX to allow it to tween the variable over 2 seconds.

package  
{  
import flash.display._;  
import caurina.transitions._;  
import fl.transitions.Tween;  
import fl.transitions.easing.\*;

public class Main extends MovieClip  
{  
private var anglePer:Number = 0;  
private var dest:Number = 0;  
private var angleX:Number = 0;

public function Main()  
{

init();  
this.angleX =0;  
}  
public function init():void  
{  
dest++;  
anglePer = 0.6283185307179586;  
angleX = dest_anglePer  
Tweener.addTween(this, {angleX:dest_anglePer, time:0.5});

}  
}  
}
