3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

Hello there :D8-)

I have little problem.. I need to load fonts into an app at runtime. The idea is that i need to have the fonts with their Identifiers just like i would have the fonts ready to embed in my mail fla file.
So the most obvious solution to do this was to create an external swf file with a Font object in the library, that was exported in the first frame of the movie with an unique identifier. After that, i only loaded that swf and tried to access the font. The problem is that i can’t access the font trough it’s Identifier.

So does anyone knows if it’s possible to access objects from other swf’s libraries via their Identifier? I really need to it this way .. :-/

Thanks, Ruben.

2121 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
fifty_tons says

I’m very curious about how to do that as well :D.

730 posts
  • Has been part of the Envato Community for over 8 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Located in China
+5 more
wangruyi says

what’s actionscript version of your project?

3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says
what’s actionscript version of your project?
2
3711 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

problem solved :D

i went around it and put my text component in the same file with the fonts. I embedded the fonts in that file and put them in 2 arrays. One containing the ids and one containing the names. So when i opened that swf file into my flash i was able to access the both arrays and all embedded fonts. :)

23 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
encoder says

so each time when you need a font set you have to load a specific flash file.

cool.

i will use this in the future.

simple and elegant. thx man. i think this would be a good way to seriously cut down compilation time since i love to check out my progress after every 20 lines or so. even with library embedded fonts it was a pain in the ‘beep’.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by