Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > NetConnection > NetConnection constructor | |||
public NetConnection()
Creates a NetConnection object that you can use in conjunction with a NetStream object to play back local streaming video (FLV) files. After creating the NetConnection object, use NetConnection.connect() to make the actual connection.
Playing external FLV files provides several advantages over embedding video in a Flash document, such as better performance and memory management, and independent video and Flash frame rates. The NetConnection class provides the means to play back streaming FLV files from a local drive or HTTP address.
Availability: ActionScript 1.0; Flash Player 7 - Note: This class is also supported in Flash Player 6 when used with Flash Media Server. For more information, see your Flash Media Server documentation.
See the example for NetConnection.connect().
connect (NetConnection.connect method), attachVideo (Video.attachVideo method), NetStream
Flash CS3