Can anyone see where i am messing up please ?

I am trying to play a sound from my imported library
and it wont play

import flash.media.Sound;


button.addEventListener(MouseEvent.CLICK, playSound);
function playSound(e:Event)
{
    trace("1234567");
    var s:Sound = new Sound(new Sound("1.wav"));
                           s.play();
                           trace("987654321");
}

i think i have got it down to this (new Sound("1.wav"));

thanks.

now getting the error

"Scene 1, Layer 'actions', Frame 1, Line 9 1136: Incorrect number of arguments. Expected 0.
"
and none of the traces are echoed either :(

import flash.media.Sound;
import flash.net.URLRequest;


button.addEventListener(MouseEvent.CLICK, playSound);
function playSound(e:Event)
{
    trace("1234567");
    var s:Sound = new Sound (new Sound("1.wav"));
                           s.play();
                           trace("987654321");
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.