Macromedia Flash Server - How do I listen for NetConnection events in AS3?

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > January 2006 > How do I listen for NetConnection events in AS3?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I listen for NetConnection events in AS3?
Tom Bray

2006-01-30, 8:45 pm

The AS3 language reference livedocs are down right now, so I can't
find out if there's any documentation about this. I want to be able
to handle the NetConnection.Connect.Success event, but I can't figure
out what the arguments to the nc.addEventListener() method should be.=20
Anybody know?

private function initApp():Void
{
nc =3D new NetConnection();
nc.connect( "rtmp://localhost/as3test" );
//what arguments do I use to listen for success?
nc.addEventListener( "what goes here??", connected, false, 1 );
}

public function connected():Void
{
trace( "connected" );
}

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com