Jump to content


How do you listen for a netStatus event on a VideoLoader?

Recommended Posts

I can see (using VideoLoaderVars) that there is an onHTTPStatus() function but not sure how to listen for the netstatus.

Link to comment
Share on other sites

You can add it manually, like:


myVideoLoader.addEventListener(NetStatusEvent.NET_STATUS, myFunction);
function myFunction(event:LoaderEvent):void {
   trace("NetStatusEvent. code: " + event.data.code);

Link to comment
Share on other sites

  • 4 weeks later...

The confusion is due to an error in the ASDocs.


netStatus event

Event object type: flash.events.NetStatusEvent


Line #28 in VideoLoader.as is currently:


[Event(name="netStatus", type="flash.events.NetStatusEvent")]


and it should be:




It is just using the same string as NetStatusEvent.NET_STATUS, but it is actually a LoaderEvent that is dispatched.


Hope that helps.

Link to comment
Share on other sites

Yep, thanks for pointing that out. It used to be dispatched as a NetStatusEvent, but when it changed to LoaderEvent, I neglected to update that line for the ASDocs.

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.