// flipperScript.js // by Mark Brosche (function() { var _this; function Flipper() { _this = this; } Flipper.prototype = { preload: function(entityID) { }, enterEntity: function() { MyAvatar.orientation = {x: -1, y: 0, z: 0, w: 0} MyAvatar.setAvatarScale(0.4); }, leaveEntity: function() { MyAvatar.orientation = {x: 0, y: 0, z: 0, w: 1} MyAvatar.setAvatarScale(1); }, unload: function() { } } return new Flipper; });