Help - Search - Member List - Calendar
Full Version: Having Problems Moving Between Scenes
WorkTheWeb Forums > Webmaster Resources > Macromedia Flash
Support our Sponsors!
Hi all.

I have created a movie that is composed of the following 3 scenes which should play in the following order.

The scenes are as follows:

1. preloader
2. transition
3. intro

My problem is that the playback head is paused instead of continuing to play, and this only happens when I view it from the web. It works fine when I test it on my local machine.

The movie pauses somewhere in the "preloader" scene instead of continuing on to the "transition" scene. I haven't been able to determine exactly where it's pausing.

The scenes are constructed as follows:

Scene "preloader" consists of 192 frames. In frame one of the "actions" layer is the following script:

ifFrameLoaded ("intro", "end") {
gotoAndPlay("transition", "start");
}

This frame also has a label called "loader". The last frame of this scene has a the following frame action script:

gotoAndPlay("preloader", "loader");

The "transition" scene consists of 29 frames. The first frame has a label titled, "start". Frame 25 has the following frame script:

music = new Sound ();
music.attachSound ("business");
music.start (0,5);

The "intro" scene" consists of 370 frames. Frame 41 has a label called "end" where I'm preloading a MC of a running cheetah. Frames 55, 103, 110, 143, and 189, contain an empty MC which has the following script:

onClipEvent (load) {
loadMovie("external.swf", "_root.empty_MC");
}

"External.swf" are references to 5 different MCs that are not part of this main movie. They are in the same directory as the main movie. There is no stop(); command anywhere in the movie, but the playback head is still stopping somewhere in the "transition" scene.

Here's a list of things I've tried:

1) Combining all scenes into 1 ? The problem still persisted. The playback head still paused in the "transition" area of the movie.

2) Whenever a frame is being referenced, I have given it a label so as to refer to the label instead of the frame number.

3) I have deleted all references to the Sound object thereby stripping the sound out of the movie, but the problem still existed.

You can view the file here: http://www.cynthiaowens.com/freelance/site...urier/index.htm

I've also attached the corresponding .SWF's and HTM documents (fastcourier.zip). The .FLA is too large to upload.

Thanks for your help !!!!

CJ




http://webforums.macromedia.com/attachments/fastcourier.zip




Referring URLs
http://www.cynthiaowens.com/freelance/site...urier/index.htm

Have you tried inserting a blank keyframe at the end of preloader and putting a stop() command on the timeline? Keep "end" in the frame just before that blank keyframe.

I'm just wondering if your preloader is looping for some reason and is keeping the transition scene from getting past the "start" frame.

Thanks Pazzoboy!

I did as you suggested and placed a stop() command at the end of the preloader "section" and moved the "end" label to the frame just before it. The result was that the preloader section played until it reached the stop command--it never made it to the "transition" section.

I have since merged the 3 scenes into one scene. Leaving the structure the same as it was before, but placing each scene in it's own folder on the main movie timeline. I removed the background music from the main movie and placed it in an external .SWF file and call for it to be loaded into the main movie near the end of the "transition" section.

I deleted the stop command and added a "gotoAndPlay("content");" script on the last frame of the "transition" section--thinking that this would force the playback head to the first frame of the "intro" section which contains the "content" label".

The result was the same as before--the playback head stops somewhere in "transition" section and won't proceed to the "intro" section. It could be stopping at the place where I call for the music to be loaded or it could be on the last frame of the section. I can't tell which.

Here's a link to what I currently have posted on the web:

http://www.cynthiaowens.com/freelance/site...urier/index.htm

I've attached the web files (fastCourier2.zip) and the source .FLA (intro111.zip).


Thank you so much for your suggestions. I feel like I'm going in a circle, and ending up at the same place!

CJ

http://webforums.macromedia.com/attachments/fastCourier2.zip
http://webforums.macromedia.com/attachments/intro111.zip



Referring URLs
http://www.cynthiaowens.com/freelance/site...urier/index.htm

Maybe it's just past my bedtime, but sound_1.swf seemed to be an issue. I've experienced flashplayer hanging if a swf wasn't available when it was called upon. From quickly glancing at your fla, I can't see why else it would hang. But then, I'm tired.

Thank you, thank you, thank you.

I will embed the sound file back into the main movie by placing it directly on the timeline and see what happens.

Thanks again!


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.