import com.adobe.serialization.json.JSON; trace("AS3 (Flash CS5): OO 01: Methods\n============================"); trace ( "\n---------"+ "\nObjekt o1"+ "\n---------" ); var o1 = { x: 1, y: 2, move: function(dx, dy) { this.x += dx; this.y += dy; } }; trace(JSON.encode(o1)); trace(o1); o1.move(7,4); trace(JSON.encode(o1)); trace(o1); delete o1.move; o1.move = function (dx, dy) { this.x -= dx; this.y -= dy; }; o1.move(7,4); trace(JSON.encode(o1)); trace(o1); trace("o1.move: " + o1.move); /* */