• complete: () => void

其实就是把函数做为参数,可以用在函数回调的时候:

	module common {
	    export class Loading {
			public constructor(groupName: string, complete: () => void, container:egret.DisplayObjectContainer) {}
	}
  • 学习set方法

     class Main extends egret.DisplayObjectContainer{
         this.state = Main.STATE_INTRO;
         public set state(s:number)//设置state
         {
         	...
         }
    	    
     }
    


blog comments powered by Disqus

Published

15 March 2016

Tags