Chapter 3
176
The individual properties of the date object instance returned are:
Examples
These statements create and determine the number of days between two dates:
myBirthDay = date(19650712)
yourBirthDay = date(19450529)
put "There are" && abs(yourBirthday - myBirthday) && "days between our
birthdays."
These statements access an individual property of a date:
myBirthDay = date(19650712)
put "I was born in month number"&&myBirthday.month
See also
date() (system clock)
deactivateApplication
Syntax
on deactivateApplication
Description
Built-in handler; runs when the projector is sent to the background. This handler is useful when a
projector runs in a window and the user can send it to the background to work with other
applications. Any MIAWs running in the projector can also make use of this handler.
During authoring, this handler is called only if Animate in Background is turned on in General
Preferences.
On Windows, this handler is not called if the projector is merely minimized and no other
application is brought to the foreground.
Example
This handler plays a sound each time the user sends the projector to the background:
on deactivateApplication
sound(1).queue(member("closeSound"))
sound(1).play()
end
See also
add (3D texture), activeCastLib, on deactivateWindow
#year
Integer representing the year
#month
Integer representing the month of the year
#day
Integer representing the day of the month
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...