View Full Version : Transitions between external swfs via AS3
nico
July 31st, 2008, 12:10 AM
Guys, need your algorithm power on how to create a smooth transition effect between externally loaded swfs using AS3.
When you press a button, the external swf will fade in, when you press another button, the external swf will fadeout, and then the new external swf will fade in, and so on. thanks guys!
saxx
July 31st, 2008, 12:21 AM
I'm not going to do it for you but i'll give you the info to do it yourself
You need a tweenclass like tweener or tweenlite
Set the loaded swfs alpha or whatever on load to 0
Setup CLICK event listeners and conditional statements
nico
July 31st, 2008, 12:40 AM
thanks saxx, but i really know the basics of transitions, what im asking is the idea and algorithm on which whenever u click on a button, it fades in and click another button then the present swfs will do a fadeout and after that will load the new swf.. i think i need a variable or something to track down what is the active page loaded. its really driving me nuts!
LeonardoZimbres
July 31st, 2008, 10:30 AM
well, first you load you swf file, add event listener to awser when loaded. When loaded, you can start doing tricks, like the tween ones.
nico
August 3rd, 2008, 03:21 AM
well, its really easy to think on how to create this kind of action on some of our as projects, as3 gurus, do you have any idea or just the algorithm on how to create transitions on external swfs. :)
Xoxo
January 14th, 2009, 07:01 PM
Hello!
Is there any possibility of achieving this without tween classes and using intro and outo animations defined in the embedded swf timeline?
Thank you!!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.