OPPapers.com Essay Index >> Technology >> Flash Action Script
We have many free term papers and essays on Flash Action Script. We also have a wide variety of research papers and book reports available to you for free. You can browse our collection of term papers or use our search engine.
FLASH ACTION SCRIPT. Recipe 2.5 Scaling the Movie 2.5.1 Problem You want to
control how a movie fits in the Player, including the scaling. ...
... Basic Design Functionality of Macromedia Flash MX 5.5 Advanced Design Functionality
of Macromedia Flash MX 3.0 Macromedia Flash MX Action Script for Developers ...
... The script for Mercury Rising is exceptionally tiresome and ... With a flash of his fingers
on the keyboard ... blankness adjoining the square with the movie action. ...
... help of sixteen telephone conversations and through the various flash-backs of ... points
in her book Making a Good Script Great: • It leads the action to a ...
... A JavaScript script is a program that is included on ... Animation and action along with
controlled pop up programming ... People are drawn to the "flash" and "sparkle ...
Submitted by anandv on August 8, 2007
Category: Technology
Words: 278 | Pages: 2
Views: 171
Popularity Rank: 69,155
Average Member Grade: N/A (Add a Comment / Grade this Paper)
Recipe 2.5 Scaling the Movie
2.5.1 Problem
You want to control how a movie fits in the Player, including the scaling.
2.5.2 Solution
Use the Stage.scaleMode property.
2.5.3 Discussion
The Flash Player defaults to a scale mode of "showAll" (except the test Player, which defaults to "noScale"). In "showAll" mode, the Flash movie scales to fit the Player while maintaining the movie's original aspect ratio. The result is that the movie can have borders on the sides if the Player aspect ratio does not match the movie aspect ratio. You can set a movie to "showAll" mode, as follows:
Stage.scaleMode = "showAll";
The "noBorder" mode scales a movie to fit the Player while maintaining the original aspect ratio, but it forces the Player to display no borders around the Stage. If the aspect ratio of the Player does not match that of the movie, some of the movie will be cut off around the edges. You can set a movie to "noBorder" mode, as follows:
Stage.scaleMode = "noBorder";
The "exactFit" mode scales a movie to fit the Player and alters the movie's aspect ratio, if necessary, to match that of the Player. The result is that the movie always exactly fills the Player, but the elements of the movie may be distorted. For example:
Stage.scaleMode = "exactFit";
In "noScale" mode, the movie is not scaled, and it maintains its original size and aspect ratio regardless of the Stage's size. When you use the "noScale" mode, also set the movie's alignment (see Recipe 2.6). For example:
Stage.scaleMode = "noScale";
The scaleMode property's value does not prevent the user from being able to scale the movie using the right-click/Ctrl-click menu. However, you can disable those options in the menu, as shown in Recipe 2.9.
You must Login to view the entire paper.
If you are not a member yet, Sign Up for free!