7.3. Flash Viewer Parameter Reference

The following parameters are normally defined in the "parameters.xml" file in the model data folder. You can also directly pass these parameters to the viewer movie via the scripting interface.

Parameter

Default

Values

Notes

rotateX

0

A number between -10 and 10

Amount of spin about X-axis (horizontal axis in image).

rotateY

0

A number between -10 and 10

Amount of spin about Y-axis (vertical axis in image).

model

-

.123 filename

The model data file path relative to the model data folder. The texture map image should be in the same folder.

width

800

Integer size in pixels

The width to use for 3D model display. Only used if not using the whole stage (resizeToStage is false).

height

600

Integer size in pixels

The height to use for 3D model display. Only used if not using the whole stage (resizeToStage is false).

resizeToStage

true

true or false

If set to true the whole of the available stage will be used to display the 3D model. Use the standard width and height attributes when embeding the Flash movie in HTML to define the stage size.

modelHighRes

-

.123 filename

If defined contains the relative path to a high resolution model which will be used when the object is static. The model texture image should be in the same folder.

controls

3dsom_controls.swf

Flash 9 SWF movie

The Flash movie that displays the viewer control bar and interacts with the main viewer movie (see Scripting the Flash Viewer section for details). The default control bar displays a number of buttons to change the interaction mode (rotate, translate or zoom).

background

3dsom_backdrop.swf

SWF movie or image (JPG or GIF)

A movie or image that is displayed behind the viewer and controls.

cameraDistance

800

Number > 0

The distance from the camera to the object in pixels. The model is rescaled so that the default value displays the model filling the available viewer window.

cameraMinDistance

0

Number > 0

The closest the camera is allowed to the centre of the displayed object. Increase this value to restrict how far the user can zoom-in to the 3D model.

cameraMaxDistance

10000

Number > 0

The furthest the camera can be moved from the object. Decrease this value to restrict how far the user can zoom-out from the 3D model.