On 4/30/16, 5:54 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:

>Thinking about it ....
>
>if the root of every visible element is
>flash.display.DisplayObjectContainer for flash, but
>org.apache.flex.core.IUIBase for JavaScript, how about creating a Class
>that extends from DisplayObjectContainer and implements IUIBase and use
>that class as base class for all visible elements, shouldn't this
>eliminate the need to decide?

Well, I didn't want to allow the SWF compiler to override parent with a
different type.  IOW, you'd have to add to that shim class (which is
effectively what UIBase is)

override public function get parent():IUIBase

Which is currently an error given that the parent class has defined it as
a DisplayObjectContainer.

There are more things like that, and so I think I want to have a way to
share a single code base and use conditional compile to get different
results.  Like not having a Window object on the SWF side, or XHR, etc.

-Alex

Reply via email to