import it.sephiroth.Serializer /** init the serializer class */ var sepySerializer:Serializer = new Serializer(); /** content width **/ _global.contentWidth = 480; _global.contentHeight = 300; /* stage listener */ Stage.align = "TL"; var StageObj:Object = new Object(); var preloader:MovieClip; StageObj.onResize = function(){ preloader._x = Stage.width/2; preloader._y = Stage.height/2; } Stage.addListener( StageObj ); StageObj.onResize(); /* base PHP file path */ var basePath:String; if( this._url.indexOf("file:") > -1){ basePath = "http://localhost/izoom/flash.php"; basePath = "http://www.flash-php.it/izoom/flash.php"; } else { basePath = "./flash.php"; } /** preloader */ this.onEnterFrame = function(){ if(this.getBytesLoaded() >= this.getBytesTotal()){ delete this.onEnterFrame; this.gotoAndPlay(2); } } stop();