MACROMEDIA FLEX-GETTING STARTED WITH FLEX User Manual Page 99

  • Download
  • Add to my manuals
  • Print
  • Page
    / 148
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 147 148

Comments to this Manuals

No comments