MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuel d'utilisateur Page 135

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 134
CHAPTER 9
Flex on AIR
Adobe’s
AIR runtime is your ticket to the world of cross-plat-
form desktop application development. And the great news is
that you can use the tools you already know. AIR supports
building desktop applications in either Flex or DHTML. In this
chapter, I’ll concentrate on the use of Flex.
Creating an AIR Version of the Runner’s
Calculator
The process starts with creating an AIR project in Flex Builder.
Use the NewProject menu item as you normally would. Then
select “Desktop application” instead of “Web application”, as
I have done in Figure 9-1.
I’m going to create an AIR version of the runner’s calculator
example from Chapter 3. Once I’ve created the AIR project
using the New MXML Project command, I copy all of the con-
tent from my original runner application, except for the
mx:Application tag, into the AIR_runner.mxml file. This is
shown in Example 9-1.
Example 9-1. AIR_runner.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com
/2006/mxml”
119
Vue de la page 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 147 148

Commentaires sur ces manuels

Pas de commentaire