hi all,
Im somewhat a newbie to as3, ive tried making a image fill preloader using masks etc. When publishing its just showing my preloader not continuing to my content. which is on frame 11. I was wondering if anyne can help me with code?
cheers
stop();
mask_mc.DisplayObject.height = 1;
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void{
var loadedData:Number = this.LoaderInfo.bytesLoaded();
var allData:Number = this.LoaderInfo.bytesTotal();
var percent:Number = Math.round(loadedData / allData * 100);
mask_mc.DisplayObject.scaleY = percent;
if (loadedData >= allData) {
gotoAndPlay(11);
this.removeEventListener(Event.ENTER_FRAME, loading);
}
}
i have placed this on frame one where just preloader content is, then all content frames start at frame 11. any help would be much appreciated.