Bonjour, j'essaye de simplement ajouter un showEffect et un hideEffect sur un customComponent basé sur un TitleWindow mais, je n'ai aucun effet lors de l'affichage. Avez-vous déjà rencontré ce problème ?

Ci joint, le code : MyWindow.mxml

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" title="Title" creationComplete="init()" showEffect="{dissolveIn}" hideEffect="{dissolveOut}" showCloseButton="true" close="close(event)">
 
	<mx:Script>
		<![CDATA[
			import mx.managers.PopUpManager;
 
			private function init():void {
				PopUpManager.centerPopUp(this);
			}
 
			private function close(e:Event):void {
				PopUpManager.removePopUp(this);
			}
		]]>
	</mx:Script>
	<mx:Dissolve id="dissolveOut" duration="5000" alphaFrom="1.0" alphaTo="0.0"/> 
    <mx:Dissolve id="dissolveIn" duration="5000" alphaFrom="0.0" alphaTo="1.0"/>
 
</mx:TitleWindow>
Application.mxml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Button label="Popup Effect" horizontalCenter="0" verticalCenter="0" height="114" width="275" cornerRadius="50" click="createPopup()"/>
 
	<mx:Script>
		<![CDATA[
			import mx.managers.PopUpManager;
			import renderer.MyWindow;
 
			private var win:MyWindow;
 
			private function createPopup():void {
				win = MyWindow(PopUpManager.createPopUp(this,MyWindow,false));
 
			}
		]]>
	</mx:Script>
 
</mx:Application>