Hi, I have followed ch 13's example "adding a custom sound effect" in order to play the "kaching.mp3" sound effect during a change event. Although everything compiles fine, the sound does not play. I have copied the "kaching.mp3" file to my project directory, created the CashSoundEffect.as and create an instance of the soundEffect with:
<mx:Script> <![CDATA[ public function PlayCashSoundEffect() { var soundEffect = new CashSoundEffect(); var priceRegister = new mx.effects.Parallel; priceRegister.addChild( soundEffect ); priceRegister.PlayEffect(); } ]]> </mx:Script> and <mx:ComboBox id="CBApplication" dataProvider="{APPLICATION}" change="ShowApplicationPanel();BlankOut();ShowDevices ();DontShowSolutionPanel();PlayCashSoundEffect()"/> CashSoundEffect.as: class CashSoundEffect extends mx.effects.Effect { var soundEffect:Sound; public function CashSoundEffect() { soundEffect = new Sound(); soundEffect.loadSound("kaching.mp3"); } public function PlayEffect():Void { soundEffect.start(); } public function endEffect():Void { soundEffect.stop(); } } I did notice that they type "Sound" was not a selection with my intellisense editor. Is there something that must be done to add Sound to flex? I also noticed that this is not a mx.effects.SequenceEffect as the book uses (pp.313) Using "Sequence", "Parallel" or "Effect" as a substitution does not seem to work either. Any ideas? All suggestions are welcome. Thanks! ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/