This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Using ActionScript

Unigine engine supports ActionScript 2.0 to control the flash movies in the Unigine-based applications.
All UnigineScript methods can be called from ActionScript code via Engine extension class.

Warning
Flash is no longer under development, please use other solutions for in-app GUIs.

Implemented classes and methods are as follows. (Neither polymorphism nor exception handling is currently supported).

ClassSupported methodsSupported Properties
Array push
pop
shift
join
slice
splice
concat
reverse
length
Color setRGB
getRGB
setTransform
getTransform
Date getYear
getFullYear
getMonth
getDate
getDay
getHours
getMinutes
getSeconds
getMilliseconds
Engine* logMessage
logWarning
logError
logFatal
systemSet
systemGet
systemCall
worldSet
worldGet
worldCall
editorSet
editorGet
editorCall
consoleRun
consoleIsVariable
consoleGetInt
consoleSetInt
consoleGetFloat
consoleSetFloat
consoleGetString
consoleSetString
Key isDown
getCode
getAscii
addListener
removeListener
Math All functions are supported
MovieClip play
stop
nextFrame
prevFrame
gotoAndPlay
gotoAndStop
getNumFrames
setFrame
getFrame
localToGlobal
globalToLocal
hitTest
getNextHighestDepth
createEmptyMovieClip
duplicateMovieClip
removeMovieClip
attachMovie
loadMovie
getBytesTotal
getBytesLoaded
Mouse addListener
removeListener
Stage width
height
String split
slice
substr
substring
concat
charAt
charCodeAt
fromCharCode
toUpperCase
toLowerCase
length
TextField text
htmlText
textWidth
textHeight
* UnigineScript runtime interaction extension, up to 6 function arguments are allowed.
Last update: 2017-07-03
Build: ()