i’m trying to access the stage and editing the position of a movieClip from an external class:
package
{
import flash.display.DisplayObject;
import flash.display.MovieClip;
import flash.display.Stage;
public class Bullet
{
private var stage:Stage;
public function Bullet():void
{
}
public function setStage(stageRef:Stage):void
{
stage = stageRef;
trace(stage.width);
stage.hero.x=100;
}
}
}
the movie clip is called hero and it’s located on the main stage. this code is in my Bullet.fl file. does anyone know how you can acces the movieclips on the main stage?
thanks!