polemios
10-01-2008, 12:39 AM
Hi,
I haven't done this sort of thing before, so I am completely lost.
I have a SWF with an FLVplayer component, name "flvplayer". I'm using a predefined ADOBE skin to control it.
there's a "poster image", aka an image on it's own layer, named "cover".
When the flvplayer starts playing, I want the cover to disappear.
Here's the code:
stop();
var listenerObject:Object = new Object();
listenerObject.play = function() {
cover._visible = false;
};
flvplayer.addListener(listenerObject);
I have tried "start", "onStart", "play", "onPLay", "playing", etc for the state of the listenerObject.
"Cover" never disappears.
Is there a simple error here, I don't see?
Also, just as an extra question, does anyone know how to stop the FLVPlayer from loading the content before someone hits play?
Thanks alot.
I haven't done this sort of thing before, so I am completely lost.
I have a SWF with an FLVplayer component, name "flvplayer". I'm using a predefined ADOBE skin to control it.
there's a "poster image", aka an image on it's own layer, named "cover".
When the flvplayer starts playing, I want the cover to disappear.
Here's the code:
stop();
var listenerObject:Object = new Object();
listenerObject.play = function() {
cover._visible = false;
};
flvplayer.addListener(listenerObject);
I have tried "start", "onStart", "play", "onPLay", "playing", etc for the state of the listenerObject.
"Cover" never disappears.
Is there a simple error here, I don't see?
Also, just as an extra question, does anyone know how to stop the FLVPlayer from loading the content before someone hits play?
Thanks alot.