Filter Criteria

Select Your Category Select a component

Sound Effect



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalAlign="top"
    horizontalAlign="center" backgroundGradientColors="[#530F0F, #B53B3B]" paddingTop="0"
    backgroundGradientAlphas="[1.0, 1.0]">
   
    <mx:SoundEffect id="mySounds" source="@Embed('assets/whistle.mp3')"/>
       
    <mx:Panel title="SoundEffect" layout="absolute" color="0xffffff" borderAlpha="0.15" width="500"
         paddingTop="5" paddingRight="10" paddingBottom="5" paddingLeft="10" horizontalAlign="center" x="10" y="10">
        
         <mx:Text width="100%" color="0x323232" textAlign="center" paddingBottom="5"
            text="Click on the image to hear the sound effect." x="10" y="5"/>

        <mx:Image id="flex" source="@Embed('images/goggles.jpg')" mouseDownEffect="{mySounds}" x="180" y="34"/>

    </mx:Panel>
   
</mx:Application>

No comments:

Post a Comment