JPEG Support, SimpleButton support, and some improvement to MovieClip

Hi Joshua,

I took some code from the old NME SWF, but had to change the way in which JPG Bitmapdatas are created. I chose only one way to do this, avoiding conditional compilation.

I also modified the way in which MovieClip handles every frame loop because the actual implementation was deleting and recreating everyobject per frame, and nested MovieClips were always at frame one, not to mention the performance penalty of recreating every object each frame. My implementation is not perfect though, because if I add another object dynamically, it will be removed from the children list at the following frame. I'll fix that soon.

And finally I added SimpleButton, mostly by duplicating a lot from MovieClip. Wil see if a common class may be appropriate for handling the same code.

Hope to have done it in a way that you feel is ok to pull.

Cheers,

Emi