[ascoders] Re: Sound Class erweitern

André Michelle wrote:

hi,


ich versuche meiner Klasse die Sound Methoden zu übertragen:


GameSound = function () {};

o = GameSound.prototype = new Sound();
o.playSound = function () {
trace ( this.attachSound );
this.attachSound ( "loop0" );
this.start();
}

a = new GameSound ();
a.playSound();

Die Methoden sind vererbt, aber der Loop wird nicht gespielt, weiss jemand
mehr ?



GameSound = function ()
{
   super();
};
o = GameSound.prototype = new Sound();
o.playSound = function()
{
   trace(this.attachSound);
   this.attachSound("loop0");
   this.start();
};
a = new GameSound();
a.playSound();


aber erklären muss das jemand anders :o)



gruß michael

------------------------------------------------------
Archiv   : http://www.freelists.org/archives/ascoders/
Optionen : http://www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: