FLVPlayback.resize
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.resize = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("resize", listenerObject);
Description
Event; dispatched when video is resized. This occurs when you set the
visibleVideoPlayerIndex
The event object has the properties
number of the video player to which the event applies. For more information on the
property, see
FLVPlayback.activeVideoPlayerIndex
FLVPlayback.visibleVideoPlayerIndex
The
property is
auto
maintainAspectRatio
video player other than the visible video player. The event might be dispatched even if the
dimensions do not actually change after an attempt to automatically resize the component
occurs.
When the
property is
auto
property still appears but will always be equal to the
The component dispatches the event (with
visibleVideoPlayerIndex
dimensions than the currently visible player.
Example
The following example plays two FLV files. It adds an ActionScript cue point to the first FLV
file and, when the
cuePoint
the second FLV file. When it sets the
player, it triggers the
video player.
property and switch to a video player with different dimensions.
,
auto
when the resizing is automatic because the
true
property is
. In this case, the event might be dispatched for a
true
, the event always applies to the visible video player. The
false
property if you are switching to a video player with different
event occurs, it switches to a second, smaller video player to play
visibleVideoPlayerIndex
event, which displays the size and location of the current
resize
,
,
,
and
x
y
width
height
on page 549
on page
688.
visibleVideoPlayerIndex
set to
auto
false)
, which is the index
vp
and
or
autoSize
property.
when you set the
property for the video
FLVPlayback class
vp
vp
641
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers