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
Comments to this Manuals