[ascoders] Re: Sound.loadSound()

  • From: Michael Nisi <_@xxxxxxxxxxxxxxx>
  • To: ascoders@xxxxxxxxxxxxx
  • Date: Sun, 29 Jun 2003 12:36:25 +0200

ok, fürchte der substring war falsch. s. as

// as
stream = new Sound;
getStream = function(id)
{
        target = id.substr(1, id.length);
        file = "song" + target + ".mp3";
        stream.loadSound(file, true);
}

// g1 is present on stage
g1.onMouseUp = function()
{
        getStream(this._name);
};

gruss,
micha



MN www.michaelnisi.com
_@xxxxxxxxxxxxxxx


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

Other related posts: