homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

Preloader stops and does not load content
preload stops after 2nd visit to site

 4:07 pm on Aug 26, 2009 (gmt 0)

When I first visit the site for the first time the preloader works perfect and plays the movie.

After I close my browser and go back to the site, the preloader just stops at 0% and does not play.

loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
function updatePreloader(evtObj:ProgressEvent):void {
//Container for the progress of the site (download)
var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
preloader.text = percent+"%";
if (percent==100) {

I'm thinking I have to do something like this:

if (bytesLoaded == bytesTotal) {


if (percent==100) {
else {

That just gives me errors. This is my first time attempting AS3.



 5:40 pm on Aug 26, 2009 (gmt 0)

Maybe a caching issue?


 2:10 am on Aug 27, 2009 (gmt 0)

If I go to the page it loads fine. If I click on the address bar with the url already in it; it stops in the first frame which is the preloader. If I close out the tab and retype the website name it runs like normal.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved