You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by Jim Page <ji...@redmatter.com> on 2020/12/10 18:19:41 UTC
Royale doesn't support accessing properties as this[propName]
Hi There
Just wanted to make sure I understood this correctly: the javascript code
mxmlc outputs seems to access this[propName] directly instead of
this.className_propName, is that right?
Thanks
Jim
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Royale doesn't support accessing properties as this[propName]
Posted by Jim Page <ji...@redmatter.com>.
Carlos you are a superstar many thanks!
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Royale doesn't support accessing properties as this[propName]
Posted by Carlos Rovira <ca...@apache.org>.
Hi Jim,
compiler options are here [1] and about embed images workaround is here [2]
[1] https://apache.github.io/royale-docs/compiler/compiler-options
[2]
https://apache.github.io/royale-docs/migrate-an-existing-app/flex-equivalents
El jue, 10 dic 2020 a las 21:15, Jim Page (<ji...@redmatter.com>)
escribió:
> Fantastic, thank you! Is there a document where these options are listed?
>
> Perhaps there is also a solution to the problem I currently tusseling with:
> what is the royale equivalent of
>
> [Embed(source='/path/to/swf.swf', symbol='somethingInside')]
>
> vanilla Embeds with images and so on I can handle straightforwardly but I
> cannot see how to extract an item (eg an image) from inside an SWF. We use
> this quite a lot and it would be a pity to have to re-export all the images
> as separate asset files.
>
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Royale doesn't support accessing properties as this[propName]
Posted by Jim Page <ji...@redmatter.com>.
Fantastic, thank you! Is there a document where these options are listed?
Perhaps there is also a solution to the problem I currently tusseling with:
what is the royale equivalent of
[Embed(source='/path/to/swf.swf', symbol='somethingInside')]
vanilla Embeds with images and so on I can handle straightforwardly but I
cannot see how to extract an item (eg an image) from inside an SWF. We use
this quite a lot and it would be a pity to have to re-export all the images
as separate asset files.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Royale doesn't support accessing properties as this[propName]
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
maybe you need to add this compiler option?
-js-dynamic-access-unknown-members=true
HTH
Carlos
El jue, 10 dic 2020 a las 19:20, Jim Page (<ji...@redmatter.com>)
escribió:
> Hi There
>
> Just wanted to make sure I understood this correctly: the javascript code
> mxmlc outputs seems to access this[propName] directly instead of
> this.className_propName, is that right?
>
> Thanks
> Jim
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira