6
rated 0 times
[
13]
[
7]
/ answers: 1 / hits: 19218
/ 11 Years ago, tue, december 31, 2013, 12:00:00
This is my htmlcode:
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script src=http://code.createjs.com/easeljs-0.7.0.min.js></script>
<script src=Doge.js></script>
</head>
<body bgcolor=#C7C7C7 onload=Start();>
<canvas id=DogeCanvas width=480 height=320></canvas>
</body>
</html>
And this is my Doge.js code:
function Start() {
var stage = new createjs.Stage(DogeCanvas);
var doge = new Image();
doge.src = images/doge.jpg
var bitmap = new createjs.Bitmap(doge);
stage.addChild(bitmap);
stage.update();
}
Why it doesn't show anything on the screen?
What is wrong?
More From » html