dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: AS3 CS3- Preloading .flv, How can I get it to fully load the video before playing?

  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    72

    Post AS3 CS3- Preloading .flv, How can I get it to fully load the video before playing?

    Hello,

    First off I'm using CS3, with AS3. I'm a complete novice with Code so please spell it out to me as simply as you possibly can. (I've spent 3 days searching for solutions that I can't understand)

    I'm trying to preload a movie so that it doesn't stutter when it plays. So i thought preload the whole flv and then let it automatically play. I followed Adobe's tutorial http://www.adobe.com/devnet/flash/ar...amming_03.html on 'Controlling web video with ActionScript 3 FLVPlayback programming' and added a progress bar all using components. But I just can't get it to work, the progress bar disappears when it loads and the movie starts playing before its preloaded.

    Here's the online version;
    http://www.deansawyer.net/flashtest/temp.html

    and I've put the .Fla here:
    http://www.deansawyer.net/flashtest/temp.fla.zip

    Thanks for any help,

    A struggling, tired designer...

  2. #2
    Member
    Join Date
    Apr 2006
    Posts
    72
    Ok so i've given up with AS3, converted my document back to AS2 and with the help of this blog I've solved the problem, very useful for preloading flv's and various other things too.
    http://www.quip.net/blog/2007/flash/...pletion-of-flv

  3. #3
    Junior Member
    Join Date
    Jun 2003
    Posts
    27
    Hi Dean-

    I apolgize no one answered your thread. I share your issues and frustration.

    I have a lot of troubles with AS3 as well because I'm a frontend designer who's been using Flash since 1998. I'm pretty decent in As2, but in AS3 I'm a complete dufus.

    And I've immersed myself within the AS3 environment for the last 6 months- figuring lightning would strike sooner or later. Well, the only place I can figure lightning has struck was far out to sea... all the while I'm far inland.

  4. #4
    Senior Member
    Join Date
    Jul 2006
    Location
    San Jose, CA
    Posts
    334
    I know you've already solved it, but I thought I'd share anyway.

    In the NetStream class there is a bufferTime and bufferLength attribute. You can check to see if the two are equal and do ____ accordingly.
    I (Love | Hate) Flash.
    ----
    Save a version back so others may help you!

Tags for this Thread

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