# Access stage from class

**URL:** <https://forum.kirupa.com/t/access-stage-from-class/277717>\
**Category:** Uncategorized\
**Created:** [December 16, 2008, 11:05am UTC](https://forum.kirupa.com/t/access-stage-from-class/277717 "2008-12-16T11:05:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mak\_Valley](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mak\_Valley](https://forum.kirupa.com/u/Mak_Valley)\
**Post date:** [December 16, 2008, 11:05am UTC](https://forum.kirupa.com/t/access-stage-from-class/277717/1 "2008-12-16T11:05:41Z")

</div>

I’ve gone through the **Access to stage and root** post in the AS3 Tip of the Day thread and it’s put some perspective into how things work and have changed however I just can’t get the syntax right… Here’s what i’ve got

```auto
function onUpper(event:MouseEvent):void{
	switch(holder.name){
		case "one" :
			var startx:Number = holder.x;
			var finishx:Number = holder.x+100;
			//var whichclip:MovieClip = holder;
			var whichclip:MovieClip = root.content_mc;
			//trace(whichclip);
			var xTween:Tween = new Tween(whichclip, "x", Regular.easeOut, startx, finishx, .5, true);
			trace("first one")
		break;

```

this is inside of my external class, basically this runs inside of a function that creates buttons which will be my navigation. the second declaration of “whichclip” is where i need help. it’s pretty obvious what i’m trying to do and what i’m doing wrong if you’re up to speed with AS3. any help is greatly appreciated. thanks.
