Welcome to WebDesignForums.net!
You're currently viewing WDF as a guest. By registering for a free account, you'll be able to participate with other members in our friendly community. Being a member allows you to ask questions and get answers for those troublesome web development tasks!

In addition, as a member you'll be able to post your websites up for review. Using our unique website review system you can gain some amazing feedback from some of the best web developers around. This is a completely free service to all registered members.

Ready to register yet? Registration is 100% free. Click Here To Join Now!

Buffering Video in Flash

Discussion in 'Adobe Flash Help' started by my_name_is_kurt, Sep 26, 2004.

  1. Offline

    my_name_is_kurt New Member

    Message Count:
    97
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Phoenix, Arizona
    Hi,

    I am currently developing a web site that uses a lot of video in the Flash platform. I was wondering if anyone knows a way to buffer video in Flash, like how QuickTime buffers movies. I would like for users to visually be able to tell that the video is playing and almost loaded.

    Thanks so much for any assistance.


  2. Offline

    raspberryh Member

    Message Count:
    882
    Likes Received:
    1
    Trophy Points:
    18
    Gender:
    Female
    Location:
    Erie, PA
    Hi,

    Have you ever made a preloader? You can make something similar to a preloader, but instead of having the movie not play until it is loaded, allow it to play - but you can still have that loading bar, so that they can see how much has loaded already.

    Heather


  3. Offline

    smoseley Administrator

    Message Count:
    9,727
    Likes Received:
    192
    Trophy Points:
    63
    Location:
    Boston, MA
    Flash 7 Pro has a great video component built in. Pre-Flash 7, you could make something like Heather is talking about with the MovieClip() class functionality:
    Code:
    FRAME 1:
    this.createEmptyMovieClip('m', 1);
    m.loadMovie('myMovie.mpg');
    m.onLoad = function() {
      gotoAndPlay(4);
    }
    
    FRAME 2:
    var pctLoaded = m.getBytesLoaded() / m.getBytesTotal();
    
    // The following is a reference to a named movieClip in the current sequence.  
    // "loader" would be a clip with the named clips "bar" and "holder" within it.  
    // "border would reference the outline of the loader bar and "bar" the masked bar of how much is loaded
    
    this.loader.bar._x = Math.round(this.loader.holder._width * pctLoaded);
    
    FRAME 3:
    gotoAndPlay(2);
    
    FRAME 4;
    There's your start! Now get to it :)


Share This Page