152 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
new says

Hello,

So many of you know that with action script as3 you can use the function

[Embed(source=”C:\WINDOWS\Fonts\somefont.ttf”, fontFamily=”foo”)]

/taken from http://marumushi.com/news/embedding-fonts-in-as3

Can anyone tell me why it could be that when I try to use code similar to that on my system it doesn’t work. Please someone show me an example of how it does works.

BTW AS3

1234 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 50+ items on Envato Market
+5 more
MBMedia says

Last I knew that was just a Flex thing. I dunno, could be wrong, I just use the library. But I was under the impression the Embed for fonts only works for Flex.

2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says
Last I knew that was just a Flex thing. I dunno, could be wrong, I just use the library. But I was under the impression the Embed for fonts only works for Flex.

yeah, I think the same that that only works when compiled with Flex.

152 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
new says

Hahaha I’m so dumb! Well is there a way to embed fonts with as3? Or do i have to create a movie clip in the library to hold my text?

2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says
Hahaha I’m so dumb! Well is there a way to embed fonts with as3? Or do i have to create a movie clip in the library to hold my text?

you can embed fonts in the library panel so no need to create movieclip holder.

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says
Hello,

So many of you know that with action script as3 you can use the function

[Embed(source=”C:\WINDOWS\Fonts\somefont.ttf”, fontFamily=”foo”)]

/taken from http://marumushi.com/news/embedding-fonts-in-as3

Can anyone tell me why it could be that when I try to use code similar to that on my system it doesn’t work. Please someone show me an example of how it does works.

BTW AS3

This will work for you in CS4 as it can recognize this Flex syntax with no problem if you use CS4 .

But you will have a problem with the [Embed (source=] ,you need to embed your font in an actual external SWF if not, and you are using the direct .ttf you will have problem there when using it on CS4 , it need some loading variable commend.

8248 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Volunteer moderator says
2485 posts Premium Scripts, Plugins and Themes
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
LucidStudios says
Embedding Fonts in the Library Embedded Fonts at Runtime

that’s a great addition in Flash CS4 :)

152 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
new says

So i have CS4 , but I was using cs3 while doing this. So If i use CS4 using the same [embed(source=..” it will compile correctly? Thanks

8248 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Volunteer moderator says
So i have CS4 , but I was using cs3 while doing this. So If i use CS4 using the same [embed(source=..” it will compile correctly? Thanks

no, thats Flex only.

by
by
by
by
by
by