Hi,

I just want to play a movieclip animation when my media player is buffering.

In the documentation it says this:

----------

isBuffering property

isBuffering:Boolean [read-only]
Returns a boolean value indicating if the media player is currently buffering media content.

Implementation
public function get isBuffering():Boolean

------------


So I tried this:

----------------AS3----------

if (mediaplayer.isBuffering = true)
{
mc1.play();
}
else
{
gotoAndPlay(2);
}

---------------------

I also tried this:


----------------

mediaplayer.addEventListener("isBuffering", isBufferingHandler);
function isBufferingHandler(e:Event){
if (mediaplayer.isBuffering = true)
{
mc1.play();
}
else
{
gotoAndPlay(2);
};
}

------------------

neither worked.

What am I doing wrong?


any help is appreciated


cheers