MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 671

Components language reference
Table of Contents

Advertisement

Description
Method; sets the
scaleX
individually, can cause automatic resizing, setting them simultaneously can be more efficient
than setting the
scaleX
If
is
, this method has no effect because the player sets its own dimensions. If
autoSize
true
the
maintainAspectRatio
or
causes automatic resizing.
scaleY
Example
The following example calls the
(y) dimensions of the FLVPlayback instance. The example sets the
property to
to prevent automatic resizing and allow the scaling to appear as specified.
false
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.maintainAspectRatio = false;
my_FLVPlybk.setScale(200, 175);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.scaleX
FLVPlayback.setSize()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.setSize(w:Number, h:Number)
and
properties simultaneously. Because setting either one,
scaleY
and
properties, individually.
scaleY
property is
true
setScale()
,
FLVPlayback.scaleY
and
is
autoSize
false
method to scale the horizontal (x) and vertical
,
FLVPlayback.setSize()
, then changing
scaleX
maintainAspectRatio
FLVPlayback class
669

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents