<script>
function dot_Sprite(){
//var a = 5;
//alert("dot_Sprite");
this.create = function(){
alert("dot_Sprite.create()");
}
}
function dot_Button(){
this.start = function(){
alert("dot_Button.start()");
}
}
function test(){
alert("test");
}
var sprite = new dot_Sprite();
sprite.create();
var button = new dot_Button();
button.start();
alert("dot_button.prototype.constructor------"+dot_Button.prototype.constructor);
dot_Button.prototype.constructor = test;
alert("dot_button.prototype.constructor------"+dot_Button.prototype.constructor);
dot_Button.prototype = new dot_Sprite;
alert("1--"+dot_Button.prototype.constructor);
dot_Button.prototype.constructor = test;
alert("2--"+dot_Button.prototype.constructor);
//dot_Button.prototype.constructor =
alert("dot_button.prototype------"+dot_Button.prototype);
var button111 = new dot_Button();
button111.create();
//dot_Button.prototype = new dot_Sprite;
</script>
function dot_Sprite(){
//var a = 5;
//alert("dot_Sprite");
this.create = function(){
alert("dot_Sprite.create()");
}
}
function dot_Button(){
this.start = function(){
alert("dot_Button.start()");
}
}
function test(){
alert("test");
}
var sprite = new dot_Sprite();
sprite.create();
var button = new dot_Button();
button.start();
alert("dot_button.prototype.constructor------"+dot_Button.prototype.constructor);
dot_Button.prototype.constructor = test;
alert("dot_button.prototype.constructor------"+dot_Button.prototype.constructor);
dot_Button.prototype = new dot_Sprite;
alert("1--"+dot_Button.prototype.constructor);
dot_Button.prototype.constructor = test;
alert("2--"+dot_Button.prototype.constructor);
//dot_Button.prototype.constructor =
alert("dot_button.prototype------"+dot_Button.prototype);
var button111 = new dot_Button();
button111.create();
//dot_Button.prototype = new dot_Sprite;
</script>