PDA

View Full Version : Transitions Between External SWFs :: Help!



ssanem
September 3rd, 2007, 06:09 PM
I am using the code from the Transitions Between External SWFs tutorial that is featured on Kirupa. I have a Green_main.swf that contains the main navigation buttons, a Main.swf (home page), a Company.swf, a Places.swf, and an Inquiry.swf. All the external swfs are working great except one, which is the Places.swf. The reason is because the Places.swf contains stop actions. This swf is not stationary like the rest of them, I have an navigation mc with buttons with the following actions:

on (release) {
this._parent.gotoAndStop("chap_farms");

}

I have labels set up across the timeline, ex. "chap_farms", "chap_woods", etc. Once this swf is loaded into the Green_main.swf, these buttons move to the specified label great, and stop where I specify. The problem is that once they stop anywhere before the "midframe" area, I can't get the buttons on the Green_main.swf to work, or the "out" transition for Places.swf to work. I took out all the stops in the Places.swf and when it got to the stop before "midframe", the transition effect worked. But when I do that I have no control over the timeline in the Places.swf.

Can anyone tell me how I can have the best of both worlds, i.e. the ablility to load an external swf that can move around the timeline as well and transition out?

Let me know if you have any questions.

Voetsjoeba
September 3rd, 2007, 07:34 PM
In the external swf, try moving your buttons inside a movieclip on the midframe. That way you can do all your stuff while not disturbing the transitions.

ssanem
September 4th, 2007, 12:04 AM
The buttons are inside of a movieclip. They are telling the external swf to move to labels on the timeline on the same external swf., with stops for each section. Are you saying to put all these sections within one movieclip at the midframe, even if the sections span around 100 frames? Let me know if this is making sense to you.

Voetsjoeba
September 4th, 2007, 05:35 AM
The buttons are inside of a movieclip. They are telling the external swf to move to labels on the timeline on the same external swf., with stops for each section. Are you saying to put all these sections within one movieclip at the midframe, even if the sections span around 100 frames? Let me know if this is making sense to you.

Yes, that's exactly what I'm saying. Right now I think your external swf has all the stops on the main timeline right ? So move all that inside a movieclip on the main timeline on the midframe.

ssanem
September 4th, 2007, 09:43 AM
I'll try it. Thanks for your time!

altairdesigns
September 13th, 2007, 11:09 AM
im having an issue. If i hit a button during a build, i have to wait till it hits midframe for the new swf to load and outro to play. i dont want the user to have to wait around for intros to finish to move on, how would i phrase this in as?