View Full Version : I'm an action script idiot. Transistions between SWF's
rumblepup
May 7th, 2004, 04:58 PM
Fact is, I think this is where I should post. What I'm trying to do is this. I have a basic flash page with three images that are buttons. Should load an SWF into the background. The loaded SWF only consists of an image and text.
Well, I would love to have the loaded SWF fade in, then when a user clicks on a different button, the swf FADES OUT While the new SWF FADES in.
I think I remember some actionscripting that contol the alpha of a loaded swf, but I'm not sure. Any help?
Voetsjoeba
May 7th, 2004, 05:06 PM
This may be of help :)
http://www.kirupa.com/developer/mx2004/transitions.htm
Adam
May 7th, 2004, 05:07 PM
http://www.kirupa.com/developer/mx2004/transitions.htm
have a look at this.
**edit...lol, I guess you would have the link first, it is your tutorial ;)
Adam
rumblepup
May 7th, 2004, 05:17 PM
Yeah, I read this tut. Makes perfect sense, BUT, the on the click event, the new swf does not load until the old swf has finished. I am almost there, but, how do I get an alpha fade in/out transitional effect?
Voetsjoeba
May 7th, 2004, 05:23 PM
Well you'd have to use two empty movieclips for that - one with the new content, and one with the current content, so that when you press a button, the new content can fade in and the current content can fade out. But, because you don't know what the new content will be, you must load it in and then fade it in because it can be anything. So maybe preload the swf, and when preloaded have the current one fade out and the new one fade in. If you don't want the delay with the preloading, then you'll have to load all your swfs when entering the site.
rumblepup
May 7th, 2004, 06:47 PM
Well you'd have to use two empty movieclips for that - one with the new content, and one with the current content, so that when you press a button, the new content can fade in and the current content can fade out. But, because you don't know what the new content will be, you must load it in and then fade it in because it can be anything. So maybe preload the swf, and when preloaded have the current one fade out and the new one fade in. If you don't want the delay with the preloading, then you'll have to load all your swfs when entering the site.
Ok, I'm almost there with the logic. What your saying is to preload the swf's using an LoadMovie event, but because the external swf have a stop action at the first frame, they won't play until you "click the button." Am I right on this?
Voetsjoeba
May 8th, 2004, 03:08 AM
If your swfs have a stop action on their frist frame and you load 'em in, they won't start playing, yes.
Stefania_Italy
May 8th, 2004, 07:29 AM
Hi people i'm new here 'im Stefania from Italy.
Voetsjoeba (http://www.kirupaforum.com/forums/member.php?u=4337)'s tutorial vbmenu_register("postmenu_506884", true); http://www.kirupa.com/developer/mx2004/transitions.htm
can help me to structure the same transitions like this site : http://www.jular.net (http://www.jular.net)
or jular.net has a different actionscripting concept?
Can you help me tu obtain the same jular.net's effect with transitions?
Tnx a lot !!
Stefania_Italy
May 8th, 2004, 07:31 AM
To complete the question... i need to structure my site with buttons as jular.net's ones. When clicking on a button the animation has an intro... when clicking on another button it has an outro and a new intro concerning to the button clicked
Voetsjoeba
May 8th, 2004, 08:36 AM
Yeah, that's exactly what the tutorial shows how to do :)
Stefania_Italy
May 8th, 2004, 09:05 AM
Concering levels... i think that the paint strokes that take place over the buttons are obtained changing container clip's level, right?
Voetsjoeba
May 8th, 2004, 09:22 AM
Yeah, the button box is on a depth lower than the loaded MC, and the text of the button is on a higher depth :)
Stefania_Italy
May 8th, 2004, 09:32 AM
Tnx a lot !!
Love,
Stefania:party:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.