Skip to main content
Participating Frequently
June 6, 2009
Answered

Masking Image while using transitions

  • June 6, 2009
  • 1 reply
  • 645 views

Hi,

I've just created a sliding transition, see code below, which masks an image however when I run the swf it doesn't work and just displays the whole image without a mask.

import fl.transitions.*;
import fl.transitions.easing.*;

var myTM:TransitionManager = new TransitionManager(slide);
myTM.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:6});

Any help would be great,

Thanks,

This topic has been closed for replies.
Correct answer kglad

the wipe effect probably already uses a mask and you can't assign more than one mask per displayobject.  to work-around, re-parent slide and add your mask to slide's parent.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 6, 2009

the wipe effect probably already uses a mask and you can't assign more than one mask per displayobject.  to work-around, re-parent slide and add your mask to slide's parent.

Participating Frequently
June 7, 2009

Really should have thought of that. Oh well, thanks again.

kglad
Community Expert
Community Expert
June 7, 2009

you're welcome.