logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Flash
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 08-28-2009, 12:47 PM   #1
bandolin
 
Join Date: Jun 2009
Posts: 17
Default Preloader only appearing near end

My preloader only appears once the swf is at about 96%. That's useless. Why doesn't it appear immediately?

Site:http://www.bandolin.net/CitedesJeunes/

Actionscript (Frame 1)
Code:
var amountLoaded:Number = new Number(this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);

preloaderClip.loadBar.width = amountLoaded * 400;

preloaderClip.loadText.text = "Chargement de contenu du site : " + (Math.round(amountLoaded * 100)).toString() + "%";
Actionscript (Frame 2)
Code:
if(this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
    gotoAndPlay(3);
}else{
    gotoAndPlay(1);
}
The movie starts on frame 3.
bandolin is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com