Hi Olaf,
The "as" operator is working correctly, but it seems that there is a bug
where the compiler does not respect the implements="..." attribute in MXML.
That information is not being included in the MyInitialView.js output:

MyInitialView.prototype.FLEXJS_CLASS_INFO = { names: [{ name:
'MyInitialView', qName: 'MyInitialView' }] };

Do you want to create a JIRA issue for this?

Andy


On Mon, Mar 21, 2016 at 3:14 PM, OK <[email protected]> wrote:

> Andy Dufilie wrote
> > Which version of FlexJS are you using?
> > There were bugs with the cross-compiled "as" and "is" operators in 0.5.0
> > and older versions, but it should work correctly in the nightly build.
> >
> > In this particular case, you can remove the "as IViewMyInitialView" in
> the
> > "get view()" function [1] since it's not needed.
> >
> > [1]
> >
> https://gist.github.com/ok-at-github/8c4b94817fde72202231#file-main-mxml-L84
>
> I've just installed the nightly build (0.6.0, build 20160321) but it
> doesn't
> fix the issue :-(
> Is there a way to make sure that the "as/is" bug is really solved with this
> build?
>
> Thanks,
> OLaf
>
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Issues-with-casting-to-an-Interface-tp12299p12317.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Reply via email to