Tag Archive for 'soundeffect'

10
Sep

Playing a sound effect when an Alert control is displayed in Flex

The following example shows how you can play an embedded MP3 when a Flex Alert control is displayed by setting the creationCompleteEffect style/effect.

Full code after the jump.

Continue reading ‘Playing a sound effect when an Alert control is displayed in Flex’

24
Aug

Setting the duration of a sound effect in Flex

The following example shows how you can set the duration of a sound effect in Flex by setting the duration and useDuration properties.

Full code after the jump.

Continue reading ‘Setting the duration of a sound effect in Flex’

05
Mar

Displaying a dynamically loaded MP3 file’s ID3 information in Flex using the SoundEffect class

In a previous example, “Displaying a dynamically loaded MP3 file’s ID3 information in Flex”, we saw how to load an MP3 into Flex using the Sound class.

The following example shows you how you can dynamically load and play an MP3 in Flex using the SoundEffect class, and access the Sound object and it’s ID3 information.

Full code after the jump.

Continue reading ‘Displaying a dynamically loaded MP3 file’s ID3 information in Flex using the SoundEffect class’

07
Aug

Embedding sound effects in your Flex applications

I was investigating a bug today with embedded sounds over a Remote Desktop Connection and came up with the following code that I thought I’d share.

I tested three different methods of embedding sound effects into a Flex application:
1) Using the <mx:SoundEffect /> tag, an inline @Embed, and mouseDownEffect
2) Using the [Embed] metadata, <mx:SoundEffect /> with a binding to my embedded asset, and mouseDownEffect
3) Using the [Embed] metadata, the SoundAsset class, and the SoundAsset.play() method.

Full code after the jump.

Continue reading ‘Embedding sound effects in your Flex applications’