Try the same without curlies {}, i.e. use showEffect=”move1” instead of “{move1}”. If that does not work, you can always use the target property in the effect, and run a play() on the effect from any handler, like the show handler.

 


From: [email protected] [mailto:[email protected]] On Behalf Of dorkie dork from dorktown
Sent: Saturday, November 04, 2006 10:56 PM
To: [email protected]
Subject: [flexcoders] Cannot get any effects to work

 

How come this code does not work? It seems straigt forward. I just
want the header to fade in and slide in from the top when the
application first starts. Why does flex hate me? I hope you can help
or else I will be execute.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="0xFFFFFF">

<!--Effects-->
<mx:Move id="move1" yFrom="-100" yTo="0" duration="2000"/>
<mx:Fade id="fade1" alphaFrom="0" alphaTo="1" duration="2000"/>

<!--Layout-->
<mx:VBox x="0" y="0" width="100%" height="100%"
showEffect="{fade1}">
<!--When the app loads I want the HBox to move in from off the
screen and fade in-->
<mx:HBox width="100%" backgroundColor="#000000" height="100"
verticalAlign="bottom" paddingBottom="10" paddingLeft="10"
showEffect="{move1}">
<mx:Image source="myimage.png" width="100" height="80"/>
<mx:Text text="Some Text" fontSize="54" color="#ffffff"
fontFamily="Georgia" textAlign="left"/>
</mx:HBox>
<mx:HBox width="100%" height="25" label="Menu bar"
backgroundColor="#9c1f4a" verticalAlign="middle" color="#ffffff">
</mx:HBox>
</mx:VBox>
</mx:Application>

__._,_.___

--
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

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to