[html5/js] How to change movieclip size
So my march towards conversion of all my Flash code continues in reasonably successful fashion except I've hit a new irritant.
I am trying to create "inverse" text, which essentially means dynamically drawing a box behind the text. Which I was able to do in Flash quite easily, but in HTML5 not so much.
For starters, the first major road block is that myDisplay.myBG.getBounds().width and myDisplay.myBG.getBounds().height DO NOT exist by default on a simply square fill MovieClip!!! Anyone know an easy way around this? It seems crazy to me that this is the case, but it is literally commented upon right in the EasleJS documentation:
| Shape | Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds. |
Additionally, to add insult to injury, the setBounds() command does NOTHING to change the width or height of the object. And setTransform() seems like an incredibly tedious way to be going about this.
Any tips or pointers on where to get better ways to deal with simple shapes and modifying them would be greatly appreciated.
Thanks in advance!
