topical media & game development

talk show tell print

explorer-effects-SoundEffectExample.mx

explorer-effects-SoundEffectExample.mx [swf] flex


  <?xml version="1.0"?>
  <!-- Simple example to demonstrate the SoundEffect effect. -->
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  
      <mx:SoundEffect id="mySounds" source="@Embed(source='explorer-effects-assets-jazz.mp3')"/>
  
      <mx:Panel title="Sound Effect Example" width="75%" height="75%" 
          paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
  
          <mx:Label width="100%" color="blue" 
              text="Click on the phone to hear the sound effect."/>
  
          <mx:Image id="flex" source="@Embed(source='explorer-effects-assets-Nokia_6630.png')" 
              mouseDownEffect="{mySounds}"/>
  
      </mx:Panel>
  </mx:Application>
  


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.