 						if(type == "set")
 						{
 							var id = node.ARGUMENT[1].@VALUE;
-							var x = Number(node.ARGUMENT[2].@VALUE) * thestage.stageWidth;
-							var y = Number(node.ARGUMENT[3].@VALUE) * thestage.stageHeight;
+							var x = Number(node.ARGUMENT[2].@VALUE) * stagewidth;
+							var y = Number(node.ARGUMENT[3].@VALUE) * stageheight;
 							var X = Number(node.ARGUMENT[4].@VALUE);
 							var Y = Number(node.ARGUMENT[5].@VALUE);
 							var m = node.ARGUMENT[6].@VALUE;

			
		}
		
		

		private static function xmlPlaybackLoaded(evt:Event) {

				
				var buttonSprite = new Sprite();		
				buttonSprite.graphics.beginFill(0xFFFFFF,1.0);
				buttonSprite.graphics.drawRoundRect(0, -10, 50, 60,10);				 
				buttonSprite.addEventListener(MouseEvent.CLICK, toggleDebug, false, 0, true);					

				var WrapperObject:Wrapper = new Wrapper(buttonSprite);
