Embedding Movies with Flash, Part II: Basic Properties: A Final Word - Doc JavaScript | WebReference

Embedding Movies with Flash, Part II: Basic Properties: A Final Word - Doc JavaScript


Embedding Movies with Flash, Part II: Basic Properties

A Final Word

In this column we continued 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 continued this mini-series, focusing on how to set and get the Flash movie's properties.

In this column we first showed you how to extend your JavaScript include file to allow multiple Flash objects on the same page. We also enhanced the include file to return a Flash object, so you can now embed an object using a single JavaScript statement. We demonstrated a Flash method to pause a movie and dedicated the rest of the column to some of the Flash movie's properties. You can use these properties to change the x or y position of the movie frame, to scale the movie the frame along the x or y direction, and to find the currently playing frame.

In this column we used two SWFs: swift3d.swf, courtesy of www.swift3d.com, and opener.swf, courtesy of www.associatesinscience.com.

In this column you have learned:

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.

http://www.internet.com


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: June 18, 2001
Revised: June 18, 2001

URL: http://www.webreference.com/js/column86/10.html