A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Preloading data from XML file? (please help)

  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    39

    resolved [RESOLVED] Preloading data from XML file? (please help)

    So.
    I have an xml video library, the problem is when I put it up online the videos take forever to load and that really isn't acceptable.

    Is there a way, to preload the flv data from the xml file in the initial pre loading swf? Or is there a way to easily load up these flv's behind the scenes to make play back quicker?

    I didn't know if I should post this in as3 or in the video category.

    Thank you so much, I really hope someone can point me in the right directions!!!

  2. #2
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    First load your xml file, then create an array of all the FLV files. Then put the end size of each FLV into a variable, and make a loader based on file size loaded vs file size of all, and then populate an array with the loaded FLVs.

    It's easier to explain with source, if you want to attach one, I'll try to explain myself a bit more.

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You can play them while they are loading. Make images as thumbnails for the videos. I guess you are using the videos themselves as thumbnails. Here is an example:

    http://www.mydailyfile.com/video/myvideos.php
    - The right of the People to create Flash movies shall not be infringed. -

  4. #4
    Member
    Join Date
    Sep 2008
    Posts
    39
    Thank you!

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