projectFac1

by mapache
♥0 | Line 15 | Modified 2010-10-12 02:32:22 | MIT License
play

ActionScript3 source code

/**
 * Copyright mapache ( http://wonderfl.net/user/mapache )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/jLNU
 */

package {
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    
    public class sheet extends Sprite {
        
        protected var _background:MovieClip;
        public function sheet() {
            // write as3 code here..
            if(stage) init();
            else addEventListener(Event.ADDED_TO_STAGE , init);
        }
        public function init():void{
            removeEventListener(Event.ADDED_TO_STAGE , init);
        }
    }
}