[ascoders] Re: Sound Class erweitern
- From: Michael Kneib <listen@xxxxxxxxx>
- To: ascoders@xxxxxxxxxxxxx
- Date: Wed, 29 Oct 2003 10:19:43 +0100
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
------------------------------------------------------
- References:
- [ascoders] Re: [OT] asp und JScript
- From: Ralf Siegel
- [ascoders] Re: [OT] asp und JScript
- From: Andreas Sedlmayer
- [ascoders] Sound Class erweitern
- From: André Michelle
Other related posts:
- » [ascoders] Sound Class erweitern
- » [ascoders] Re: Sound Class erweitern
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 ?
gruß michael
- [ascoders] Re: [OT] asp und JScript
- From: Ralf Siegel
- [ascoders] Re: [OT] asp und JScript
- From: Andreas Sedlmayer
- [ascoders] Sound Class erweitern
- From: André Michelle