New functions

New functions have been added to Authorware 7. For complete details, see System Functions.

Function Description
BuildDisplay

Adds a new object to the display specified in IconID, and describes the object in the ObjectList argument. If a third argument is included, the item is inserted into existing items at the location specified by index.

CMIShowErrors

Controls whether error dialog boxes automatically appear to the user at runtime. The default is to show errors. If show is true, errors appear. If show is false, errors do not appear.

DVDAction

Affects DVD playback based on the symbol specified.

DVDCaptions

Turns on the DVD captions when TRUE (if they are present). Specify FALSE to turn captions off.

DVDChapterNum

Returns the number of the current chapter.

DVDCreate

Creates the DVD playback window at the window positions and sizes specified. DVDFilename is the full drive letter, path, and filename of the file to open when creating the DVD window. All the parameters are optional.

If you do not specify both the WindowLeft and WindowTop (or they are zero), the window origin is at 0, 0. If you do not specify the WindowHeight and WindowWidth (or they are zero), it creates the DVD window at a size to match the current size of the Authorware Presentation window. If you omit the DVDFilename (or pass a null string), DVDCreate finds the first DVD disc in a DVD drive on the system and attempts to load that disc.

The initial window is created hidden, to allow for audio-only playback. To display the DVD window, use DVDShowWindow(TRUE).

Returns true if successful.

DVDCurrentTitleNum

Returns the current title number.

DVDDirectX

Returns the version number of Microsoft Windows DirectX support installed.

DVDGetDrive

Returns the drive letter of the first DVD drive it finds on the system with a DVD disc loaded. DVDGetDrive begins its search from the drive letter specified. Returns a null string if no DVD drive with a disc is found.

DVDGetVolume

Returns the DVD audio level as a percentage: 100 is full volume, and 0 is no volume.

DVDMute

Mutes the DVD audio when TRUE. Specify FALSE to restore the sound.

DVDNumChapters

Returns the number of chapters in the specified title. If TitleNumber is omitted, it returns the number of chapters in the current title.

DVDNumTitles

Returns the number of titles on the current DVD.

DVDPlayChapter

Plays the specified chapter in the specified title. If TitleNumber is 0, the chapter is played from the current title.

DVDPlaytime

Plays the specified Title number from the specified start time to the specified end time. If Title is 0, the selection plays from the current title number. If the end time is omitted, the playback continues to the end of the title.

DVDSelectButton

Selects the specified button number from the DVD menu.

DVDSetVolume

Sets the DVD audio level as a percentage: 100 is full volume, and 0 is no volume.

DVDShowWindow

Creates the DVD window in a hidden state. Use DVDShowWindow(TRUE) to show the window. Use DVDShowWindow(FALSE) to hide the DVD window if it is visible.

EvalJS

Executes the JavaScript string and returns the result. The JavaScript is evaluated in the context of Authorware. There are no browser window objects. If a syntax error occurs, it is noted in EvalStatus and EvalMessage.

EvalJSFile

Reads the specified file, executes the string as JavaScript, and returns the result. The JavaScript is evaluated in the context of Authorware. There are no browser window objects. If a syntax error occurs, it is noted in EvalStatus and EvalMessage.

InsertIcon

Inserts an icon of type "IconType" on the Authorware flow line at the current location of the paste hand.

JSGarbageCollect

Performs garbage collection in the JavaScript memory pool. Garbage collection, if necessary, frees the memory used by JavaScript objects, doubles, and strings that are no longer needed by a script that is executing in the current context. Garbage collection frees space in the memory pool so that it can be reused by the JavaScript engine. Generally, garbage collection is best handled automatically by the JavaScript engine and this function does not need to be called.

ShowTitlebar

On the Macintosh, ShowTitleBar turns the presentation window title bar on or off. Specify OFF as the argument to hide the title bar; specify ON to display the title bar. In Windows and on the Macintosh, you can use the File Properties dialog box to turn the title bar on or off for the entire presentation. Use ShowTitleBar only in calculation icons.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/authorware/7/using_aw_en/01_wha10.htm