WHAT'S HOT
Prev | Current Page 168 | Next

LordAlex Leon, Greg Goralski

"Foundation Flex for Designers"


Since a function always needs to be called by something, we call the initAppDrag function when the
background image is first loaded in. We trigger the initAppDrag function through a creationComplete
event. It is simplest to add this directly to the image MXML tag in the Source view. Add the
creationComplete event to the Image component by adding creationComplete="initAppDrag()", as
shown in Figure 12-36.
Figure 12-36. Image MXML tag with dragging initiation event
Summary
As you learned in this chapter, using Flex Builder to create AIR applications opens a lot of new opportunities.
With AIR you create applications that are not accessed through the Internet but that are
installed on users??™ computer. This allows applications to continue functioning even when no Internet
access is available. These applications still have the ability to access the Internet and load data when
the computer is connected.
You can also create applications that have easy access to the hard drive of the user. The example that
we created also used the ability of AIR applications to create a distinct application window shape that
used the alpha channel to hide part of the background image.
Congratulations on making it through the book. You now have a diverse set of tools to control the
look and feel of a Rich Internet Application, you can create applications for both the Web and the
desktop, and you can use the built-in features of Flex Builder, such as fluid layout and drag-and-drop.


Pages:
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
aragorn.binto.pl pit 37 druk Wczasy nad morzem Fundusze Emerytalne uchwyt lcd