Skip to main content
Known Participant
February 28, 2007
Question

Flash Project not playing when users go to site

  • February 28, 2007
  • 4 replies
  • 465 views
Alright heres my problem. I have a large flash website, that was originally a template and I added to it. I have been able to upload it to my server, but there is at least several minutes wait time before the preloader came up. So in an effort to fix this I created a Master file with 10 frames total. on the first keyframe I have "Loading Site" in plain letters. I have the actionscript on keyframe 1 and I have the main movie(masterP.swf) loading into level 20, preloader.swf loading into level 50 and trigger.swf loading into level 5.
here is the actionscript on frame 1:
stop();
//-----------------------<MCL>------------------------\\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number,totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) *100);
_level50.preloader.gotoAndStop(preloadPercent);
_level50.preloadInfo1.text = preloadPercent + " % loaded";
_level50.preloadInfo2.text = Math.round(loadedBytes/1000) + " k loaded / " + Math.round(totalBytes/1000) + " k total";
}

myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
//-------------------</MCL>---------------------------\\
//triggers the MCL to load these assets
myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);

here is the actionscript on frame 10:

stop();
myMCL.loadClip("masterP.swf", 20);

The biggest issue is when the user goes to that website it almost seems as though the movie is sitting on Frame 1"loading Site" and doesnt even reach the preloader, then when i hit the back button and go foward the preloader is there, just looping in place not really loading. oh yeah I have two dynamic fields on the preloader, and it is supposed to have loading info in them, but they do not even show up. Not sure what I should do. I am uploading with Dreamweaver MX, I am using Flash 8, the original file was flashmx I believe.

This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
February 28, 2007
your _level0 swf won't go to its frame 10 because there's not code (shown) that will cause it to move from frame1.

the code you showed would not cause a time-out error. you must have changed something in your code.
em_shomerAuthor
Known Participant
February 28, 2007
ok I think I fixed the problem, but i dont know how, but now I have a new problem and I need your help on this one, the preloader comes right up and at about 45% I get an error message: "A script in this movie is causing Adobe Flash Player 9 to run slowly. If it continues to run your computer may become unresponsive. Do You want to Abort?" Also the site loads around this time, it is NOT loaded correctly because when i click on the buttons they go to wrong frame labels, though once the loading is done they go to the correct one. Any idea of what I need to do for this

kglad
Community Expert
Community Expert
February 28, 2007
i can see you're loading into _levels. but that doesn't change the issue: your swf is never going to reach frame 10 and execute:

myMCL.loadClip("masterP.swf", 20);

how large is your preloader.swf? and what's the point of trigger.swf and how large is it?
em_shomerAuthor
Known Participant
February 28, 2007
trigger.swf is small there is nothing there besides a couple elements from the shared library, that are not on my timeline but never the less have to load(fonts) it loads at _level 0
preloader is 12KB
my main swf is 5529KB

btw...why wouldnt it reach frame 10( because it dosent on the server but it does when i stimulate download everything works)
kglad
Community Expert
Community Expert
February 28, 2007
how would that swf even get to frame 10? and that entire setup is probably an issue. why do you have to preload your preloader?

that may be an issue for users to watch the load progress of something that turns out to be a preloader for something else with the thought that the something else may just be another preloader so they can wait longer.
em_shomerAuthor
Known Participant
February 28, 2007
Im loading it in levels not frames...The file is kind of big and the preloader wasnt even loading before. Do you have a suggestion on how to set it up so everything loads properly