Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 25th, 2003, 10:21 AM
deland02 deland02 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 32 deland02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 56 m 38 sec
Reputation Power: 6
Pre-loader Problems loading external SWF's

Please could anyone help. I have created an interface which loads an external SWF into a window on the click of a button. The movie being loaded is quite big so I put a pre-loader on the beginning of it.

At first it loaded ok, the pre-loader appeared and the percentage counted up with the loading bar.

For some reason now When I click on the button to load the external SWF there is a big pause and then I get the following message.


"The script in this movie is causing Macromedia Flash Player 7 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"

I have un-installed and then re-installed Flash Player 7 with no joy. Any ideas??


the script in my pre-loader is as follows:



frame1
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}1



frame2
this.gotoAndPlay(1);1


frame3
gotoAndPlay("Scene02", 1);

Reply With Quote
  #2  
Old November 25th, 2003, 12:35 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
frame1
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadBar._width = getPercent*100;
loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndStop(3);
}

frame2
gotoAndPlay(1);


frame3
gotoAndPlay("Scene02", 1);

you had a 1 after the first if statement, typo maybe...same after frame2's gotoandPlay.

The error you get normally happens when you do something like have a while loop that never ends or a for loop that never terminates. anything like that in there? because your using round it could be that the two values are never identicle in your first if statement. you could try something like:

if(bytes_loaded > bytes_total - 25){}

just hack a value you reckon is right off. could be dead low like 0.5, 1 etc. trial n error.

-Tann

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Pre-loader Problems loading external SWF's


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT