0

Hi i'm having problem to display image using easeljs. Can someone help? the code below is not displaying anything.

<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="lib/easeljs-0.5.0.min.js"></script>
    <script>
        var stage;
        var canvas;
        var img;
        function init()
        {
            canvas = document.getElementById("canvas");
            stage = new createjs.Stage(canvas);

            img = new Image();
            img.src="images/test.png";


            stage.addChild(img);
            stage.update(); 
        }



    </script>
</head>
<body onload="init">
    <canvas id="canvas" width="1600" height="800"></canvas>
</body>
</html>

Edited by peter_budo: Wrong forum, moving to Java

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Taywin
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.