as3.0全局stage对象

extend You main document class and add there static var , than assing stage on init :

public class Main extends MovieClip { 

public static var stage:Stage; 

public function Main ():void {

  Main.stage = stage;

 }

}

and then anywhere in app You can access to stage :

Main.stage.addChild(element)

最新评论:

no.13150 support 5.188.211.14 2018-01-08 08:34

E6V5xl https://goldentabs.com/

no.12503 atzdaopd02h 188.143.234.155 2016-10-02 02:56

I'm not quite sure how to say this; you made it exelemtry easy for me!

发表评论:

邮箱: