lz

JavaScript: lz
The `lz` object is a pseudo-package for all LZX globals. Any declared LZX tag can be accessed from JavaScript using the tag name and the `lz` object.
@short-desc Pseudo-package for all LZX globals

Class Attributes

Name Type (tag) Type (js) Default Category
Audio       unknown
  lz.Audio is a shortcut for LzAudioService.LzAudio.
AudioService       unknown
   
Browser   lz.BrowserService   unknown
 

The lz.Browser service provides methods for communicating with the browser that embeds the application.

BrowserService       unknown
   
colors       unknown
  CSS color names from http://www.w3.org/TR/css3-color/#svg-color. These match the names in the compiler.
CSSStyle       unknown
   
CSSStyleDeclaration       unknown
   
CSSStyleRule       unknown
   
CSSStyleSheet       unknown
   
Cursor   lz.CursorService   unknown
 

The lz.Cursor service provides methods for changing the mouse cursor.

This example shows how the cursor can be set on a view so that it will change when the mouse is over that view:

Example 19. Setting the cursor for a view

<canvas height="30">
   <resource name="waitcursor" src="resources/lzwaitcursor_rsc.swf"/>
   <view bgcolor="yellow" cursor="waitcursor">
     <text>Roll over to change the cursor</text>
   </view>
 </canvas>
edit

This example changes the cursor for 1/2 second when the button is clicked:

Example 20. Changing the cursor with lz.Cursor

<canvas height="30">
   <resource name="waitcursor" src="resources/lzwaitcursor_rsc.swf"/>
   <button onclick="setCursor()" text="Click me to change the cursor for 1/2 second">
     <method name="setCursor">
       lz.Cursor.setCursorGlobal('waitcursor');
       var del= new LzDelegate(lz.Cursor, 'unlock');
       lz.Timer.addTimer(del, 500);
     </method>
   </button>
 </canvas>
edit

CursorService       unknown
   
DataElement       unknown
   
DataElementMixin       unknown
   
DataNode       unknown
   
DataNodeMixin       unknown
   
DataProvider       unknown
   
DataRequest       unknown
   
DataText       unknown
   
Delegate       unknown
   
Event       unknown
   
Eventable       unknown
   
Focus       unknown
  lz.Focus is a shortcut for LzFocusService.LzFocus This service manages the keyboard focus. At any time, at most one view has the keyboard focus. This is the view that receives key events when a key is pressed.
FocusService       unknown
   
Font       unknown
   
GlobalMouse       unknown
   
GlobalMouseService       unknown
   
History       unknown
  lz.History is a shortcut for LzHistoryService.LzHistory
HistoryService       unknown
   
HTTPDataProvider       unknown
   
HTTPDataRequest       unknown
   
Idle       unknown
   
IdleService       unknown
   
Keys       unknown
  lz.Keys is a shortcut for LzKeysService.LzKeys.
KeysService       unknown
   
LazyReplicationManager       unknown
   
ModeManager       unknown
  lz.ModeManager is a shortcut for LzModeManagerService.LzModeManager.
ModeManagerService       unknown
   
Param       unknown
   
ReplicationManager       unknown
   
ResizeReplicationManager       unknown
   
Timer       unknown
   
TimerService       unknown
   
Track       unknown
  lz.Track is a shortcut for LzTrackService.LzTrack.
TrackService       unknown
   
URL       unknown