Macromedia Flash Server - Music in flash document

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > May 2005 > Music in flash document





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Music in flash document
chris wyatt

2005-05-23, 8:45 pm

Hi, I have a FLA document that I use for a menu and it has a little jingle
in it. I would like the jingle to play the first time the webpage is
accessed on the client, but after that, don't play the jingle at all. Is
there anyway I can set this up (codewise) in the FLA doc? Or am I out of
luck?


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

chris wyatt

2005-05-23, 8:45 pm

Sorry, I am a newbie....

How do I get the sound in my library to run on page load usig the method
below?

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of daz lee
Sent: Monday, May 23, 2005 3:00 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Music in flash document


Local Shared objects,=20

var so =3D SharedObject.getLocal("mySoName");

if(so.data.ihavevisted !=3D true){
//Play sound
}
so.data.ihavevisted =3D true;
----- Original Message -----=20
From: chris wyatt<mailto:cwyatt-2hwlD9mtEcdl57MIdRCFDg@public.gmane.org>=20
To: 'FlashComm Mailing List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>=20
Sent: Monday, May 23, 2005 8:03 PM
Subject: [FlashComm] Music in flash document


Hi, I have a FLA document that I use for a menu and it has a little =
jingle
in it. I would like the jingle to play the first time the webpage is
accessed on the client, but after that, don't play the jingle at all. =
Is
there anyway I can set this up (codewise) in the FLA doc? Or am I out =
of
luck?


=3D-----------------------------------------------------------
Supported by Fig Leaf Software -
http://www.figleaf.com<http://www.figleaf.com/>
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
=20
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://chattyfig.=
fig
leaf.com/mailman/listinfo/flashcomm>

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-05-23, 8:45 pm

Chris,

If you have an MP3 music file, you can run it as an external file,
either by loading it or using SS methods. Take a look at the SS docs,
and they have some good examples of streaming MP3 files. In that way
you don't have to load a big thumping SWF with the sound embedded in it.

HTH,
Bill
On May 23, 2005, at 3:50 PM, chris wyatt wrote:

> Sorry, I am a newbie....
>
> How do I get the sound in my library to run on page load usig the
> method
> below?
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of daz lee
> Sent: Monday, May 23, 2005 3:00 PM
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Music in flash document
>
>
> Local Shared objects,
>
> var so = SharedObject.getLocal("mySoName");
>
> if(so.data.ihavevisted != true){
> //Play sound
> }
> so.data.ihavevisted = true;
> ----- Original Message -----
> From: chris wyatt<mailto:cwyatt-2hwlD9mtEcdl57MIdRCFDg@public.gmane.org>
> To: 'FlashComm Mailing List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
> Sent: Monday, May 23, 2005 8:03 PM
> Subject: [FlashComm] Music in flash document
>
>
> Hi, I have a FLA document that I use for a menu and it has a
> little jingle
> in it. I would like the jingle to play the first time the
> webpage is
> accessed on the client, but after that, don't play the jingle at
> all. Is
> there anyway I can set this up (codewise) in the FLA doc? Or am
> I out of
> luck?
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software -
> http://www.figleaf.com<http://www.figleaf.com/>
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
>
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://
> chattyfig.fig
> leaf.com/mailman/listinfo/flashcomm>
>
> =---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =---------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

chris wyatt

2005-05-23, 8:45 pm

Thanks, I will look into it!

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Bill Sanders
Sent: Monday, May 23, 2005 3:52 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Music in flash document


Chris,

If you have an MP3 music file, you can run it as an external file,
either by loading it or using SS methods. Take a look at the SS docs,
and they have some good examples of streaming MP3 files. In that way
you don't have to load a big thumping SWF with the sound embedded in it.

HTH,
Bill
On May 23, 2005, at 3:50 PM, chris wyatt wrote:

> Sorry, I am a newbie....
>
> How do I get the sound in my library to run on page load usig the
> method
> below?
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of daz lee
> Sent: Monday, May 23, 2005 3:00 PM
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Music in flash document
>
>
> Local Shared objects,
>
> var so = SharedObject.getLocal("mySoName");
>
> if(so.data.ihavevisted != true){
> //Play sound
> }
> so.data.ihavevisted = true;
> ----- Original Message -----
> From: chris wyatt<mailto:cwyatt-2hwlD9mtEcdl57MIdRCFDg@public.gmane.org>
> To: 'FlashComm Mailing List'<mailto:flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
> Sent: Monday, May 23, 2005 8:03 PM
> Subject: [FlashComm] Music in flash document
>
>
> Hi, I have a FLA document that I use for a menu and it has a
> little jingle
> in it. I would like the jingle to play the first time the
> webpage is
> accessed on the client, but after that, don't play the jingle at
> all. Is
> there anyway I can set this up (codewise) in the FLA doc? Or am
> I out of
> luck?
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software -
> http://www.figleaf.com<http://www.figleaf.com/>
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
>
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm<http://
> chattyfig.fig
> leaf.com/mailman/listinfo/flashcomm>
>
> =---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =---------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Thomas W.J.C.McCrystal

2005-05-23, 8:45 pm

>I would like the jingle to play the first time the webpage is
>accessed on the client, but after that, don't play the jingle at all. Is
>there anyway I can set this up (codewise) in the FLA doc?

Use a local shared object?

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Bill Sanders

2005-05-23, 8:45 pm

Chris,

Here's a simple script that works something like a progressive
download w/ MP3 files. (You don't need FlashComm for this.)

var chrisSound:Sound =new Sound();
chrisSound.loadSound("chris.mp3", true);

That's it.

If you want it to play only on the first load, something like the
following ought to do the trick (which is pretty much what Daz did.)

var init:Boolean;
if(! init) {
init=true;
var chrisSound:Sound =new Sound();
chrisSound.loadSound("chris.mp3", true);
}

Here's an example using SS streaming:
http://poobah.hartford.edu/flashcom.../RFF/radio.html

HTH,
Bill


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com