User Guide
FLVPlayback class 673
FLVPlayback.skinError
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.skinError = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("skinError", listenerObject);
Description
Event; dispatched when an error occurs loading a skin SWF file. The event has a message
property that contains the error message.
Example
The following example attempts to load the skin property with the name of a fictitious skin
file and shows the content of the event
message property when the skinError event occurs.
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.skinError = function(eventObject:Object):Void {
trace(eventObject.message);
}
my_FLVPlybk.addEventListener("skinError", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
my_FLVPlybk.skin = "NoSuchSkin.swf";
See also
FLVPlayback.skin, FLVPlayback.skinLoaded