OpusScript is based on JavaScript familiar to most web developers. Therefore all the syntax and basic features of OpusScript will be usable in your HTML5 publication. Furthermore, any JavaScript can be placed in a script object and will be executed even though it will only work when published and uploaded not when previewed. This allows you to create and run your own custom JavaScript, php or mySQL functions and extend your HTML5 publication in any way you would extend standard HTML web material.
Any functionality not supported via the standard Actions dialog will not be supported in script either. Here is a quick overview of the functionality which is not supported in HTML5 export.
All Database functions – use javascript, php and mySQL instead.
All drawing script functions – AddPoint, RemovePoint etc.
All browser controls except for Navigate to.
Any disk access. DLL and file browse functions – read, write, delete file, CallFn, LoadDLL etc.
Multiple Bookmark functions but Single Bookmark functions will work
All clipboard and registry functions.
All View functions, Window or Display functions such as Change Display Mode, Maximise
All Clock functions
All CD player functions.
All Publication Evaluation functions.
Publication Search is unsupported.
Text functions such as Word Count and GetSelection.
Blends and textures
Any Autonarrate features – use tween animation instead.
Reference of Supported Features
Function Name: | Category: | Description: |
| A list of all the Date functions | |
| A list of all the Math functions | |
MultiFrames | Go back one frame | |
Slideshow | Continue a Slideshow | |
Graphical Objects | Enable or disable this object | |
Global | Exit the publication, via an Exit page (if any) | |
Graphical Objects | Fade an object by an amount | |
Basic Objects | Finds the child of this object with a particular name | |
Basic Objects | Finds the descendent of this object with a particular name | |
Global String | Format a number as a string | |
MultiFrames | Go forward one frame | |
Basic Objects | Gets a child of this object by index | |
Basic Objects | Gets the first child of this object | |
Graphical Objects | Get the height of the object | |
Pages | Get the x and y coordinates of the current mouse position | |
Basic Objects | Gets the name of the object | |
Basic Objects | Gets the child of this object that follows another | |
Basic Objects | Gets the number of children of this object | |
Basic Objects | Gets the parent of this object | |
Graphical Objects | Get the x and y coordinate of the objects position | |
Slideshow | Get the slide currently visible | |
Slideshow | Count the number of slides in a slideshow | |
Buttons | Returns the current state of a push button | |
Global | Get the object’s Object Type e.g. button, image etc. | |
Basic Objects | Gets a string that is unique to this object | |
Graphical Objects | Get the width of the object | |
Graphical Objects | Get the x coordinate of the objects position | |
Graphical Objects | Get the y coordinate of the objects position | |
Global | Go to the previous page in the publication | |
Pages | Go to a specific Bookmark | |
Global | Go to the next page in the publication | |
Global | Go to the next page in the page history | |
Global | Go to a random page within the chapter without repeating | |
Global | Go to the previous page in the page history | |
Global | Go to a random page within the chapter | |
Slideshow | Go to a specific slide | |
Graphical Objects | Hide this object | |
Global String | Convert a value to an integer | |
Graphical Objects | Test if this object is enabled | |
Graphical Objects | Test if this object is intersecting another | |
Slideshow | Check if a specified Slideshow is playing | |
Graphical Objects | Test if this object is showing | |
Global | Open a URL | |
Global String | Get the length of a string | |
String | The length of the string | |
Graphical Objects | Move the object by its x and y coordinates | |
Graphical Objects | Move the object by its x coordinate | |
Graphical Objects | Move the object by its y coordinate | |
Browser | Set a URL for the browser | |
Global String | Convert a value to a number | |
Slideshow | Pause a Slideshow | |
Slideshow | Play a Slideshow | |
Video | Play a specified video | |
Global String | Get a random integer | |
Graphical Objects | Rotate an object by a specified angle | |
Graphical Objects | Scale an object horizontally and vertically by a percentage | |
Graphical Objects | Scale an object horizontally by a percentage | |
Graphical Objects | Scale an object vertically by a percentage | |
Pages | Bookmark the current page | |
Graphical Objects | Set aspects of the objects position | |
Sound | Set the current position in seconds for a sound file | |
Graphical Objects | Set the x coordinate of the objects position | |
Graphical Objects | Set the y coordinate of the objects position | |
Graphical Objects | Set an objects rotation to a specified angle | |
Graphical Objects | Set the horizontal and vertical scale of an object to a percentage | |
Graphical Objects | Set the horizontal scale of an object to a percentage | |
Graphical Objects | Set the vertical scale of an object to a percentage | |
Buttons | Sets the current state of a push button | |
Graphical Objects | Set the objects transparency | |
Graphical Objects | Show this object | |
Slideshow | Stop a Slideshow | |
Graphical Objects | Stop an animation | |
Global String | Convert a value to a string | |
MultiFrames | Go to last frame in the MultiFrame | |
MultiFrames | Go to a given frame in the MultiFrame | |
Global String | Get a lower case version of a string | |
MultiFrames | Go to first frame in the MultiFrame | |
Global String | Get an upper case version of a string | |
Event Objects | Activate a Custom Trigger for a specified object. |