The FlashMovie node enables you to place Flash animations in your VRML scenes and establish bi-directional interaction between VRML scenes and Flash animations.
Flash Player v.4 or later should be installed on your computer.
EXTERNPROTO FlashMovie [
exposedField SFBool wantMouse
exposedField SFBool wantKeys
exposedField SFBool playing
exposedField SFBool loop
exposedField SFInt32 quality
exposedField SFInt32 scaleMode
exposedField SFInt32 alignMode
exposedField SFInt32 frameNum
exposedField SFInt32 width
exposedField SFInt32 height
exposedField SFColor backgroundColor
exposedField MFString url
field SFBool repeatS
field SFBool repeatT
eventIn SFString command
eventOut SFInt32 readyState
eventOut SFInt32 totalFrames
eventOut SFInt32 percentLoaded
eventOut MFString fsCommand
]
[
"urn:ParaGraph:FlashMovie"
"http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
]
The key benefits from displaying Flash movies using the FlashMovie node instead of the MovieTexture node:
| |

 |
ability to control the playback of Flash movies from VRML scenes by starting or stopping animations, or by specifying frame numbers;
|
| |

 |
direct access from VRML scenes to the basic properties of Flash movies, such as quality and background color of the movie;
|
| |

 |
Flash FSCommand actions generate events in VRML scenes.
|

The texture field of the Appearance VRML node, and the texture field of the AdvancedAppearance VRML extension node in Cortona, can reference FlashMovie node.
Fields and events:
| wantMouse | determines whether the Flash movie can receive mouse events from Cortona window |
 |
| wantKeys | determines whether the Flash movie can receive keyboard events from Cortona window |
 |
| playing | specifies whether the Flash movie is playing |
 |
| loop | specifies whether the Flash movie continues playing into the next cycle at the end of the previous cycle. A Flash movie with loop true at the end of every cycle continues playing forever. |
 |
| quality | specifies the level of anti-aliasing to be used during playback of the Flash movie. Values: 0=Low, 1=High, 2=AutoLow, 3=AutoHigh |
 |
| scaleMode | determines how the Flash movie is displayed if its size differs from the size specified by the width/height properties. Values: 0=ShowAll, 1=NoBorder, 2=ExactFit |
 |
| alignMode | determines how the Flash movie is aligned if its size differs from the size specified by the width/height properties. Values: Left=1, Right=2, Top=4, Bottom=8 |
 |
| frameNum | specifies the number of the current frame in the Flash movie (the first frame has a zero number) |
 |
| width, height | indicate the width and height of the Flash movie texture in pixels respectively |
 |
| backgroundColor | specifies the background color of the Flash movie |
 |
| url | defines the URL for the Flash movie file |
 |
| repeatS, repeatT | specify how the texture wraps in the S and T directions. They are analogues of repeatS and repeatT fields of the VRML ImageTexture node respectively. |
 |
| command | specifies a string which is transferred to the Flash movie. This string can be used for setting values of Flash movie properties and invoking methods which have no parameters. |
 |
| readyState | indicates the state of the Flash movie. Values: 0=Loading, 1=Uninitialized, 2=Loaded, 3=Interactive, 4=Complete. |
 |
| totalFrames | specifies the total number of frames in the Flash movie. |
 |
| percentLoaded | indicates the percentage of the Flash movie loading process. |
 |
| fsCommand | specifies MFString strings containing commands generated in the Flash movie. This event value has the following syntax: [command, arg] or [command1, arg1, command2, arg2,...]. For more details see the Controlling the Flash Player entry in the Macromedia Flash help system. |
|