A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: large swf problem

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    large swf problem

    My problem is this:
    I am making a series of language lessons in flash for my school to use. Because the lessons are around 25 minutes and contain sound and some animation, the resulting swf file is quite big- about 15mb. So when a class of 30 all access the file on the internet at the same time it takes ages to load. It does need to be on the net because I want to make it available to other schools. I suppose I could chop it up, but I don't have the knowledge to make them play in a sequence.
    Can anyone suggest a solution? I'd be very grateful and I'll send you the finished result if you're interested in learning Spanish.
    Martin.

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    Well load all your sounds,pics and so on externally. If you chop it up. then in the last key frame user loadMovie("nextSwf.swf");

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    Large Swf

    Thanks, loading the large sound file externally sounds like a great solution. Apologies for my ignorance, but how do I load them externally? I'm using MX 2004.
    Thanks again for the help.

  4. #4
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    use something like
    Code:
    mySound = new Sound();
    mySound.loadSound("test.mp3", true);
    mySound.start();

  5. #5
    Junior Member
    Join Date
    Sep 2006
    Posts
    29
    Thanks, that's great. I'll give it a go.

  6. #6
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    large swf

    I have fiddled around and used your suggestions and I was now wondering if there is a way to have next part of a lesson sequence loading up before the one being watched has finished. Because even if I break the lesson into smaller swfs they will still have twiddle their thumbs while the next part is loading. Is there anyway of having the next swf in a figurative way loading up behind the scenes so that it appears loaded when the the current swf finishes?
    Thanks

  7. #7
    Member
    Join Date
    May 2000
    Posts
    30
    Wellerm, You could split it up into bite-sized chunks which are loaded into levels by an action script somehting like loadMovieNum("part2.swf",_level2) just after the start of each chunk. Each chunk will also be set to stop(); at the start on a blank frame, which of course will be transparent while it loads. When the pupils reach the end of chunk you could then tellTarget(_level2) or whatever to play() from it's stopped state with loadMovieNum(part3.swf, _level3) on frame 2. I guess you'll need to think carefully about how long each chunk will take to complete -vs- download times, those pesky kids get bored easy.

    This is my take on things with a Flash 5 level of thinking, there's probably a far more sexy MXy way of doing it. However, I've found some of these sexy MXy components (e.g. progress bars, load checking components) can add 40 or 50k to your .swf which is rather counter productive.
    Anyone fancy a cuppa?

  8. #8
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    large swf

    Thanks for those ideas. I feel like I'm starting to get somewhere.

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