Well for me the concept of defining one thing in code and loading something 
different, by replacing file endings is not quite intuitive. It would be great 
if for example you could add a "swf" src, which is ignored in JavaScript and 
the others would be ignored in ActionSrcipt. After all packaging of Flash is 
different from that of JavaScript.


Anyway ... I think it is possible to embed a SWF as resource in another SWF (I 
know that I've seen icon resources being loaded this way in some other 
applications/libraries). Would it be possible to do that here too? I think this 
would be the better way to do it. And it would prevent some legal problems that 
might arise from the fact of having a font downloadable (and usable).


Chris

________________________________
Von: Alex Harui <aha...@adobe.com>
Gesendet: Mittwoch, 6. Juli 2016 17:01:13
An: dev@flex.apache.org
Betreff: Re: AW: AW: [FlexJS] How is the Flat-UI Font SWF used in ASIS?



On 7/6/16, 7:57 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:

>Ok ... so I inserted some trace statements and could confirm that it's
>looking for a file with the same name, but "swf" suffix in the same
>directory the font files were located, so I have to name it
>"fonts/flat-ui-icons-regular.swf".
>
>
>But unfortunately nothing seems to happen. It does load the file
>correctly, but I still have the question-mark checkboxes and
>radio-buttons. From looking at the code it sort of looks as if after
>finishing loading the files, nothing really happens with the loaded file.
>I bet this is because in the original the FlatUIIcons.as class is used,
>which isn't when I compile with the fontkit tool. Is there a way to get
>the fonts in my application or is this simply something that hasn't been
>completely finished yet? And ... is this documented somewhere? I did a
>lot of searching, but I couldn't find any reference that would have led
>me to the CSSFontFaceBead.

It works for me.  I'm not sure what documentation you are looking for.
Did we forget to put in ASDoc on CSSFontFaceBead?

-Alex

Reply via email to