# Sound: 2 code lines--1 error

**URL:** <https://forum.kirupa.com/t/sound-2-code-lines-1-error/269706>\
**Category:** flash\
**Created:** [August 31, 2008, 6:10am UTC](https://forum.kirupa.com/t/sound-2-code-lines-1-error/269706 "2008-08-31T06:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnb816](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@johnb816](https://forum.kirupa.com/u/johnb816)\
**Post date:** [August 31, 2008, 6:10am UTC](https://forum.kirupa.com/t/sound-2-code-lines-1-error/269706/1 "2008-08-31T06:10:10Z")

</div>

Hello community, I’m trying my best to learn how sound works in flash cs3. But I can’t get past the simplest thing… getting an imported mp3 to play. This is my code:

var s:Sound= new Sound(“test1.mp3”);  
s.play();

Flash isn’t playing the sound because of the following error: 1067: implicit coercion of a value of type String to an unrelated type [flash.net](http://flash.net):URLRequest

The library shows that “test1.mp3” is of type sound. But AS3 thinks that it is a string variable. Does someone know what I should do?
