Skip to content
cliffhall edited this page Sep 23, 2012 · 10 revisions

PureMVC ActionScript 3 Utility: Desktop Citizen (AIR)

This utility provides the ability for PureMVC-based AIR applications remember their window size, position, and maximized state each time it is launched. It also provides a facility for requiring confirmation (or executing some shutdown process) before the application window closes.

Standard and MultiCore versions are included.

Status

Production - Version 1.3

PureMVC Utilities Used

Demos Using This Utility

Platforms / Technologies

Changes in 1.3

  • Added support for WindowedApplication (previously only Application was supported).
  • Added ENABLE_CONFIRM/CONFIRM_CLOSING notes that give you a hook into the process of closing a window. Major thanks to Ondina for the work she did on this.
  • Refactored the note naming scheme. Don't worry, it's backward compatible as long as you were using the DesktopCitizenConstants before, I just changed how the note names are composed and added the two new ones.

Changes in 1.2.1

  • Moved constructor actions to onRegister.

Changes in 1.2

  • Added !MultiCore support.
  • No Standard version functionality changes except renaming source tree, therefore, there is no need to migrate Standard version apps to 1.2 unless you're also migrating to MultiCore.

Changes in 1.1

  • Moved source code into src folder. No functionality changed.

Features in 1.0

  • Manages an XML Database with the information about the main application window's position, size and state (WindowMetrics)
  • Reads the Window Metrics at startup, applies to the main window then sends a notification that the window is ready to be shown.
  • Allows the window to be sized and positioned BEFORE being shown so that it doesn't flash up at a default size, then resize, causing visual repaint.
Clone this wiki locally