- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 4-5 years
- Sold between 100 and 1 000 dollars
- United States
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
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.
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
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.
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 4-5 years
- Sold between 100 and 1 000 dollars
- United States
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?
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
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.
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.
- Attended a Community Meetup
- Community Moderator
- Has been a member for 5-6 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
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
Embedding Fonts in the Library Embedded Fonts at Runtime
that’s a great addition in Flash CS4 
- Bought between 1 and 9 items
- Exclusive Author
- Has been a member for 4-5 years
- Sold between 100 and 1 000 dollars
- United States
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
- Attended a Community Meetup
- Community Moderator
- Has been a member for 5-6 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
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.
