Hi Kirupa forum.
New issue hoping someone can solve!
http://www.dominicchapman.co.uk/main.html
When normal is clicked, you can see a preloader appears to load the image.
However, it seems to show up before the preload has started, then disappear, and begin the preload?
(if you need to view the problem more than once, empty your cache so the preloader will refresh, else it won’t show at all the second time)
The preloader as3 code I’m using is the following:
[FONT=“Courier New”]import flash.display.;
stop();
ld.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal100;
lbar.scaleX=pcent/100;
if(pcent==100){
this.gotoAndPlay(2);
}
}[/FONT]
Any ideas how I can stop this happening?
Thanks.