MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manual do Utilizador Página 99

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 148
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 98
Figure 6-3. The calculator with the week table
Now
I can build my training calendar using this handy tool. Of
course, I can put an application such as this in any web page
just like any other Flash movie. It’s self-contained and ready to
go.
A Simple Image Viewer
Web 2.0 is all about the media; images and video. So, it’s a
good thing that Flex makes it so easy to build Flash applications
that use heaping helpings of both. I’ll start by building a very
simple image viewer that can look at a set of canned images
(see Example 6-3).
Example 6-3. Pictures.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
horizontalAlign="left">
<mx:Array id="images">
<mx:String>megan1.jpg</mx:String>
<mx:String>megan2.jpg</mx:String>
<mx:String>megan3.jpg</mx:String>
<mx:String>megan4.jpg</mx:String>
A Simple Image Viewer | 83
Vista de página 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 147 148

Comentários a estes Manuais

Sem comentários