low) && (application.testPlayer.bytesLoaded < high));
}
private function stateCheck(e:MediaPlayerStateChangeEvent):void{
if (e.state == "buffering"){
application.testPlayer.dispatchEvent(new Event("videoBuffering"));
} else if (e.state == "ready"){
application.testPlayer.dispatchEvent(new Event("videoReady"));
} else if (e.state == "loading"){
application.testPlayer.dispatchEvent(new Event("videoLoading"));
} else if (e.state == "playing"){
application.testPlayer.dispatchEvent(new Event("videoPlaying"));
} else if (e.state == "playbackError"){
application.testPlayer.dispatchEvent(new Event("videoPlaybackError"));
};
}
]]>