Skip to main content
Participant
May 8, 2007
Answered

Flash CS3, downloading a library piece by piece

  • May 8, 2007
  • 3 replies
  • 361 views
When I make a new clip in a library ,or a new sound, I have an option to export it in a first frame. If I turn off that option, how can I export it later using actionscript? The problem is that a huge sound file, for example, would normally download itself before preloader has a chance to show up. So this is not a question of how can I download another file, but how can I choose which part of a swf to download first?

I hope that I don't sound too confusing.
This topic has been closed for replies.
Correct answer
Well you could turn export in first frame off and just put the sound in an empty movieclip or on the timeline not playing in frame 100 or something and have the flash movie preload until frames 1 to 99 have loaded and then have a seperate preload effect for the rest of the frames when needed having your main content between frames 1 and 99.

Hope that helped, Ade

3 replies

Participant
May 8, 2007
Yes it helped a lot, I guess that's the only way. I was thinking about something similar, but I was hoping that there is a simple, working AS solution, but I guess that this is the only way.

Thank you
Participating Frequently
May 8, 2007
you could also just stick it on frame 2 and have preloading code to goto frame 3 after loading.
Another alternative is to load the whole thing into another movie and have preloader code on that instead.
Correct answer
May 8, 2007
Well you could turn export in first frame off and just put the sound in an empty movieclip or on the timeline not playing in frame 100 or something and have the flash movie preload until frames 1 to 99 have loaded and then have a seperate preload effect for the rest of the frames when needed having your main content between frames 1 and 99.

Hope that helped, Ade
May 8, 2007
> but how can I choose which part of a swf to download first?

You can't. As far as what frame your sound would be embedded in if you unchecked "export in first frame", I believe it would be the frame that sound first appears on. There may be a way to set what frame but I haven't found it.

Your best bet for large sound and video files is usually to download them externally.