Section 25.118. FlashPlayer: plug-in for Flash movies


25.118. FlashPlayer: plug-in for Flash movies

Flash 2.0

25.118.1. Methods


GetVariable( )

Returns the value of a variable defined by a Flash movie.


GotoFrame( )

Jumps to the specified frame number in the movie.


IsPlaying( )

Checks whether the movie is playing.


LoadMovie( )

Loads an auxiliary Flash movie and displays it at a specified layer or level of the current movie.


Pan( )

Moves the viewport of the movie.


PercentLoaded( )

Determines how much of the movie has loaded.


Play( )

Begins playing the movie.


Rewind( )

Rewinds the movie to its first frame.


SetVariable( )

Sets a variable defined by a Flash movie.


SetZoomRect( )

Sets the area of the movie displayed by the Flash player.


StopPlay( )

Stops the movie.


TotalFrames( )

Returns the length of the movie, as a number of frames.


Zoom( )

Changes the size of the movie's viewport.

25.118.2. Description

A FlashPlayer object represents a Flash movie embedded in a web page and the instance of the Flash plug-in that is playing that movie. You can obtain a FlashPlayer object using Document.getElementById( ), for example, to get the <embed> or <object> tag that embeds the movie in the web page.

Once you have obtained a FlashPlayer object, you can use the various JavaScript methods it defines to control playback of the movie and to interact with it by setting and querying variables. Note that FlashPlayer methods all begin with a capital letter, which is not a common naming convention in client-side JavaScript.

25.118.3. See Also

Chapter 23




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net