# Help needed Regarding playing .wav file in flash

**URL:** <https://forum.kirupa.com/t/help-needed-regarding-playing-wav-file-in-flash/254374>\
**Category:** Uncategorized\
**Created:** [March 11, 2008, 1:45pm UTC](https://forum.kirupa.com/t/help-needed-regarding-playing-wav-file-in-flash/254374 "2008-03-11T13:45:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baji\_Prasad](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Baji\_Prasad](https://forum.kirupa.com/u/Baji_Prasad)\
**Post date:** [March 11, 2008, 1:45pm UTC](https://forum.kirupa.com/t/help-needed-regarding-playing-wav-file-in-flash/254374/1 "2008-03-11T13:45:09Z")

</div>

hi to everyone,

first of all le me introduce, im a new member to this grp and very new to flash and actionscript.

here comes my requirement.

i have to play some audio files in flash which will be loaded from external location.

for that i wrote a actionscript

coolTune = new Sound (soundLoader);  
coolTune.loadSound(FileName,true);

here i will specify my filename value in object tag.

[SIZE=2][COLOR=#0000ff]\<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]object[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]classid[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“267”[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“145”\>[/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff]\<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]param[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]name[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“MOVIE”[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]value[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“actions.swf?FileName=Dholna.mp3”/\>[/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff]\<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]param[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]name[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“QUALITY”[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]value[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“HIGH”/\>[/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff]\<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]embed[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]src[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“actions.swf?FileName=Dholna.mp3”[/COLOR][/SIZE]  
[SIZE=2][COLOR=#ff0000]quality[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“high”[/COLOR][/SIZE]  
[SIZE=2][COLOR=#ff0000]type[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“application/x-shockwave-flash”[/COLOR][/SIZE]  
[SIZE=2][COLOR=#ff0000]width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“267”[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“145”\>[/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff]\</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]embed[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]\>[/COLOR][/SIZE]  
[SIZE=2][COLOR=#0000ff]\</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]object[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]\>[/COLOR][/SIZE]

[SIZE=2]so the above code will load the flash file and will play the song depending on my parameter values.[/SIZE]

[SIZE=2]but my real challenge is to play the .wav files.[/SIZE]  
[SIZE=2]eg:[/SIZE]  
[SIZE=2][COLOR=#a31515]embed[/COLOR][SIZE=2][COLOR=#ff0000]src[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]=“actions.swf?FileName=sample.wav”[/COLOR][/SIZE]

[COLOR=#0000ff]im specifying the .wav file and its not playing any sound.[/COLOR]

[COLOR=#0000ff]i want to know whether flash supports .wav or not?[/COLOR]  
[COLOR=#0000ff]whether my approach is correct or not?[/COLOR]  
[COLOR=#0000ff]please guide me in this regard.[/COLOR]

[COLOR=#0000ff]Best Regards[/COLOR]  
[COLOR=#0000ff]Baji Prasad.B[/COLOR]  
[/SIZE]
