MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Spezifikationen Seite 21

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 35
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 20
209
EXTENDING FIREWORKS: DEVELOPING AN EFFECTIVE WORKFLOW USING JAVASCRIPT AND FLASH
// TODO: Manually update positions of all other elements on stage
}
Updating the position of the single button was not that bad—it just took a couple of lines of
ActionScript. However, that’s just for the single button on the stage. We really want the header and
background artwork to stretch as the panel is resized. For panels with more UI elements, our resize
desires will grow in complexity. Enter the AlignmentManager extension for Flash. I wrote this Flash
panel a few years ago to save time when creating resizable Flash layouts. (Note: This panel was written
in ActionScript 2 and will not work with ActionScript 3 projects. I don’t currently have plans to update
this as I see the Flex layout controls as a replacement for this panel.)
The AlignmentManager is included as an MXP in the Utilities folder of the resource files for this
chapter. After installing it via the Flash Extension Manager, you should see AlignmentManager listed in
the
Components panel under the Infragistics section, as shown in Figure 11-11.
Drag an instance of the component onto the stage, and then open the Component inspector in
Flash (
Window Component Inspector). Figure 11-12 shows the custom Property inspector for the
AlignmentManager component. The managed MovieClips listed are elements on the Draw Rect stage.
Figure 11‑11. AlignmentManager Flash Figure 11‑12. Managing MovieClips
component with the AlignmentManager
Seitenansicht 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 34 35

Kommentare zu diesen Handbüchern

Keine Kommentare