MACROMEDIA FLEX-GETTING STARTED WITH FLEX Instrukcja Użytkownika Strona 21

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 148
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 20
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
Przeglądanie stron 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 147 148

Komentarze do niniejszej Instrukcji

Brak uwag