flex中Parallel与Sequence

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Glow id="buttonGlow" color="0x99FF66" alphaFrom="1.0" alphaTo="0.0"  duration="1500"/>
           
<mx:Parallel id="BlurMoveShow" target="{myLabel1}">
    <mx:Blur id="numbersBlur"
        blurYFrom="10.0" blurYTo="0.0"
        blurXFrom="10.0" blurXTo="0.0"
        duration="2000"/>
    <mx:Move id="numbersMove" yBy="20" duration="2000" />
</mx:Parallel>

<mx:Sequence id="sBlurMoveShow" target="{myLabel2}">
    <mx:Blur id="snumbersBlur"
        blurYFrom="10.0" blurYTo="0.0"
        blurXFrom="10.0" blurXTo="0.0"
        duration="2000"/>
    <mx:Move id="snumbersMove" yBy="100" duration="2000" />
</mx:Sequence>

 

<mx:Panel x="462" y="27" width="373" height="456" layout="absolute">
  <mx:Button x="34" y="10" label="View" id="myButton1" click="BlurMoveShow.play(); myLabel1.visible=true;" mouseDownEffect="buttonGlow" />
  <mx:Button x="190" y="10" label="View" id="myButton2" click="sBlurMoveShow.play(); myLabel2.visible=true;" mouseDownEffect="buttonGlow" />       
  <mx:Label x="34" y="58" text="4 8 15 16 23 42" id="myLabel1" visible="true"/>
  <mx:Label x="190" y="58" text="4 8 15 16 23 42" id="myLabel2" visible="true"/>
</mx:Panel>
</mx:Application>

    A+
发布日期:2009年12月13日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: