A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loading external movies

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    35

    Loading external movies

    i am currently building an interactive cd with flash content and 2 five-minute videos that play at points in the flash content.

    what is the most effective way to play these long video files (note...each video file is a cg animation and it is rendered in targa frames and can be exported as any video or swf extension in after effects)

    my first guess is to save the video files as swfs and plop them on to the cd with the exported exe projector. but what is the code to load an external movie...and can i have control of the video (play pause rew ff??)

    note... i am a beginner, and the in-depth explanation of this process would be more valuable to me than a quick answer.

    thanks again all!

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    You have a couple of options. First tell what version of flash your using, mx, mx 04, F8?

    Then, keep in mind that there is no preloading or streaming of any kind from a CD. All files you load to the exe will have to load completely before they will play. If the movies are really big, like over 20mb or so, they can take an appreciable amount of time. Up to 20 seconds or so, depending on the computer, the CD drive, the amount of RAM and so on.

    When external files are called to load with loadMovie, first, the CD drive has to spin up, the particular file has to be found, then download to RAM. This is the time lapse. Depending on the overall size of the complete presentation, it might be faster to build everything inside the one exe and call content from the library.

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    35

    specifics

    im using

    flsh mx 2004 and the movie files are prob. pretty big

    if they load from the library do i need a preload component?

  4. #4
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    No, preloaders don't work at all from a CD. But, if you build everything inside the exe, it will load before it plays. That way, if the video is in the library, it's already loaded to RAM with the rest of the movie and will load with little or no delay.

    But, that requires that the computer have some fairly hefty RAM, like 512Mb or a Gig or more, not some old 32mb. LOL

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