User Guide
Table Of Contents
- Contents
- Flash Lite Global Functions
- call()
- chr()
- duplicateMovieClip()
- eval ()
- getProperty()
- getTimer()
- getURL()
- gotoAndPlay()
- gotoAndStop()
- ifFrameLoaded()
- int()
- length()
- loadMovie()
- loadMovieNum()
- loadVariables()
- loadVariablesNum()
- mbchr()
- mblength()
- mbord()
- mbsubstring()
- nextFrame()
- nextScene()
- Number()
- on()
- ord()
- play()
- prevFrame()
- prevScene()
- random()
- removeMovieClip()
- set()
- setProperty()
- stop()
- stopAllSounds()
- String()
- substring()
- tellTarget()
- toggleHighQuality()
- trace()
- unloadMovie()
- unloadMovieNum()
- Flash Lite Properties
- Flash Lite Statements
- Flash Lite Operators
- add (string concatenation)
- += (addition assignment)
- and
- = (assignment)
- /* (block comment)
- , (comma)
- // (comment)
- ?: (conditional)
- -- (decrement)
- / (divide)
- /= (division assignment)
- . (dot)
- ++ (increment)
- && (logical AND)
- ! (logical NOT)
- || (logical OR)
- % (modulo)
- %= (modulo assignment)
- *= (multiplication assignment)
- * (multiply)
- + (numeric add)
- == (numeric equality)
- > (numeric greater than)
- >= (numeric greater than or equal to)
- <> (numeric inequality)
- < (numeric less than)
- <= (numeric less than or equal to)
- () (parentheses)
- " " (string delimiter)
- eq (string equality)
- gt (string greater than)
- ge (string greater than or equal to)
- ne (string inequality)
- lt (string less than)
- le (string less than or equal to)
- - (subtract)
- -= (subtraction assignment)
- Flash Lite Specific Language Elements
- Capabilities
- fscommand()
- fscommand2()
- Escape
- FullScreen
- GetBatteryLevel
- GetDateDay
- GetDateMonth
- GetDateWeekday
- GetDateYear
- GetDevice
- GetDeviceID
- GetFreePlayerMemory
- GetLanguage
- GetLocaleLongDate
- GetLocaleShortDate
- GetLocaleTime
- GetMaxBatteryLevel
- GetMaxSignalLevel
- GetMaxVolumeLevel
- GetNetworkConnectStatus
- GetNetworkName
- GetNetworkRequestStatus
- GetNetworkStatus
- GetPlatform
- GetPowerSource
- GetSignalLevel
- GetTimeHours
- GetTimeMinutes
- GetTimeSeconds
- GetTimeZoneOffset
- GetTotalPlayerMemory
- GetVolumeLevel
- Quit
- ResetSoftKeys
- SetInputTextType
- SetQuality
- SetSoftKeys
- StartVibrate
- StopVibrate
- Unescape

on() 33
on()
Availability
Flash Lite 1.0.
Usage
on(event) {
// statement(s)
}
Operands
statement(s) The instructions to execute when event occurs.
event This trigger is called an event. When a user event occurs, the statements following it
within curly braces (
{}) execute. Any of the following values can be specified for the
event parameter:
■ press The button is pressed while the pointer is over the button.
■ release The button is released while the pointer is over the button.
■ rollOut The pointer rolls outside the button area.
■ rollOver The pointer rolls over the button.
■ keyPress "key" The specified key is pressed. For the key portion of the parameter,
specify a key code or key constant.
Description
Event handler; specifies the user event or keypress that triggers a function. Not all events
are supported.
Example
The following code, which scrolls the myText field down one line when the user presses the
8 key, tests against
maxscroll before scrolling:
on (keyPress "8") {
if (myText.scroll < myText.maxscroll) {
myText.scroll++;
}
}