(function() { var _this; var injector; var GoToDance = function() { _this = this; }; GoToDance.prototype = { /* PLAY A SOUND: Plays the specified sound at the position of the user's Avatar using the volume and playback mode requested. */ playSound: function(sound, volume, position, localOnly, loop){ if (sound.downloaded) { if (injector) { injector.stop(); injector = null; } injector = Audio.playSound(sound, { position: position, volume: volume, localOnly: localOnly, loop: loop }); } }, /* ON MOUSE PRESS: Store the initial point to start line. */ mousePressOnEntity: function(event) { MyAvatar.position = {"x":-89.65805053710938,"y":907.113037109375,"z":17.0590877532959}; MyAvatar.orientation = {"x":0,"y":-0.5667397379875183,"z":0,"w":0.8238968849182129}; } }; return new GoToDance(); });