Sunday, April 4, 2010

Multiple effects

Hello, I'm trying to run multiple effects in different areas in my app. I'm not getting any errors but its not working. Can some help me? Here is my code


%26lt;mx:Move id=''showeffect2'' yFrom=''300''/%26gt;
%26lt;mx:Move id=''hideeffect2'' yBy=''600''/%26gt;
%26lt;mx:Fade id=''fadeOut'' duration=''1000'' alphaFrom=''1.0'' alphaTo=''0.0''/%26gt;
%26lt;mx:Fade id=''fadeIn'' duration=''1000'' alphaFrom=''0.0'' alphaTo=''1.0''/%26gt;

%26lt;mx:LinkBar color= ''#FFFFFF'' height=''28''?dataProvider= ''{tabNav}'' backgroundColor=''#e489cd''?borderStyle=''solid'' width=''867'' borderColor=''#FFFFFF'' selectionColor=''0xffffff'' separatorColor=''0xcccccc''?rollOverColor =''0xe489cd'' textRollOverColor=''0xcccccc''?textSelectedColor=''0x000000'' x=''100'' y=''28''/%26gt;?

%26lt;mx:ViewStack id=''tabNav'' borderStyle=''solid'' width=''867'' height=''485''?x=''100'' y=''75''%26gt;
%26lt;mx:VBox id=''Home'' backgroundImage=''@Embed(source='assets/HBoxmain.jpg')'' showEffect=''showffect2'' hideEffect=''hideeffect2'' horizontalAlign=''center'' verticalAlign=''middle'' label=''Home''?width=''100%'' height=''100%'' borderStyle=''solid''?borderColor=''#FFFFFF'' %26gt;

%26lt;mx:TextArea id=''textArea'' width=''424'' height=''296'' paddingTop=''130'' paddingBottom=''100'' backgroundImage=''@Embed(source='assets/textareahome.jpg')'' borderColor=''#FFFFFF''?borderStyle=''solid'' borderThickness=''2'' color=''#FFFFFF''?backgroundColor=''#e489cd'' shadowDirection='''' wordWrap=''true'' horizontalScrollPolicy=''off'' fontSize=''18'' textAlign=''left'' verticalScrollPolicy=''on'' editable=''false'' %26gt;
?
?
%26lt;/mx:TextArea%26gt;?
%26lt;mx:Image source=''@Embed('assets/Text.png')'' hideEffect=''{fadeOut}'' showEffect=''{fadeIn}'' %26gt;

Multiple effects

You have to use a parallel or a sequence of effects in order to play

them at the same time or one after another.

2009/6/7, webguy5612 %26lt;forums@adobe.com%26gt;:

%26gt;

Hello, I'm trying to run multiple effects in different areas in my app. I'm

not getting any errors but its not working. Can some help me? Here is my

code

%26gt;

%26gt;

%26lt;mx:Move id=''showeffect2'' yFrom=''300''/%26gt;

%26lt;mx:Move id=''hideeffect2'' yBy=''600''/%26gt;

%26lt;mx:Fade id=''fadeOut'' duration=''1000'' alphaFrom=''1.0'' alphaTo=''0.0''/%26gt;

%26lt;mx:Fade id=''fadeIn'' duration=''1000'' alphaFrom=''0.0'' alphaTo=''1.0''/%26gt;

%26gt;

%26lt;mx:LinkBar color= ''#FFFFFF'' height=''28'' dataProvider= ''''

backgroundColor=''#e489cd'' borderStyle=''solid'' width=''867''

borderColor=''#FFFFFF'' selectionColor=''0xffffff'' separatorColor=''0xcccccc''

rollOverColor =''0xe489cd'' textRollOverColor=''0xcccccc''

textSelectedColor=''0x000000'' x=''100'' y=''28''/%26gt;

%26gt;

%26lt;mx:ViewStack id=''tabNav'' borderStyle=''solid'' width=''867'' height=''485''

x=''100'' y=''75''%26gt;

%26lt;mx:VBox id=''Home'' backgroundImage=''@Embed(source='assets/HBoxmain.jpg')''

showEffect=''showffect2'' hideEffect=''hideeffect2'' horizontalAlign=''center''

verticalAlign=''middle'' label=''Home'' width=''100%'' height=''100%''

borderStyle=''solid'' borderColor=''#FFFFFF'' %26gt;

%26gt;

%26lt;mx:TextArea id=''textArea'' width=''424'' height=''296'' paddingTop=''130''

paddingBottom=''100''

backgroundImage=''@Embed(source='assets/textareahome.jpg')''

borderColor=''#FFFFFF'' borderStyle=''solid'' borderThickness=''2''

color=''#FFFFFF'' backgroundColor=''#e489cd'' shadowDirection=''''

wordWrap=''true'' horizontalScrollPolicy=''off'' fontSize=''18''

textAlign=''left'' verticalScrollPolicy=''on'' editable=''false'' %26gt;

%26gt;

%26gt;

%26lt;/mx:TextArea%26gt;

%26lt;mx:Image source=''@Embed('assets/Text.png')'' hideEffect=''''

showEffect='''' %26gt;

%26gt;

%26gt;

Multiple effects

This solved my problem thanks

%26lt;mx:Sequence id=''showEffect''%26gt;
%26lt;mx:Move?yFrom=''300''/%26gt;

%26lt;/mx:Sequence%26gt;
%26lt;mx:Fade id=''fadeMeIn'' duration=''1500'' /%26gt;
%26lt;mx:Parallel id=''fadeAndSlideMeIn'' duration=''1500''%26gt;
%26lt;mx:Fade alphaFrom=''0'' alphaTo=''1'' /%26gt;
%26lt;mx:Move xFrom=''350'' xTo=''200'' /%26gt;
%26lt;/mx:Parallel%26gt;

No comments:

Post a Comment