
Example 1-3. The updated image code
<mx:Image id="myimg" source="@Embed('mypicture.jpg')"
height="100" top="60" left="30" rotation="−10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
<mx:showEffect>
<mx:Fade alphaFrom="0” alphaTo="1” duration="1000” />
</mx:showEffect>
<mx:hideEffect>
<mx:Fade alphaFrom="1” alphaTo="0” duration="1000” />
</mx:hideEffect>
</mx:Image>
I’ve
chosen to use a fade effect, but there are lots of different
filters and effects that you can apply to any Flex control. You
can even combine effects in parallel or as a sequence to create
cool transitions almost always without using any ActionScript
code.
Figure 1-3. Our starter application so far
Having Some Image Fun | 5
Comentários a estes Manuais