ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.skinLoaded | |||
Flash Player 8.
Flash Professional 8.
varlistenerObject:Object = new Object();listenerObject.skinLoaded = function(eventObject:Object):Void {// insert event-handling code here}; my_FLVplybk.addEventListener("skinLoaded",listenerObject);
Event; dispatched when a skin SWF file is loaded. The component does not begin playing an FLV file until the ready and skinLoaded (or skinError) events have both started.
The following example shows the name of the component's skin when the skinLoaded event starts.
Drag an FLVPlayback component to the Stage, and give it an instance name of my_FLVPlybk. Then add the following code to Frame 1 of the Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybkh
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.skinLoaded = function(eventObject:Object):Void {
trace("Skin: " + eventObject.target.skin + " has loaded");
};
my_FLVPlybk.addEventListener("skinLoaded", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/cuepoints.flv";
FLVPlayback.addEventListener(), FLVPlayback.skin, FLVPlayback.skinError
|
|
|
|