来源:flash,as,js兴趣爱好者html5 vanvas做的小乌龟动画
此动画是由flash转的,具体代码请右键查看源代码,呵呵,详情请联系qq:290101499
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>无标题-1</title>
<script src="http://code.createjs.com/easeljs-0.7.0.min.js"></script>
<script src="http://code.createjs.com/tweenjs-0.5.0.min.js"></script>
<script src="http://code.createjs.com/movieclip-0.7.0.min.js"></script>
<script src="无标题-1.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
exportRoot = new lib.无标题1();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}
</script>
</head>
<body onload="init();" style="background-color:#D4D4D4">
<canvas id="canvas" width="550" height="400" style="background-color:#333333"></canvas>
</body>
</html>