Flash - Wipe Transition

Soldato
Joined
30 Nov 2005
Posts
3,084
Location
London
Searched for hours on google but failed to find anything.

What I'm trying to do is have a Wipe transition between frames in the flash movie. So when a user clicks on a button within the Flash movie, which runs the 'Go to Frame' I would like a wipe transition between it.

I have a wipe in mind that uses a JPEG (Bitmap in Flash).

Any ideas if possible?
 
i'll try and have another look tomorrow.. i've got a bad headache atm, hit on a problem with the AS2.0 Transition class and don't have it in me to sit musing over it's cause.



somewhat of an example:

create a new fla (AS2.0), then a movieClip symbol that holds a jpeg and give the movieClip the instance name of mcWiper.

place this code on the main timeline and compile/test..
Code:
function fWipe(evtObj:MovieClip, sFrame:String):Void {
	var myTransitionIn:mx.transitions.TransitionManager = new mx.transitions.TransitionManager(evtObj);
	var myTransitionOut:mx.transitions.TransitionManager = new mx.transitions.TransitionManager(evtObj);
	myTransitionIn.startTransition({type:mx.transitions.Wipe, direction:Transition.IN, duration:1, easing:mx.transitions.easing.Strong.easeOut});
	var listenerObject:Object = new Object();
	listenerObject.allTransitionsInDone = function() {
		//gotoAndStop(sFrame);
		myTransitionOut.startTransition({type:mx.transitions.Wipe, direction:Transition.OUT, duration:1, easing:mx.transitions.easing.Strong.easeIn});
	};
	myTransitionIn.addEventListener("allTransitionsInDone", listenerObject);
}
fWipe(mcWiper, someFrameLable);
notice Transition.OUT does not work as expected/wanted :(

edit:
some TransitionManager class info, with links to adobe docs..
http://www.communitymx.com/content/article.cfm?page=4&cid=1ACBC
 
Last edited:
Thanks, I'll have a look over the links and the code.

Did think of a simplier option, that just plays a motion tween of the JPEG to make it look like a wipe (with a few other touches to make it look decent)?

Then after this has played it then goes to the selected frame.
 
Last edited:
Back
Top Bottom