Ciao,
sperando che qualcuno possa aiutarmi, espongo il mio problema:

Ho fatto un semplice file musica.fla dove vogli ocreare un tasto play e un tasto stop.
Quindi clicco su ldestro sul primo frame e metto il seguente actionscript (la versione è la 3.0):


var snd:Sound = new Sound();
snd.load(new URLRequest("greenland.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = snd.play();

play.addEventListener(MouseEvent.CLICK, onPlaySound);
function onPlaySound(e:MouseEvent):void {
var snd:Sound = new Sound();
snd.load(new URLRequest("greenland.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = snd.play();
}


Il problema è che mi viene dato questo errore che non capisco: "1061: chiamata a un metodo non definito addEventListener mediante un riferimento con tipo statico Function" e l'errore è proprio nella riga di 2play.addEventListener...bla bla bla ".

Spero possiate darmi una mano in questo,
grazie!