152 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 100 and 1 000 dollars
  • United States
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
  • Bought between 50 and 99 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
  • United States
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.

2481 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 100 and 1 000 dollars
  • United States
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?

2481 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 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
  • Bought between 1 and 9 items
  • Brazil
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
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.

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says
2481 posts Premium Scripts, Plugins and Themes
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Referred between 200 and 499 users
+1 more
LucidStudios says
Embedding Fonts in the Library Embedded Fonts at Runtime

that’s a great addition in Flash CS4 :)

152 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 100 and 1 000 dollars
  • United States
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

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 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