A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: no buffering...

  1. #1
    Member
    Join Date
    Oct 2000
    Location
    new to atlanta
    Posts
    91

    no buffering...

    Hey I'm using Flash 8, and I've set up a 3 frame file.

    The first frame I have a preload bar, and I'm using this (basic) code:
    Code:
    stop();
    
    this.onEnterFrame = function() {
    	var amount:Number = this.getBytesLoaded() / this.getBytesTotal() * 100;
    	loader.loadBar._xscale = amount;
    	if(amount == 100) {
    		this.gotoAndPlay(3);
    		delete this.onEnterFrame;
    	}
    }
    The flv is on the third frame, and it is set to export on frame 2, however the playback is horribly slow and jagged. I dont think my loader is fully loading the file. I exported the video at 450 kb/sec.

    Any thoughts would be great. Thanks.
    ----------------------------------------------

    http://www.wolfepackcreative.com

  2. #2
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    Any chance you could upload your file?
    This is your brain. This is your brain on script.

  3. #3
    Member
    Join Date
    Oct 2000
    Location
    new to atlanta
    Posts
    91
    Sure.
    Here is the Fla. The Flv is linked within it.

    Thanks again!

    My FLA
    ----------------------------------------------

    http://www.wolfepackcreative.com

  4. #4
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    I believe when it comes to external content, a basic preloader won't take care of it, but I'm no expert per say. Look up 'preload flv' in the flash help files. There is a great little tutorial that shows how to preload external flvs. It's very easy to follow and very effective. I ran through it myself with your video, just to make sure, and it had seemless playback of your video. I've also attached the .fla too, but just so you know where I got it from, it was that tutorial in the help files which I recommend looking at. I hope this helps out.
    Last edited by layerburn; 08-28-2007 at 06:14 PM.
    This is your brain. This is your brain on script.

  5. #5
    Member
    Join Date
    Oct 2000
    Location
    new to atlanta
    Posts
    91
    Thanks for the help, Layerburn!!!

    I did see the files in help menu, and my problem with those, is that the loader seems to count download progress (while the video plays), but I can not get it to wait until the file is 100% downloaded before it plays.

    Another question:
    What are the benefits of the NetConnection over of the component, besides file size? And will these techniques work with the component?
    ----------------------------------------------

    http://www.wolfepackcreative.com

  6. #6
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    The help file I was refering to is not a preloader for flvs using the component. I constructed the example from the help file called "Preload FLV" but it's using the NetConnection Method. Sorry for the confusion.

    I see the NetConnection to be the same as the component, they both utilize external video to save on file size. They both can do the same thing, you can play stop and pause a NetConnection same as a component. I think it's just two different ways of doing the same thing. I am not sure if this technique will work with the component, I have always used the NetConnection. I was just trying to show you a different way. I wish I could be of more help, but I don't know much more about this than what I've showed you.
    This is your brain. This is your brain on script.

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