Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

kill a loader if the URL is not found

Recommended Posts

 private function loadFlv():void
  _flvLoader = new VideoLoader(_flvPath, {name:"flvLoader", bgColor:_videoBgColor, autoPlay:false, container:_videoContainer, bufferMode:true, width:stage.stageWidth, height:stage.stageHeight, scaleMode:_scaleMode, volume:_vol, onprogress:progressHandler, onComplete:flvBufferComplete, onerror:videoErrorHandler});


I'm calling this function to load an FLV. If the path is not found I'm calling videoErrorHandler.


My question is - What should I be doing in that handler, if anything, to make sure I can call this function again and have the loader work. Say If I was using this in a video gallery. If by chance one video did not load I would still want the player to work with the next video selected.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.