A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: huge swf file...loading????

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    140
    Hi all
    I am doing cd-rom and have some videos in it.
    I have imported mpeg files and saved as swf, the
    size of swf is 60MB....(huge)...I am loding this file in targetclip and it takes forever to display...is there any work around?

    much appericiate for the feedback.

    thanks
    Reverse

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Have you squeezed it with Sorenson Squeeze ?

    What I would do is Squeeze it, then import the .flv directly into Flash.

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    140
    hi estudioworks
    thanks for the reply!
    You mean import the video,then expoot from libary as flv and again import the video and export as swf???


    I need to keep the videos external.


    is there not other way to display video faster...? load faster?


    thanks
    PilotX

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Try the demo version of Sorenson Squeeze.

    You can import the video to that program, compress it and then export it as a smaller .swf, then do your loadMovie

  5. #5
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    Hi.
    Because of the way Flash works, when you have a SWF on CD, the Flash player loads the entire file into memory before it starts to play. So, depending on your computer's speed, ram, CD player speed, etc. your performance may vary. Consequently, we suggest not creating files larger than 25MB for use on a CD Rom - 60 MB is way too large, and in fact many people feel that 25 MB is too large. You can get around this limit by chaining your video swf's and loading them sequentially.
    Also, if you're going to make Mac projectors, you need to allocate enough RAM to your projector. When preparing a CD-ROM, the projector file needs to be allocated it's own size plus the biggest Flix file plus a couple of extra MB to be on the safe side. When the HFS volume is burnt onto CD it will inherit the memory settings you've specified.
    There are also some issues with the current version of the Flash player that affect video and audio files loaded from CD that can cause stuttering problems. We're waiting for a fix from MM that will hopefully come out soon.
    jb
    http://www.wildform.com/flix

  6. #6
    Senior Member
    Join Date
    May 2001
    Posts
    140
    Hi everbody
    Many thanks for the reply`s!

    Jonathan_B:
    Could you please suggest me link or tutorial on loading them sequentially....please!



    Thanks all
    PilotX

  7. #7
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    Hi.
    We have several related tutorials at:
    http://www.wildform.com/tutorials
    There are several that describe chaining SWfX effects (SWfX is one of our software programs), but you can use the same technique with video SWFs.
    You may be particularly interested in:
    http://www.wildform.com/tutorials/f5...hain/index.php
    http://www.wildform.com/tutorials/ba...ine2/index.php
    http://www.wildform.com/tutorials/preload_sixbutton.php
    And our software, Flix, will let you "load a new SWF at end" automatically.
    jb
    http://www.wildform.com

  8. #8
    Senior Member
    Join Date
    May 2001
    Posts
    140
    Hi jonathan
    I read the tutorial on "encoding lossless video into flash"
    it says:
    ----------------------------------------------------------
    The final Flash will be larger than the original video. In our case, the Sex Drugs & Democracy trailer was originally 4.67 MB. Now, it is just over 23 MB. This will be the case with any video you encode in this way. This has to do with the SWF format itself and not the Flix encoder. That is why encoding lossless video should only be for off-line content (desktop publication and CD-ROM) and not for the internet.
    ------------------------------------------------------------
    23 MB is way too big for 486 computer to load!

    wher do I find a link to tutorial on breaking the swf in chunks?


    many thanks
    PilotX

  9. #9
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    Hi.
    Above, I posted several links on tutorials that explain how to chain SWFs. Check them out.
    To break up a large SWF you will need to do that in Flash. Or you can break up the video into chunks and encode them into separate SWF files that you then load sequentially.
    jb
    http://www.wildform.com

  10. #10
    Senior Member
    Join Date
    May 2002
    Posts
    266
    You may want to have a look at the following samples :
    http://www.lpflashex.com/dl/MovieSamplesV2.zip (161KB)

    There are 5 samples in the file
    You can start test with publishing MovieMouseClick.fla or MMPMouseClick.fla to EXE which shown some more advanced functions. When looking at sources code, you can start with the 2 simple one first.

    ChooseMovie.fla show how to write code that support both media playing engin LPFlashEx provided and let user (or your action script code) to choose at run time.

    The two engin :
    Movie (using Window Media Player OCX) is well testing and used by our many customer. Some also send their production using LPFlashEx for Lab test in over 20 computers with different OS (95/98/Me/2K/XP) and different hardware and scored 100% pass without any error / warning. Media Player 6.4 + is needed to play movie this way. You can use the OCX detection event to prompt user to install Media Player using your included installer or use LPFlashEx download action to download installer from Microsoft. You can see this in MovieMouseClick.fla.

    MMP is a newer engin which make direct call to system to let it play media with whatever codec it got so it dont depend on a specific program. For example, if the user had any program that registered it codec to playback mpg file with system, MMP should be able to play it. It also support Audio CD playback and we may act more support to it later such as sound recording.

    If you need more info or have any questions. You are welcomed to visit our web site and email me.

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