MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Bedienungsanleitung Seite 184

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 184
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 183
184 Migration Patterns
In Flex 2, you must use the Application.application.parameters property to get the
values of these variables. The
parameters property is an Object, which is a dynamic class that
you can use to store name and value pairs pass in as
flashVars variables. The following
example sets variables by using the Flex 2 syntax:
<mx:Script>
public var fName:String = Application.application.parameters.firstname;
public var mName:String = Application.application.parameters.middlename;
public var lName:String = Application.application.parameters.lastname;
</mx:Script>
For more information on using the Application.application.parameters property, see Chapter
34, “Communicating with the Wrapper,” in the Flex 2 Developer’s Guide.
Seitenansicht 183
1 2 ... 179 180 181 182 183 184

Kommentare zu diesen Handbüchern

Keine Kommentare