Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : Sound loads before preloading animation. Help!


alexgomes
5/28/2004 11:14:23 PM
Hi there!
I'm developing a website with sound objects controled by action script using
new Sound(); attachSound(). I have an animated preload inside a movieclip in
the first frame, but it don't load before the sounds. The screen remains empty
until the sounds are loaded. If I uncheck the option "Export on first frame" in
the linkage dialog box for the sound file in the library, the actionscript
don't calls the sound anymore.

The only thing I want is to have my sounds preloaded in my movie with an
animated preload in the begining. (keeping the method of calling sounds by
action script)
How are you people used to do this?

Thanx a lot every body!

Alex Gomes
urami_
5/29/2004 11:38:58 AM

[quoted text, click to view]


Linkage MUST come first because it has no physical place on timeline
so it have to be available for any possible action as soon as flash movie is
loaded. therefore it is loaded before anything else .....

The only way to preloader and make sure that the loader kick in immediately
is to load it in level and check the total bytes of the file .
By loading in level or target you get the actual size w/o regard of the
particular amount of data in first frame.


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

alexgomes
5/29/2004 4:14:38 PM
Thanks urami_,
but could you explain better?
Should be two swf's? The first loadind the second in level and in first frame?
How do I check the size of the second swf?
I'll be very happy if you give me some more help.

Thanks!

Alex Gomes
urami_
5/30/2004 1:07:04 AM
[quoted text, click to view]

Hi Alex

That is correct, two files. One blank just with preloader and second with the content.
Here is a link to site that show variety of preloaders , you might find it useful.

http://www.bokelberg.de/actionscript/
Preloaders
-Simple Preloader with one movie loaded to level
-Simple Preloader with one movie loaded to target
-Multiple Preloader with x movies loaded to levels
-Multiple Preloader with x movies loaded to targets
-Multiple Preloader with x movies (incl. percent and bps)
-Multiple Preloader with x movies (single and multiple percent and bps)


By the way , in some arrangements you can avoid all that.
Depends what you do with the sound , there could be change in arrangement to keep it
on timeline frame w/o linkage, still be able to control it and no need for
two SWF and separate preloaders.

Perhaps you could drop some light what is the sound use for ?


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button