Ho risolto con:
codice:
var sou:Sound = new so1();
sou.play();
.
Ora ho un' altro prob:
codice:
function playNot(intPas:int):void {
var inter:String = "so" + intPas + "()";
var sou:Sound = new inter;
sou.play();
}
bottone_btn.addEventListener(MouseEvent.CLICK, playNot(4));
il debugger in fase di esportazione:
codice:
1180: Call to a possibly undefined method inter. var sou:Sound = new inter;
1067: Implicit coercion of a value of type void to an unrelated type Function. bottone_btn.addEventListener(MouseEvent.CLICK, playNot(4));
.