A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How do I add controls to NetStream Video Method

  1. #1
    Senior Member
    Join Date
    Jan 2001

    How do I add controls to NetStream Video Method

    I have a video loaded in nicely with the following actionscript. I am trying to figure out how to add in the controls ( or skin ). I need a play, pause, stop, progress, etc.

    var netConn:NetConnection = new NetConnection(); // Create a NetConnection object
    netConn.connect(null); // Create a local streaming connection
    var netStream:NetStream = new NetStream(netConn); // Create a NetStream object and define an onStatus() function
    myVideo.attachVideo(netStream);// Attach the NetStream video feed to the Video object:
    netStream.setBufferTime(3); // Set the buffer time:
    netStream.play("Xtreme1.flv"); // the FLV to play...

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    check the Help Files -

    ActionScript 2.0 Language Reference
    ActionScript classes > NetStream

    This class provides a number of methods and properties you can
    use to track the progress of the file as it loads and plays, and to give
    the user control over playback (stopping, pausing, and so on).

  3. #3
    Junior Member
    Join Date
    Feb 2006
    I followed some awesome tutorials in gotoandlearn.com

    Hope this helps


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center