Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] RE: attach a sound file from an external library
From: marcelo siqueira
Date: Wed, 24 Jan 2001 18:01:18 -0000

> Are you using wav files (or the native sound file for a mac, not sure of
> extension)? I know that I've tried attaching mp3s and midi files and have
> had the same problem. However, wav files work just fine

no, Rebecca. this matter is not about the file type.
i've got the following reply from Martin Fasani:

--------------------------------------------------------------------------

You can't do the two things at the same time.
The answer is simple:
A sound must be set to export in the library to make it work with the
attachsound method.
If you import the sound you can't set it to export later.

So the best thing you can do is to import movieclips (shared MC) and control
their timeline-volume with soundObjects(SO's for the next words).
Remember that SO's control timelines of sound.
So if instead of using:

this[cons_name] = new Sound(target);
this[cons_name].attachSound(lib_identifier);
this[cons_name].start(0, 1);

You use:

this[cons_name] = new Sound(mytimelinetocontrol);
this[cons_name].start(0, 1);

Without even using attachsound, you have the control of that timeline
sounds.
That means you can import shared libraries, with their correspondant
movieclips, and control their timeline volumes.

Perhaps you didin't want to do it that way. But it's the best solution I can
say now.

Get the sound-sources in my site if you wanna see more coding about sound.

+++ + + + + + + +++
http://fasanimar.com sound>>sources
/martinfasani+ + +++

----------------------------------------------------------------------------

[ ]'s
------------------------------------------
marcelo siqueira | criacao | agenciaclick
------------------------------------------
----- Original Message -----
From: "Elliott, Rebecca" <relliottatauanet [dot] org>
To: "flasher from chinwag" <flasheratlists [dot] chinwag [dot] com>
Sent: Wednesday, January 24, 2001 1:49 PM
Subject: [flasher] RE: attach a sound file from an external library


> Are you using wav files (or the native sound file for a mac, not sure of
> extension)? I know that I've tried attaching mp3s and midi files and have
> had the same problem. However, wav files work just fine
>
> Rebecca L. Elliott
> American Urological Association, Inc.
> Web Developer
>
>
> -----Original Message-----
> From: marcelo siqueira [marcelosatagenciaclick [dot] com [dot] br (mailto:marcelosatagenciaclick [dot] com [dot] br)]
> Sent: Wednesday, January 24, 2001 9:11 AM
> To: flasher from chinwag
> Subject: [flasher] attach a sound file from an external library
>
>
> anyone knows why i can't attach a sound from an external library?
> i can fetch it from the external library and play it on the timeline, but
> i'm only able to attach it to an object when it is local.
>
> [ ]'s
> ------------------------------------------
> marcelo siqueira | criacao | agenciaclick
> ------------------------------------------
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: relliottatauanet [dot] org
> To unsubscribe, email leave-flasher-479077Fatlists [dot] chinwag [dot] com
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: marcelosatagenciaclick [dot] com [dot] br
> To unsubscribe, email leave-flasher-479077Fatlists [dot] chinwag [dot] com




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]