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
Sent: Wednesday, August 30, 2006
1:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] using
dissolve effect in a transition
I try to use the dissolve effect in a transition to
fade out 2 panels,
but the effect don't work. How can I make it work?
mx:transitions
mx:Transition fromState=* toState=other
mx:Parallel
mx:Dissolve target={panel1} duration=1000
alphaFrom=1.0
alphaTo=0.0 /
mx:Dissolve target={panel2} duration=1000
alphaFrom=1.0
alphaTo=0.0 /
/mx:Parallel
/mx:Transition
/mx:transitions
Thanks, Artur
__._,_.___
--
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
Software development tool
Software development
Software development services
Home design software
Software development company
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___