
Controlling the appearance of a MIAW
415
Window appearance methods
There are several new window appearance methods in Director MX 2004 that apply to MIAWs.
For more information about these methods, see the Scripting Reference topics in the Director
Help Panel.
The following are three of these methods:
•
minimize()
lets you minimize your windows. You can call this function when they make
custom title bars. Here is an example:
window ("miaw").minimize()
•
maximize()
lets you maximize windows. You can call this function when you make custom
title bars. Here is an example:
window ("miaw").maximize()
•
restore()
lets you restore a window after it has been maximized. You can call this function
when you set custom title bars. Here is an example:
window ("miaw").restore()
•
notifyUser()
allows developers to notify the user that the application needs the user's
attention. On Windows, the window's task bar entry will blink. On Macintosh, the projector's
icon will bounce in the dock. The method arguments are flash count and rate. Setting the flash
count to -1 causes the flash or bounce to continue indefinitely until the user responds. Here is
an example:
window("miaw").notifyUser(-1, 10000)
•
displaySystemTrayMessage()
(Windows only) This method allows users to pop up a
message over their system tray icon. The message will appear in a balloon tooltip. This is
enabled only if the Window's
systemTrayTooltip
property is set to true. The method
arguments are Message Title, Message Content, and display duration. Here is an example:
window("miaw").displaySystemTrayMessage("Message Title", "Message....",
1000);
Setting default MIAW properties using the Display Template
A movie can define the default properties of its window by using the Display Template. When a
MIAW is created, it will use its movie's Display Template properties to determine the initial state
and appearance of its window. You can set the Display Template properties through the Property
Inspector when authoring a movie. For more information about the different properties, see
“Controlling the appearance of a MIAW” on page 413
.
To set the Display Template:
1
With a movie open in the Stage, select Window > Property inspector.
2
Click the Display Template tab. A list of MIAW properties appears.
3
Set the General properties:
4
Set the Titlebar options.
5
Set the Appearance options.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...