Artur, For using Dissolve with a Panel or
TitleWindow, you have to specify the targetArea for your Dissolve effect. Here
is an example: <?xml version="1.0"
encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
height="100%" currentState="Register"
creationComplete="init()"> <mx:Script> import mx.graphics.*; [Bindable] public var tArea:RoundedRectangle; [Bindable] public var tArea2:RoundedRectangle private function init(): void { tArea = new RoundedRectangle(0,0,
panel1.width, panel1.height, 5); tArea2 = new RoundedRectangle(0,0,
panel1.width, panel1.height, 5); } </mx:Script> <mx:transitions> <mx:Transition fromState="*"
toState="other"> <mx:Parallel> <mx:Dissolve
target="{panel1}" duration="1000" alphaFrom="1.0" alphaTo="0.0"
targetArea="{tArea}" /> <mx:Dissolve
target="{panel2}" duration="1000" alphaFrom="1.0" alphaTo="0.0"
targetArea="{tArea2}"/> </mx:Parallel> </mx:Transition> </mx:transitions> <mx:states> <mx:State
name="Register" /> <mx:State
name="other" /> </mx:states> <mx:Panel id="panel1"
title="Panel 1" width="100" height="140" > <mx:Button label="orange"
/> </mx:Panel> <mx:Panel id="panel2"
title="Panel 2" width="100" height="140" > <mx:Button label="orange"
/> </mx:Panel> <mx:Button label="change
state" click="currentState='other'" /> </mx:Application> Joan From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of de.newsight I try to use the dissolve effect in a transition to
fade out 2 panels, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |