I'm working on a canvas app, and I need to be able to create bitmaps, lines, groups,and manage click events.
I tried:
- kinetic-v3.9.6.js
- easeljs-0.4.2.min.js
These are very nice tools but they don't have a way to get the width of a group of bitmaps and lines. Picture this:
//init a image
var b = new Bitmap(...);
b.x ...
b.src ...
var l = Line(...);
l.x ...
l.y ...
//init group or layer or something like that
var g = Group(...);
g.add(b);
g.add(l);
var w = g.width;
This doesn't work.
Right now I'm considering hacking the easeljs-0.4.2.min.js to accomplish this because it is a good starting point to port as3/as2 simple code, but I'm not sure if this is a good idea.
I really like the way Flash implements display objects, so if you know of some tool please let me know.