Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browser Crash with Load & UnloadMovie (IE 5.x)

Status
Not open for further replies.

skrause

Programmer
Feb 10, 2001
18
US
Good morning:

I have a movie which loads 5 separate SWF into it and plays them consecutively. At movie's end, I have a link which allows to replay the movie. I also have a 60 second delay which replays the movie automatically if the link is not clicked.

The problem - For the "auto-replay", the browser crashes in 5.5 consistently. However, the movie replays fine when I click the replay button. And, it doesn't always crash on the first auto-loop. But given the time, it will crash.

One other oddity. In the last SWF (the one with the delay/replay button) the code always goes to the same 10 frames as a fade out sequence - regardless of a manual or auto replay.

Thank you for your time,
Steve
 
Maybe a link, for us to check it out... And maybe see if it's not a local issue!
What about NS? Same thing happening?

Regards,
new.gif
 
YEP! It crashed BIG TIME! Not only the browser... My whole system! Not about to try that again, took me 10 minutes to get it back up and running!
What's the code you're using for the auto-replay?

Will give it a go with NS! If I don't come back, don't wonder why!

Regards,
new.gif
 
My apologies on the crash - I haven't taken down my system yet...

The code:

Frame 1 (at end of movie)
var LoadTimeEnd = getTimer();
var DelayEnd = 60000;
var DeltaTimeEnd = 0;

FRame 2 [endloop]
var LoadingTimeEnd = getTimer();
DeltaTimeEnd = LoadingTimeEnd - LoadTimeEnd;
if (DeltaTimeEnd >= DelayEnd) {
gotoAndPlay ("Fadeout");
}

Frame 3
gotoAndPlay ("endloop");

Frame 5 [Fadeout]
no script - just the beginning of a 10 frame fadeout sequence (alpha-ing an MC from 0 to 100...)

Frame 15 (last frame of fadeout sequence)
stop ();
tellTarget ("../") {
gotoAndPlay ("Scene1");
}


The button for manual replay is:
on (release) {
gotoAndPlay ("Fadeout");
}

I have noticed the crash initiates within the first frame or 2 of the fadeout sequence. Not sure if that helps.

Thanks again for the help,
Steve
 
Well it crashes NS also... But not the system this time!

Can't even get to the link to replay! It crashes even before that point.

Is the delay & and the auto-replay feature within the last movie, or is this done with java in the HTML?

Regards,
new.gif
 
So all 5 swfs are in the same movie, right?

Think your timer thing is the killer!
Suggest you comment out all lines (in expert mode, add // at the beginning of each line), of your first 3 frames, to try this out, with only the replay button... To see if that works!

Then consider the following:

What's "Scene1"? A frame label? Or your one and only scene in this movie.
You shouldn't be using tellTarget it's deprecated in Flash 5!

If "Scene1" is the labeled first frame of your movie, use:
//Frame 15 (last frame of fadeout sequence)
stop ();
_root.gotoAndPlay ("Scene1");

If "Scene1" is actually your scene's name (make sure it's exactly the same, and that you haven't taken out the space between Scene and the 1), simply use:
stop ();
_root.gotoAndPlay (1);

If you get this working without the timer, then we can look into that!

PS: will have to yet do another reset... This system is having a hard time and getting pretty sloooooooooooow again!

Regards,


new.gif
 
Oldnewbie - I was able to see a couple of crashes actually happen. It seemed to happen during the fadeout, not the timer & redirect.

I have removed the faders in all of the movies for the time being to see if that is the problem.

Thanks again,
Steve
 
Removing the fader doesn't work.

What I have is a single movie called Scene.swf. This movie is just a series of frames (labeled Scene1 through Scene5) that uses this to load and unload movies (for example, for Frame 2):

unloadMovie ("Scene1.swf");
loadMovie ("Scene2.swf", _root.Scene2);
stop ();

Within this frame is a MC named Scene2 that has this action attached:

onClipEvent (load) {
loadMovie ("Scene2.swf", "this");
}

At the end of each movie (Scene2.swf for example), I have the fadeout and the tellTarget code:

stop ();
tellTarget ("../") {
gotoAndPlay ("Scene3");
}

I had assumed this was the best way to go, as opposed to putting everything in a single movie file.

I will try removing the timer and evaluating.

Old - I really appreciate your time and suggestions.

Thanks,
Steve
 
Seems to me your over complicating this whole thing!
Can you e-mail me your .fla? Or if it's too large, e-mail me a link to it?

Try tektiper@hotmail.com

Regards,
new.gif
 
yup, seems to be too many load statements in there, possibly creating an infinite loop.
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top