Embedding Movies with Flash, Part II: Basic Properties - Doc JavaScript
Embedding Movies with Flash, Part II: Basic Properties
In this column we continue our series on embedding Flash objects in Web pages. We presented the basics of Flash and the FlashSound JavaScript API in Column 81, Embedding Sound with Flash, Part I: The Basics. We extended our coverage to multiple tracks and the interaction between them in Column 82, Embedding Sound with Flash, Part II: Playing Variations, and we concluded our coverage of the FlashSound JavaScript API in Column 83, Embedding Sound with Flash, Part III: Streams. We then turned our attention to native JavaScript support of Flash in Column 84, Embedding Sound with Flash, Part IV: Native JavaScript. In Column 85, Embedding Movies with Flash, Part I: Basic Methods we started a mini-series on embedding Flash movies, with emphasis on the Flash movie's methods. In this column we continue this mini-series, focusing on how to set and get the Flash movie's properties.
In this column we'll demonstrate a batch of Flash properties. Many Flash properties are geared towards movies, so you must have a Flash movie to see the effect of these properties. We'll show you how to shift a movie sideways or up and down, how to scale a movie frame along the x
or y
direction, and how to find the currently playing frame. In this column we improve the way we embed flash movies. After reading this column, you'll know how to embed two different movies on the same page, and how to embed a movie by a single JavaScript statement.
In this column we use two SWFs: swift3d.swf
, courtesy of www.swift3d.com, and opener.swf
, courtesy of www.associatesinscience.com.
In this column you will learn:
- How to embed multiple flash movies
- How to play multiple flash movies
- How to pause a movie
- How to shift a movie sideways
- How to shift a movie up and down
- How to to scale a movie in the x direction
- How to to scale a movie in the y direction
- How to detect the currently playing frame
You can download the Flash Player, the Flash Embedding JavaScript include file, the swift3d.swf SWF example, and the opener.swf SWF example. You can also find these files in one zipped file.
Next: How to embed multiple flash movies
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: June 18, 2001
Revised: June 18, 2001
URL: https://www.webreference.com/js/column86/index.html