Flash Player has an mp3 codec built in; you don't need an mp3 player.
 
----- Original Message -----
Sent: Tuesday, October 04, 2005 12:38 AM
Subject: RE: [flexcoders] Is an add-on required for Sound Effects?

 
 
 
: )  Guess it helps if you have an mp3 player installed.  : )
                           ( Ouch! )


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deacutis, Francine
Sent: Monday, October 03, 2005 11:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Is an add-on required for Sound Effects?

 
Yes, it is.  Thanks for the response.  Do you think the rest looks okay?  I thought I should be able to play the sound by using the <CashSoundEffect  id="cse"..../> tag and then using cse.PlayEffect; I have not yet gotten a sound to come out of this code.
 
The book says that Flex allows us to use the Flash API when creating custom effects.  But, if I look at the Flex Actionscript and MXML API, and look at all the classes included in all the classes, I cannot find the "Sound' class there.  Do you have any ideas about this?


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Monday, October 03, 2005 10:53 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is an add-on required for Sound Effects?

Is the kaching.mp3 in the root of your Flex application?  Basically, is it in the same folder the main application MXML file is in?
 
----- Original Message -----
Sent: Monday, October 03, 2005 10:22 PM
Subject: RE: [flexcoders] Is an add-on required for Sound Effects?

Its from the example, Ch 13...(I do have the kaching.mp3)
 
class CashSoundEffect extends mx.effects.Effect
 {
     var soundEffect:Sound;

     public function CashSoundEffect()
     {
         soundEffect = new Sound();
         soundEffect.loadSound("kaching.mp3", true);
     }

     public function PlayEffect():Void
     {
         soundEffect.start();
     }

     public function endEffect():Void
     {
         soundEffect.stop();
     }
 }
 
Then in the main program, I would like to play the effect on a change event;
At top:
<mx:Application...../>
<CashSoundEffect id="cse" duration="5" />
.
.
.
<mx:Script>
<![CDATA[
 function PlayCashSoundEffect()
 {
 var soundEffect = new CashSoundEffect();
 var priceRegister = new mx.effects.Parallel;
 priceRegister.addChild( soundEffect );
 priceRegister.PlayEffect();
 //soundEffect.PlayEffect();
 //cse.PlayEffect;
 }
]]>
</mx:Script>
.
.
 <mx:ComboBox id="CBApplication"  dataProvider="{APPLICATION}"  change="PlayCashSoundEffect();"/>
 
 
I am very new to Flex.  Not sure how the kaching.mp3 is supposed to be played.  I noticed that "Sound" was not one of the available class types shown in my code editor when I typed in the CashSoundEffect class file (var soundEffect:Sound).
 
Thanks for taking a look!

 
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Monday, October 03, 2005 9:50 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is an add-on required for Sound Effects?

Nope.  Flash Player can play sounds since... well... a long time ago.

Got some code not working?  Post it.

----- Original Message -----
From: "symbltechies" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Monday, October 03, 2005 9:25 PM
Subject: [flexcoders] Is an add-on required for Sound Effects?


Would anyone happen to know if there is an add-on that is required in
order to play sound effects with Flex 1.5?

Thanks.
Francine





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






________________________________________________________________________
This email has been scanned for computer viruses.

________________________________________________________________________
This email has been scanned for computer viruses.

________________________________________________________________________
This email has been scanned for computer viruses.

________________________________________________________________________
This email has been scanned for computer viruses.

________________________________________________________________________
This email has been scanned for computer viruses.

________________________________________________________________________
This email has been scanned for computer viruses.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to