2. Add animation instructions as follows:
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<!-- ref : http://seantheflashguy.com/flex/Flex3EffectsExample/srcview/index.html -->
<mx:Sequence id="compEffect" repeatCount="0" repeatDelay="1500">
<mx:Move xTo="200" />
<mx:Move yTo="200" />
<mx:Move xTo="100" />
<mx:Move yTo="100" />
</mx:Sequence>
</fx:Declarations>
3. Add canvas
<mx:Canvas id="myCanvas"
creationCompleteEffect="compEffect"
x="100" y="100"
width="100"
height="100"
backgroundColor="#0000ff"/>
4. Run the Project
沒有留言:
張貼留言