import mx.effects.*;
private var myEffect:Effect;
private function changeEffect(event:Event):void{
switch (effectList.selectedItem){
case "Fade" :
myEffect = new Fade();
break;
case "Dissolve" :
myEffect = myDissolve;
break;
case "Iris" :
myEffect = new Iris();
break;
case "Zoom" :
myEffect = new Zoom();
break;
case "WipeRight" :
myEffect = new WipeRight();
break;
case "WipeLeft" :
myEffect = new WipeLeft();
break;
case "WipeUp" :
myEffect = new WipeUp();
break;
case "WipeDown" :
myEffect = new WipeDown();
}
myImage.setStyle("showEffect", myEffect);
myImage.setStyle("hideEffect", myEffect);
}
Fade
Dissolve
Iris
Zoom
WipeRight
WipeLeft
WipeUp
WipeDown