ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.skinError | |||
Flash Player 8.
Flash Professional 8.
varlistenerObject:Object = new Object();listenerObject.skinError = function(eventObject:Object):Void {// insert event-handling code here}; my_FLVplybk.addEventListener("skinError",listenerObject);
Event; dispatched when an error occurs loading a skin SWF file. The event has a message property that contains the error message.
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";
FLVPlayback.skin, FLVPlayback.skinLoaded
|
|
|
|