import a sound externally or from the library? AS3

53 views Asked by At

I was wondering which is better. Import an external sound to load using codes, or import a sound from the library using codes?

1

There are 1 answers

4
Andre Lehnert On

Loading sound external

  • keeps the swf lightweight
  • swf can start faster (just before the sound is loaded)
  • if the sound-url is injected or provided by xml you could change the sound without doing changes in the swf/source
  • mp3s were loaded and played natively
  • other formats like wav need additional code-libaries

Importing sound in libary

  • swf will be bigger
  • swf needs longer to load
  • changing the sound requires changes on the the source an recompiling the swf
  • formats mp3 and wav are possible to include in a native way
  • it is possible to synchronize sound on a timeline directly in the FLASH IDE

Maybe forgot something ;-) Greetings.