发新话题
打印

斑竹介绍一下AW6.5新增加的函数和变量吧。

斑竹介绍一下AW6.5新增加的函数和变量吧。

有些新函数比较有用。

TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

既然你都知道有些函数比较有用。。。你来介绍一下 :-)

TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

What's New in Authorware 6 > New properties, functions, and variables > New functions
   

New functions
The following functions have been added to Authorware 6. For complete details, see System functions overview Function
Description

GetExternalMedia (IconID@ "IconTitle"/ LibraryID)
Returns full list of external media associated wih the node or the library. This function returns an empty list when used on packaged files.
Each property list represents a single piece of external media. Display and interaction icons can have more than one of these. The list contains the IconID, the IconTitle, a Boolean value to indicate whether the media is linked by literal (Literal=true) or by expression (Literal=false), the path if the item is a literal, and the file name. If the item is linked by an expression, then the path is empty and the expression comes in the file name spot; that's the way it is stored in the IconID.

GetFunctionList (Category)
Returns a property list with information about the functions within the specified category.

GetLibraryInfo()
Returns a linear list of all libraries currently associated with the current course file. The list also includes library files currently open, whether they are linked to the course or not. This function only operates on unpackaged files.

GetPasteHand()
Returns the IconID of icon on the flowline closest to the Paste Hand. If the IconID is positive, then the paste hand is before the icon. If the IconID is negative, then the paste hand is after the icon. If the value returned is 0, then the paste hand is on the tool palette. This function only operates on unpackaged files.

GetSelectedIcons()
Returns a linear list describing the selected icons in the front map. Values returned include the Icon Title, Icon ID, and Icon Type.

GetVariableList (Category)
Returns a property list with information about the variables within the specified category.

GroupIcons()
Groups the selected icons. The selection is maintained after grouping. This function only operates on unpackaged files.

OpenFile ("filename")
Opens the specified course file. If "filename" is omitted, a new untitled file is created. If the file specified cannot be found, a new file is created with the specified title. Sets IOStatus and IOMessage. Returns a value of TRUE if successful. This function does nothing unless called via the CallTarget function on an unpackaged target file.

OpenLibrary ("filename")
Opens the specified course library file. Returns the value of IOStatus. This function only operates on unpackaged files.

PackageFile("OutputFile",Runtime, ResolveLinksAtRuntime, PackLibsInternal, PackMediaInternal, UseDefaultNames, [LibraryLocations])
Packages the currently open course file. Returns the value of IOStatus. This function does nothing unles called via the CallTarget function on an unpackaged file. Values include the following:
Output file=name of the output file to create
Runtime 0=None, 1=16 bit, 2=32 bit.
ResolveLinksAtRuntime, TRUE / FALSE.
PackLibsInternal, TRUE / FALSE.
PackMediaInternal, TRUE / FALSE.
UseDefaultNames, TRUE / FALSE
Library Locations, (if libraries are packaged externally) List of the LibraryId and location of packaged exernal libraries.

PackageLibrary(LibraryID,"OutputFile", ReferencedOnly, UseDefaultName, PackMediaInternal)
Packages the specified library file. The library specified must be connected with the current course. Returns the value of IOStatus. Use GetLibraryInfo to obtain the LibraryIDs for each library.

SaveLibrary(LibraryID, ["New Filename"])
Saves the specified content library file. If "New filename" is provided, the library is saved to the new file and the original file is left intact. The course file will be marked as "Changed" during this process. Returns the value of IOStatus. This function works on unpackaged files only.

SetHotObject(iconId for response, iconID for object)
Sets the currently active object for the response. This function works both at Runtime and Authoring time. Since the value is not stored when set through this function, use SetIconProperty for design time changes that are stored in the file.

SetMotionObject(iconId for response, iconID for object)
Sets the currently active object for the response. This function works both at Runtime and Authoring time. Since the value is not stored when set through this function, use SetIconProperty for design time changes that are stored in the file.

SetTargetObject(iconId for response, iconID for object)
Sets the currently active object for the response. This function works both at Runtime and Authoring time. Since the value is not stored when set through this function, use SetIconProperty for design time changes that are stored in the file.

UngroupIcons()
Ungroups the selected icons. Ungrouping icons that are not grouped maps (as well as empty maps) deletes the icon. The selection is maintained after ungrouping. This function only operates on unpackaged files.

.
     



TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

帮助里面有,有些我不知道怎么用。

TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

恩。。等你研究透了。。对函数变量的使用就升了一级拉

TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

我看不懂。有谁能翻译一下就好了

TOP

斑竹介绍一下AW6.5新增加的函数和变量吧。

是啊,谁能用中文详细介绍一下就好啦!

TOP

发新话题