I am working on a portfolio site to display images. I have 2 frames, the first contains a progress bar and this code:
stop();
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PRELOADER);
function PRELOADER(eventProgressEvent):void {
var percent:Number=event.bytesLoaded/event.bytesTotal*100;
loaderBar.scaleX=percent/100;
loaderText.text=int(percent)+"%";
if(percent==100){
this.gotoAndStop(2);
}
}
The second frame has the content and different action script that is related to it.
My problem is that the whole site works fine in Flash when i “test movie” and “simulate download” but as soon as i “publish preview” in either flash or html the progress bar doesn’t work, it just freezes on that frame.
I am really new at this and have just pieced together the code i have from various tutorials on the net but this is really testing my patience. So frustrating because the site took me ages and it looks great in flash, just need to get past this little hitch.
If any one could help i could send the files or whatever if its needed.