
ADOBE DIRECTOR 11.0
User Guide
215
2
Select Insert > Control > ActiveX.
3
In the dialog box that appears, select the ActiveX control and then click OK. The ActiveX Control Properties
dialog box appears.
(If the ActiveX control does not appear in the list, it may not have been installed properly by the system. You can
attempt to verify this by viewing the list of ActiveX controls in another application, such as Visual Basic.)
The ActiveX Control Properties dialog box lets you edit each ActiveX control and view information regarding
each method that the control supports and each event the control can generate.
4
Set the values for each property in the ActiveX control and then click OK. The ActiveX control now appears in
the cast.
5
Drag the ActiveX control from the cast to the Stage.
Once the ActiveX control appears on the Stage, it can be repositioned and resized just like any other sprite Xtra.
When you pause the movie, the ActiveX control stays in authoring mode and does not react to mouse or
keyboard events. When you play the movie, the control responds to user input.
Setting ActiveX control properties
An ActiveX control describes its information by using properties such as color, text, font, and so on. Properties can
include visual aspects and also behavioral ones. For example, a button might have a property that indicates whether
the button is momentary or push-on/push-off. An ActiveX control’s properties define its state—some or all of which
properties may persist. Although the control can change its own properties, it’s also possible that the container
holding the control might change a property. In response, the control would change its state, user interface, and so
on.
To view and edit the properties of an Active X control that is inserted in a Director movie, use the Properties tab of
the Control Properties dialog box for the ActiveX Xtra. Each property exported by the ActiveX control and its
current value are identified. To edit a value, the user clicks over the existing value and enters the new value.
In Director, all properties that an ActiveX control exports are properties of the corresponding sprite. The generic
syntax for setting an ActiveX control property is as follows:
sprite(X).propertyName = value
The generic syntax for getting an ActiveX control property is as follows:
value = sprite(X).propertyName
As an example, if the Microsoft
®
Access™ Calendar control is inserted into a Director movie as the second sprite on
the Score, the following script sets the Year property of the Calendar control to a specific year:
sprite(2).year = 2017
To get the Year property from the same Calendar control and place it into a variable named
CalendarYear
, use the
following script:
CalendarYear = sprite(2).year
Because some ActiveX control properties are read-only, trying to set their properties causes an error in Director. For
more information, see the documentation for the ActiveX control you are using.
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...