ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  FlashMovie
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


FlashMovie
scene size: 5.2KB [enlarge window]
 
download zipped archive
(archive size: 5.4KB)


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.

#VRML V2.0 utf8

EXTERNPROTO FlashMovie [
  exposedField SFBool   wantMouse       # TRUE
  exposedField SFBool   wantKeys        # TRUE
  exposedField SFBool   playing         # FALSE
  exposedField SFBool   loop            # FALSE
  exposedField SFInt32  quality         # 0=Low, 1=High, 2=AutoLow, 3=AutoHigh
  exposedField SFInt32  scaleMode       # 0=ShowAll, 1=NoBorder, 2=ExactFit
  exposedField SFInt32  alignMode       # flags, Left=1, Right=2, Top=4, Bottom=8
  exposedField SFInt32  frameNum        # 0
  exposedField SFInt32  width           # 256
  exposedField SFInt32  height          # 256
  exposedField SFColor  backgroundColor # []
  exposedField MFString url             # []
  field        SFBool   repeatS         # TRUE
  field        SFBool   repeatT         # TRUE
  eventIn      SFString command         #
  eventOut     SFInt32  readyState      # 0=Loading, 1=Uninitialized, 
					# 2=Loaded, 3=Interactive, 4=Complete
  eventOut     SFInt32  totalFrames     #
  eventOut     SFInt32  percentLoaded   #
  eventOut     MFString fsCommand       #
]
[
  "urn:ParaGraph:FlashMovie"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl#FlashMovie"
]
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:

wantMousedetermines whether the Flash movie can receive mouse events from Cortona window
wantKeysdetermines whether the Flash movie can receive keyboard events from Cortona window
playingspecifies whether the Flash movie is playing
loopspecifies 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.
qualityspecifies the level of anti-aliasing to be used during playback of the Flash movie. Values: 0=Low, 1=High, 2=AutoLow, 3=AutoHigh
scaleModedetermines 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
alignModedetermines 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
frameNumspecifies the number of the current frame in the Flash movie (the first frame has a zero number)
width, heightindicate the width and height of the Flash movie texture in pixels respectively
backgroundColor  specifies the background color of the Flash movie
urldefines the URL for the Flash movie file
repeatS, repeatTspecify how the texture wraps in the S and T directions. They are analogues of repeatS and repeatT fields of the VRML ImageTexture node respectively.
commandspecifies 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.
readyStateindicates the state of the Flash movie. Values: 0=Loading, 1=Uninitialized, 2=Loaded, 3=Interactive, 4=Complete.
totalFramesspecifies the total number of frames in the Flash movie.
percentLoadedindicates the percentage of the Flash movie loading process.
fsCommandspecifies 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.






Last updated: Fri, 05 Sep 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.