I have installed externs for createjs libraries:
haxelib install createjs
I added the createjs library to compile file:
-main com.ketab.createjs_js_js.Main
-cp src
-lib createjs
-js bin/m.js
And I can compile with no errors, but in chrome, I get this error:
Uncaught ReferenceError: createjs is not defined
for the line
createjs.Ticker.useRAF = true;
Here is my html file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>createjs_js_js</title>
<meta name="description" content="" />
</head>
<body>
<div id="haxe:trace"></div>
<script src="m.js"></script>
</body>
</html>
Any idea please?