MACROMEDIA FLEX-GETTING STARTED WITH FLEX User Manual Page 19

  • Download
  • Add to my manuals
  • Print
  • Page
    / 148
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 18
computer, rename it to myimage.jpg, and drop it into the src
folder of your new project.
Next, double-click on the MXML file for the application and
add the code in Example 1-1.
Example 1-1. Starter.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Image source="@Embed('mypicture.jpg')" height="100"
top="30"
left="30" rotation="−10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
</mx:Application>
Now use the Run command in the Run menu to run the ap-
plication. You should see your picture rotated a little bit, with
a drop shadow added. Already, you can see that Flex can do
Figure 1-2. The empty Start page
Having Some Image Fun | 3
Page view 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 147 148

Comments to this Manuals

No comments