17/08/2004, 09:40
|
| | | Fecha de Ingreso: julio-2004 Ubicación: Coatzacoalcos, Veracruz, México.
Mensajes: 150
Antigüedad: 20 años, 3 meses Puntos: 0 | |
puede que tengas sonidos vinculados en la biblioteca de tu pelicula principal, si necesitas los sonidos vinculados entonces ubicalos en otra peli. Tomado de oreilly.com:
Any sound exported from a movie's library is downloaded in that movie's first frame, causing a load delay before the movie starts. In order to avoid the delay, we can place exported sounds in a separate .swf file that we load into a target clip when needed (exactly like we loaded movies in our music player example). For example, suppose we've stored our exported sounds in linkedSounds.swf. We use our multiple-movie preloader to load linkedSounds.swf into our host movie clip. When the file has completely loaded we can safely attach and play its exported sounds as follows:
// Create a new sound with a target of host.
host.bang = new Sound(host);
host.bang.attachSound("loudBang");
host.bang.start(); |