On 1/5/17, 11:04 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote:
>Alex, > >I have no idea how can I check whether "FontAwesomeIconType" (sourceID) >is a >class based on this code: > >["FontAwesomeIconType", "GLASS"] > >I know that in case of Flash I have getQualifiedClassName or >getDefinitionByName, but even that if I have above string without package >I >got from this methods null. > >In case of JS I see FLEXJS_CLASS_INFO, but again I have only my simple >string so I got nothing. > >I have found some workaround if code looks like that: > ><fa:FontAwesomeIcon >iconType="{org.apache.flex.fa.FontAwesomeIconType.GLASS}" size="fa-lg" /> > >ItemRendererDataBinding - will create generic binding (makeGenericBinding) >and this is working. OK, I didn't realize that FontAwesomeIconType was in a package. The compiler should generate the package name in the array. I will look into that. If you want to make the code handle: ["org.apache.flex.fa.FontAwesomeIconType", "GLASS"] Then when I get the compiler to generate that, it should be able to use the more efficient ConstantBinding instead of GenericBinding. -Alex