On 7/21/16, 3:00 AM, "Harbs" <ha...@printui.com> wrote:


>3. I’d like an interface which mimics the Flash APIs as closely as
>possible. It might not make sense to have every element have a “graphics”
>object because it could inflate things unnecessarily, but I’m thinking
>that it might make sense to rename GraphicsContainer to CompoundGraphic
>which would have all the drawing commands as first class methods. That
>should make converting Flash objects to FlexJS objects pretty
>straight-forward myObj.graphics.drawRoundedRect() would become
>myObj.drawRoundedRect(). I’d like to keep the actual method signatures as
>similar as possible.

Without thinking about it too much, my opinion is that the basic
components job is to thinly wrap browser behavior so the JS output is as
lightweight as possible, so I would be tempted to trade away Flash API
compatibility to another SWC (which is happening in the MX/Spark port).

My 2 cents,
-Alex

Reply via email to