Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member dsnyder's Avatar
    Join Date
    Apr 2007
    Location
    Cleveland, OH
    Posts
    27
    Member #
    15091
    Sorry, I assume that this has been asked a lot but I'm not finding the answer. Would someone be so kind as to give me a link or the answer? i made a player based on a tutorial series and would like to disable the auto play. I've only found posts dealing with stopping auto play in the XML version and I can't figure it out.

    I assume that I must modify the early part of the script?

    Code:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    
    var ns:NetStream = new NetStream(nc);
    
    ns.setBufferTime(10);
    
    ns.onStatus = function(info){
       if(info.code=="NetStream.Buffer.Full"){
          bufferClip._visible = false;
       }
       if(info.code=="NetStream.Buffer.Empty"){
          bufferClip._visible = true;
       }
       if(info.code=="NetStream.Play.Stop"){
          ns.seek(0);
       }
    }
    
    theVideo.attachVideo(ns);
    
    ns.play("celloSwingsm.flv");
    
    rewindButton.onRelease = function(){
       ns.seek(0);
    }
    playButton.onRelease = function(){
       ns.pause();
    }
    Thanks! Derek

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com