3538 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.

2114 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ 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 7 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?

3538 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
3538 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’.

by
by
by
by
by
by