FLVPlayback.transform

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.transform

Description

Property; an object that provides direct access to the Sound.setTransform() and Sound.getTransform() methods to provide sound control. You must set this property to an object to initialize it and for changes to take effect. Reading the property provides you with a copy of the current settings, which you can change. The default value is undefined.

Example

The following example sets the transform property to play the sound for the FLV file from the left speaker only.

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
*/
/* Play all the audio from the left speaker only */
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object) {
    if (eventObject.target.state == "loading") {  // if loading
        myTransform = new Object();
        myTransform.ll = 100;
        myTransform.lr = 100;
        myTransform.rr = 0;
        myTransform.rl = 0;
        my_FLVPlybk.transform = myTransform;
    }
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/cuepoints.flv";

See also

FLVPlayback.volume