我有一个类名 sample_1.as
package {
import flash.display.MovieClip;
public class sample_1 extends MovieClip {
public var targetScene:String;
public function sample_1() {
// constructor code
}
}
}
我想从不同的帧以及在movieclips中访问和更改targetScene字符串
gotoAndPlay(targetScene);
or
targetScene = "MainMenuEnter";
我怎样才能做到这一点?