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

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 184
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 173
174 Migration Patterns
Instantiating Flex controls
In Flex 1.x, you created a Flex control in ActionScript by first including a reference to that
control, and then using the
createEmptyObject(), createChild(), createChildren(),
createChildAtDepth(), or createClassChildAtDepth() method.
These methods were removed. In Flex 2, you use the
new operator to create child controls and
attach the control to a container with the
addChild() or addChildAt() method. For
example:
Flex 1.x:
var b:Button;
b = Button(createChild(Button, undefined, { label: "OK" }));
Flex 2:
var b:Button = new Button();
b.label = "OK";
addChild(b);
Similarly, in Flex 2 you would destroy the object with the destroyObject(),
destroyChild(), destroyChildAt(), or destroyAllChildren() method. These methods
are also deprecated. Instead, you use the
removeChild() or removeChildAt() method.
The
createComponent() method now takes only a descriptor as its first argument, rather
than either a descriptor or a descriptor index. If you know the index, use
childDescriptors[i] to get the descriptor itself.
For more information on creating and destroying Flex controls in ActionScript, see the Flex 2
Developer’s Guide.
Flex 1.x Flex 2
createComponent() method
createComponentFromDescriptor()
createComponents()
method
createComponentsFromDescriptors()
Seitenansicht 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 183 184

Kommentare zu diesen Handbüchern

Keine Kommentare

MD Building Products 87684 manuály

Uživatelské manuály a uživatelské příručky pro ne MD Building Products 87684.
Poskytujeme 1 manuály pdf MD Building Products 87684 ke stažení zdarma podle typů dokumentů: Instalační příručka


Tabulka s obsahem





Další produkty a příručky pro ne MD Building Products

Modely Typ Dokumentu
03822 Instalační příručka   MD Building Products 03822 Installation Guide, 1 stránky
71480 Instalační příručka   MD Building Products 71480 Installation Guide, 1 stránky
70409 Instalační příručka   MD Building Products 70409 Installation Guide, 1 stránky
73098 Instalační příručka   MD Building Products 73098 Installation Guide, 1 stránky
06635 Manuál s instrukcemi   MD Building Products 06635 Instructions / Assembly, 1 stránky
03772 Instalační příručka   MD Building Products 03772 Installation Guide, 1 stránky
70144 Instalační příručka   MD Building Products 70144 Installation Guide, 1 stránky
69962 Instalační příručka   MD Building Products 69962 Installation Guide, 1 stránky
69609 Instalační příručka   MD Building Products 69609 Installation Guide, 1 stránky
02071 Instalační příručka   MD Building Products 02071 Installation Guide, 1 stránky
50005 Instalační příručka   MD Building Products 50005 Installation Guide, 1 stránky
50144 Instalační příručka   MD Building Products 50144 Installation Guide, 1 stránky
43251 Instalační příručka   MD Building Products 43251 Installation Guide, 1 stránky
69138 Instalační příručka   MD Building Products 69138 Installation Guide, 1 stránky
43250 Instalační příručka   MD Building Products 43250 Installation Guide, 1 stránky
70441 Instalační příručka   MD Building Products 70441 Installation Guide, 1 stránky
02352 Instalační příručka   MD Building Products 02352 Installation Guide, 1 stránky
69791 Instalační příručka   MD Building Products 69791 Installation Guide, 1 stránky
25756 Instalační příručka   MD Building Products 25756 Installation Guide, 1 stránky
03426 Instalační příručka   MD Building Products 03426 Installation Guide, 1 stránky