Category Archives: TitleWindow (Spark)

Constraining the movement on a Spark TitleWindow container in Flex 4

In a previous example, “Restricting the movement of a pop up Spark TitleWindow container to a single axis in Flex 4”, we saw how you could limit the Spark TitleBar container’s movement to a single axis by modifying the TitleWindowBoundsEvent object’s afterBounds object using the windowMoving event.

The following example shows how you can constrain a Spark TitleWindow container within a Flex 4 application by modifying the TitleWindowBoundsEvent event object’s afterBounds property during the windowMoving event.

Full code after the jump.

Continue reading Constraining the movement on a Spark TitleWindow container in Flex 4

Restricting the movement of a pop up Spark TitleWindow container to a single axis in Flex 4

In a previous example, “Creating a non-draggable Spark TitleWindow container in Flex 4”, we saw how you could create a non-draggable Spark TitleWindow container in Flex 4 by listening for the windowMoving event and calling the stopImmediatePropagation() and preventDefault() methods (or modify the moveArea skin part’s Boolean visible property).

The following example shows how you can limit the Spark TitleBar container’s movement to a single axis by modifying the TitleWindowBoundsEvent object’s afterBounds object using the windowMoving event.

Full code after the jump.

Continue reading Restricting the movement of a pop up Spark TitleWindow container to a single axis in Flex 4

Creating a non-draggable Spark TitleWindow container in Flex 4

The following example shows how you can create a non-draggable Spark TitleWindow container in Flex 4 by listening for the windowMoving event and calling the stopImmediatePropagation() and preventDefault() methods.

Full code after the jump.

Continue reading Creating a non-draggable Spark TitleWindow container in Flex 4