virtualviewer V. 1.0 Documentation

 

Properties
Name Type Description
imagePath String Property indicates image path of viewer to use,it can be either a library identifier
isSurround Boolean Boolean value indicating if the viewer can be full 360 view,yes (true) or not (false).
moveSpeed Number Property indicates the speed of viewer movement
slowDownSpeed Number Property indicates the speed of viewer slowdown
viewAction String Indicates if viewing will occur when the mouse is: over the viewing area ("over"), pressed over the viewing area ("press")
xSpeed Number

Property indicates the horizontal speed for viewing .

ySpeed Number

Property indicates the vertical speed for viewing.

Methods
     
     
Events
Name Return Value Description
onProgress type
target

Triggered when the component is loading image

Example

myViewer.onProgress= function(target_mc) {
     trace("onProgress.");
}

onLoad type
target

Triggered when the component completed image loading

Example

myViewer.onLoad= function(target_mc) {
     trace("onLoad completed.");
}

onStart type
target

Triggered when the component start view event

Example

myViewer.onStart= function(target_mc) {
     trace("onStart.");
}

onStop type
target

Triggered when the component stop view event

Example

myViewer.onStop= function(target_mc) {
     trace("onStop.");
}

onOver type
target

Triggered when the component view area is over

Example

myViewer.onOver= function(target_mc) {
     trace("onOver.");
}

onOut type
target

Triggered when the component view area is over

Example

myViewer.onOut= function(target_mc) {
     trace("onOut.");
}