Embedded Font Killing The Compiler....
I've got a font that's giving me problems - when I embed and then compile, it crashes Flash (kills the compiler, not the player - this happens even if I run 'publish').
So the weirdness: I've used the same font for six months without issue. I've scrubbed my system and adobe font caches and re-installed a fresh version of the font file and I get the same error. I also re-installed Flash.
Any ideas?
FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-05-2008, 04:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Embedded Video Is KILLING ME Suggestions Would Be Appreciated :-P
Ok, heres the situation:
I have 5 lessons built in flash by a client. They are NOT interactive, mostly just straight forward animation with some embedded video and sound. Each lesson's swf is about 7-10mb.
What I need to do:
I need to figure out a way to split each lesson up into 1mb increments. This has proved to be more difficult that I thought it would be. I can't simply copy frames and paste them into another movie because that causes problems with the sound and the flv's.
Idealy I would find:
Some type of software that can take a compiled swf, and splice it into sections. However....I am thinking that nothing like that quite exists.
Any Ideas??
~Christopher
Dynamic Textfield - Embedded Font - Embedded Characters Problem
Hi everyone,
In AS in flash 8, i'm doing the following : a font "Garamond" in my library,creating a textfielda textformat that is used on my textfieldi define the characters that should be embedded...
This last point doesn't seem to work...
This is my code (you can also check my fla) :
--
var myFormat = new TextFormat();
myFormat.font = "Garamond";
myFormat.size = 20;
myFormat.color = "0xFFFFFF";
createEmptyMovieClip("myContainer",10);
myContainer.createTextField("myText", 11, 0,0,400,500);
myContainer.myText.border=true;
myContainer.myText.autoSize = true;
myContainer.myText.html = true;
_root.myContainer.myText.embeddedCharacters = "ęąłńśźćóĘĄŁŃŚĆŻÓ";
myContainer.myText.htmlText = "test characters : : ęąłńśźćóĘĄŁŃŚĆŻÓ" ;
myContainer.myText.selectable = false;
myContainer.myText.wordWrap = true;
myContainer.myText.embedFonts = true;
myContainer.myText.setTextFormat(myFormat) ;
--
I was also trying with the following :
myContainer.myText.useDeviceFonts = true;
But without problem (otherwise I wouldn't email here, huh?)
Can someone tell me what i'm doing wrong that my embeddedCharacters don't seem to work?
Thanks in advance!
Greetz,
Dzjoepke
How Do You Define Which Character Set Gets Embedded With A Font Embedded In The Library (i.e. Korean)?
I have project that uses a shared fonts. The fonts are all contained in a single swf ("fonts.swf"), are embedded in that swf's library and are set to export for actionscript and runtime sharing.
The text in the project is dynamic and is loaded in from external XML files. The text is formatted via styles contained in a CSS object.
This project needs to be localized into 20 or so different languages.
Everything works great with one exception: I can’t figure out how to set which character set gets exported for runtime sharing. i.e. I want to create a fonts.swf that contains Korean characters, change the XML based text to Korean and have the text display correctly.
I’ve tried changing the language of my OS (WinXP) and re-exporting but that doesn’t work correctly. I’ve also tried adding substitute font keys to the registry (at: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFontSubstitutes) as outlined here:
http://www.quasimondo.com/archives/000211.php
but the fonts I added did not show up in Flash's font menue.
I’ve also tried the method outlined here:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275
to no avail.
I know there must be a simple solution that will allow me to embed language specific character sets for the fonts embedded in the library but I have yet to discover what it is.
Any insight would be greatly appreciated.
http://www.quasimondo.com/archives/000211.php
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275
Local Font Vs Embedded Font Trouble..any Expert Help?
Hi there!
I'm loading some dynamic text to my Flash movie. We all know about the anti-aliasing problem on fonts: they look blurred and ugly.
I know the solution for this can be solved by using Pixel fonts instead, and by using some tricks (0,0 coordenates, no resizing MC comprising text, avoid even font sizes, a few parameters in Publish Settings, etc.).
However I quite don't understand the following behaviour:
If I load some dynamic text (and I don't use a pixel font, i.e. Century Book which I import to my library) when I include the range of characters in the Character dialog (on the font properties) the quality of my text decreases a lot and it becomes really ugly. If I DON'T include any character or range of characters in the Character Dialog, then the text is more readable and looks fine...Why?
I thought the anti-aliasing problem always happened to all non-pixel fonts, however it does not happen here (except when I include a range of characters to be embedded).
I see I must choose among these four things:
1- Publish settings to Low Quality so that anti-aliasing is not applied to my MC...Not a solution..text even looks worse, not to mention the rest of my MC which is full of moving curves..
2- Change the Font set (not good for my project).
3- Include the required character ranges, despite the ugly quality of text.
4- Don't include any character range...but if somebody does not have the Century Book Font on system, I won't have control about what he's actually seeing...which is not very professional..
What can I do? Any suggestion or solution? What would you do?
I also would like to know the reason of the above mentioned behaviour, does anybody know why is it like that?
Thank you very much for your time guys.
Manare
Font Problem - Embedded Font Won't Work..
I've embedded a font into my library and gone in and setup the linkage to export
to ActionScript and and Export in first frame, and I've followed several tutorials for link embedding.
Yet still my font won't show up.
Is it possible that some fonts can't be embedded?
The font i'm trying to embed is a free font called Transponder AOE.
Difference Embedded And Not Embedded Font
Hi all,
I was wondering if anyone had the same problem I did.. I'm using a font called DS-Digital (free font) in one of my movies and well if I don't embed the font and use the textFormatter to determine my dynamic text width then everything is find, however if I use the embed font feature and determine it's with the same way then it's about 5-10 pixels smaller, which causes the text to display incorrectly..
Is there a way to fix it easily. Right now I just add 25 pixels to the textFormatter width just to be sure the font is displayed properly, but I hope there will be a different solution for this problem..
Thanks for any help..
How To Use An Embedded Font
In my library I have a symbol that is a font and it is exported. The name of it is 'cn'.
In action script how do I set a TextFields font to use this embedded font?
How To Use An Embedded Font
In my library I have a symbol that is a font and it is exported. The name of it is 'cn'.
In action script how do I set a TextFields font to use this embedded font?
Embedded Font
can someone help me with this? it should work
sorry, this is the correct url click here for fla
Help Needed With An Embedded FFF Font...
Hey guys
Can someone help me out with a weird problem we're having?
We're trying to
a) Fetch a variable from a .txt file for display in the movie
- this .txt file is in the format 'start=1&usersOnline=2&loaded=1' and is storing the number of users that the PHP code says is online from recent clicks - This works just fine
b) We want then to display this imported data in the font FFFHarmony (one of the fonts from Fonts for Flash...The weird thing is that this font won't embed?! Is this something special with FFF fonts that we're missing?!)
At the moment, with FFFHarmony.ttf in my windows/fonts folder, the swf file displays just great... BUT, remove the ttf font from the windows/fonts folder, and boom, tiny 6pt(?) times new roman fonts used for this top left info instead....
Check out this for an example>>>
http://www.emplaw.addr.com/test2.html
If anyone has a great idea today, please contact as soon as possible... I'm sure this is just our own inexperience with dynamic variables here, there must be a way of doing it...
I can upload the .fla code also if someone wants to play with it, else we'll just go with Arial as it's a font that everyone should have so we'll avoid this problem
Hope to hear from you guru's soon!!!
Thank in advance
Darren
Embedded Font Problems
I have a dynamic text box which holds a font variable:
infoFormat = new TextFormat();
infoFormat.embedFonts = true;
infoFormat.font = _root.myVariable;
info.setTextFormat(infoFormat);
Now, in the character, if I click Allow Embedded Fonts for the one main font from flashkit I'm trying to include, all the other fonts then will not display. If I uncheck embedded fonts, that font will not be embedded and show up default on other systems. I've been through about three Macromedia technotes and can't solve this
Embedded Font Troubles
In general, I got embedded fonts to work!
I embed them in an empty movie and set the link to export. Then in the destination movie I link to that font in that movie.
I tested it on 6 fonts, 2 are Arial and Verdana and 4 unique.
The 4 unique fonts work great on a machine that doesn't have them installed!! Woohoo!
However...Arial and Verdana don't show up. And it seems the common thread is that because the computer viewing the movie has those fonts installed.
Has anyone heard of this before? Is this a common pitfall that has a simple fix?
In the source movie I have all 3 export options selected. And I know I must have the linkage right, otherwise the 4 unique fonts wouldn't be working, right?
Thanks for any advice!
Liam
Embedded Font Troubles
In general, I got embedded fonts to work!
I embed them in an empty movie and set the link to export. Then in the destination movie I link to that font in that movie.
I tested it on 6 fonts, 2 are Arial and Verdana and 4 unique.
The 4 unique fonts work great on a machine that doesn't have them installed!! Woohoo!
However...Arial and Verdana don't show up. And it seems the common thread is that because the computer viewing the movie has those fonts installed.
Has anyone heard of this before? Is this a common pitfall that has a simple fix?
In the source movie I have all 3 export options selected. And I know I must have the linkage right, otherwise the 4 unique fonts wouldn't be working, right?
Thanks for any advice!
Liam
Embedded Font Troubles
In general, I got embedded fonts to work!
I embed them in an empty movie and set the link to export. Then in the destination movie I link to that font in that movie.
I tested it on 6 fonts, 2 are Arial and Verdana and 4 unique.
The 4 unique fonts work great on a machine that doesn't have them installed!! Woohoo!
However...Arial and Verdana don't show up. And it seems the common thread is that because the computer viewing the movie has those fonts installed.
Has anyone heard of this before? Is this a common pitfall that has a simple fix?
In the source movie I have all 3 export options selected. And I know I must have the linkage right, otherwise the 4 unique fonts wouldn't be working, right?
Thanks for any advice!
Liam
Embedded Font Troubles
I am using a dynamic text box, with html formatting. I am embedding my font in the movie.
The problem I am getting, is when the bold html tag is applied to a portion of the text, that portion is not visible. The html is working because the break tags are working, just not the text formatting like BOLD Italics, etc.
The font I am using is Arial, which I believe has BOLD and Italic. I also tried Times New Roman, with this font, I got some of the characters showing up BOLD, but others not visible.
Has anyone run into an issue with Flash not properly embedding the fonts? Any thoughts?
Thanks.
_t
SetStyle And Embedded Font
Can anyone point me to a tutorial or give me some tips on how to use the setStyle() with a textarea component instance? The method seems kinda buggy. Sometimes it works in regard to font and backgound color, but I have not been able to get it to work with font.
Is there some new way to embed the font so actionscript can be pointed to it?
Chris
Embedded Font Problem?
Hi,
I recently transferred a flash file to my new computer. The file was using some embedded fonts so I also downloaded those.
When I view those fonts in the Flash workspace they look fine, but when I publish preview the file, the swf only shows some of the font characters while others show up fine. (This didn't happen on the old comp)
What's going on and how can I fix it?
Thanks.
Embedded Font Blurring:-(
Hello,
I have a very stupid problem, that I couldn't resolve so far, despite the time spending reading forums and searching for similar porblems.
I have a dynamic text field that loads text from an external TXT file. I use some pixel font that is not in the windows system fonts, so I need to embed it. And here comes the problem: when I test the movie WITHOUT embedding the font everything is crisp and clear, but when I embed it - ohhh, the text is blurred;-(((
Could someone helps me with this?
Aliasing A Non-embedded Font
I have a .swf that initially loads a .css file. Once the stylesheet is loaded it then loads an .xml file with data that is dropped into an htmlText box and styled with the stylesheet. All of this currently works, but I want the text to be bitmapped.
Here's the problem: to keep the file size down I don't want to embed the font. The stylesheet is coded to use font-family: Verdana, Geneva, Arial, Helvetica, sans-serif, so whatever the end user has on his machine for a sans-serif face is fine.
Do I have any options for aliasing the htmlText without embedding fonts? I've tried myText.txt.antiAliasType = "normal" but it seems you need to first embed the fonts for this to work.
I'm using Flash 8. Thanks.
DuplicateMovie( ) With Embedded Font
I have a titling SWF which creates drop shadows, embossing, glows, etc.
I can make extra titles on screen by using duplicateMovie( ) to make copies of the titling SWF.
Is it better to use a Shared Font (import TimesNewRoman.swf etc etc) so that all those copied title SWFs use the same copy of the font file, or should I just embed the font into the titling SWF and use duplicateMovie( ) ??
Will duplicateMovie( ) make copies of the font data as well ? If I made ten copies of a SWF which had an embedded font, would I end up with ten copies of the font? Or is Flash smart enought not to do that...
Thanks.
[F8] Dynamically Embedded Font
I'm loading xml data and displaying html text. I see that the font has to be embedded elsewhere in the swf for the dynamic textbox to display the font with anti-aliasing.
Is there a way embed the font based on a font given in the xml? Or does the font have to be embedded when the swf is created?
I tried loading a sub movie with a font embedded in it before creating the textbox, but it didn't work.
Thanks!
The Second Embedded Japanese Font-how?
Hi,
I have one dynamic text field with embedded Japanese font (194 characters) and a button that allows to change the font in that text field at runtime. This works fine when I have a linkage id for the second font in the library, but swf file size increases to 4.3MB.
What can I do with this second font to reduce file size?
Thanks
Embedded Font Problems.
I'm working on a piece currently with embedded Univers. I've checked for both Bold and Italics to be embedded as well.
All the content is external.
For some reason, none of the text will bold. If I select bold in the properties panel or place a bold tag around the text in the actionscript or in the xml file, the font disappears completely.
Any ideas?
Also, anti-aliasing is not available for embedded font, or? The options are greyed out in my properties panel.
Embedded Font Problem
I've experienced a wierd thing today: embedded fonts that were working fine with code in a manually authored Flash CS3 .fla file, no longer work. The circumstance that has changed is that I decided to create a document level .as file and move the code from the Flash CS3 actions level to it.
Once I did that, the manually created dynamic text fields no longer rendered. After adding the fonts in the .fla library, and linking them to action script, the fields rendered, but not in the proper font style (no bold or italics, despite those separate fonts being embedded). All fonts render as plain text.
I checked to see if the fonts were actually embedded using the following code:
ActionScript Code:
var fonts:Array = Font.enumerateFonts();
fonts.sortOn("fontName", Array.CASEINSENSITIVE);
for (var i:int = 0; i < fonts.length; i++) {
trace(fonts[i].fontName + ", " + fonts[i].fontStyle);
}
and indeed, the bold and italic versions are embedded as well as the regular font.
I placed the dynamic text code back on the Flash actions level, and it doesn't work there either (no change from when the code was in the .as file). What could be going on here? Does the fact that the dynamic text fields are manually created in the authoring tool have something to do with the fact that the .as file has trouble rendering them using embedded fonts?
I've had no problems like this when I code the textfields myself in an .as file-- embedded fonts work fine. This is the first AS3 file that I tried to save some time by manually creating the dynamic fields and using the canned components. I really don't want to have to go back and code all the different text fields, and I like the versatility of a document .as file. Is this combination just bad juju or something?
Force Embedded Font?
I am having a weird situation with embedded fonts. I have some dynamic textfields using a library font... with css. Everything works fine, but whats weird is, if I have the font installed/activated on my computer and view the swf (browser or test) it appears with extra line spaces after things like paragraph breaks etc. If I deactivate the font, or view it on a computer without the font activated, the extra spaces are gone and it lays out just like I want it to.
Is there a way to check if a font is installed via actionscript? Maybe a way to force the movie to use the embedded font even if the font is installed/active on the system? I don't mind having to create a small workaround for users that have the font installed, but I am not so sure there is a way to find that out.
Thanks for any help/thoughts.
Actionscript-embedded Font ?
Hi. I'm creating an application where I need to set the font of a textfield depending on an entry in an external text-document or an xml-file. Meaning that I want to set the font knowing only its name. Is this possible ?
Embedded Font Won't Transition
I am trying to animate a mc that contains a dynamic text object similar to the old animated text tutorial. The alpha and skew animation does not work, however if I chnage the text object to static it works fine. I have embedded the font. Is this a problem in MX?
TIA
Embedded Font Not Appearing...
If you run the following code provided you have a MC on stage with "ball" as instance name, the text appears as intended. However if you uncomment the line that embeds the font, it does not display at all. I have a Font symbol in my library with the same name as you see in the Text Format object "Verdana" and it's been checked for export for AS. Do I have to do something else? Is the order of the code affecting the result?
Attach Code
ball.addEventListener(MouseEvent.MOUSE_OVER, textFollows, false, 0, true);
ball.addEventListener(MouseEvent.MOUSE_OUT, textGoes, false, 0, true);
var myFormat:TextFormat = new TextFormat();
myFormat.font = "Verdana";
myFormat.color = 0xFFFFFF;
myFormat.size = 10;
myFormat.leftMargin = myFormat.rightMargin = 5;
var tx:TextField = new TextField();
tx.defaultTextFormat = myFormat;
tx.wordWrap = true;
tx.autoSize = TextFieldAutoSize.LEFT;
tx.width = 200;
tx.height = 300;
tx.alpha = 0;
//tx.embedFonts = true;
tx.antiAliasType = AntiAliasType.ADVANCED;
tx.thickness = 100;
tx.sharpness = 100;
tx.background = true;
tx.multiline = true;
tx.backgroundColor = 0xCCCCCC;
tx.htmlText= "<h1>this is html text</h1><br><br><p>A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph. A new paragraph.</p>";
function textFollows(evt:MouseEvent):void
{
addChild(tx);
stage.addEventListener(Event.ENTER_FRAME, textAppears, false, 0, true);
}
function textAppears(evt:Event):void
{
tx.x = mouseX + 50;
tx.y = mouseY - 50;
}
function textGoes(evt:MouseEvent):void
{
removeChild(tx);
stage.removeEventListener(Event.ENTER_FRAME, textAppears);
}
Embedded Font Getting Overridden?
I have created a dynamic text field that loads text from an external source. I have set it to show in a certain font and set it to embed. When I upload the file and preview just the swf in the browser it works fine. BUT when that same swf runs through its html div, the font gets changed to Times or something like that.
I have read countless discussions on the many ways to embed fonts in AS3. I am convinced that my problem is not about embedding, but rather what is happening with Dreamweaver, my AS3 swf and the external text. Help!
Embedded Font Question
Hi all flash gurus!
I´m working on a flash site right now and I´m using lot of small imported swf-movies including dynamic text fields with embedded fonts.
Now, embedded fonts means that the file sizes increase a lot.
Is there a way to sort of "cache" the embedded fonts, so I only have to embed it once in my main movie and the other imported swfs can be using the same font information?
Thanks
Jonas
Embedded Font Scales
Hi!
Have a strange problem: the embedded font in a dynamic textbox is scaled an unreadable.
What can i do to solve this? I need the embedding to fade the box.
Evia
CSS + Embedded Font Problem
Hi all,
I've a problem using embedded font in a dynamic texfield styled with CSS. Without embedded font everything goes ok, but when I include some characters, bold texts disappear, and links underlined via CSS are not underlined...
I've tried with different font (Times, Verdana, DIN), but the problem still remains..
Here is the code:
- AS
Code:
import TextField.StyleSheet;
var my_styleSheet:StyleSheet = new StyleSheet();
var str:String = "<p class="arancione">Lorem <span class="rosso">ipsum</span> dolor <b>sit</b> amet, <a href="#">consectetuer</a> adipiscing elit. <a href="#"><b>Fusce</b></a> semper fermentum odio. Proin quis orci. Phasellus posuere nisl nec lectus. Nam arcu lectus, dapibus at, euismod id, condimentum a, lectus. Donec venenatis. Maecenas facilisis convallis sem. Pellentesque euismod metus non massa. Cras eget turpis. Donec cursus scelerisque erat. Pellentesque adipiscing lorem vestibulum sem. Praesent interdum. Nulla mi odio, laoreet sit amet, aliquet et, ornare a, metus.Vivamus sit amet magna non sapien fringilla imperdiet. <b>Donec placerat, nisi tincidunt tempus cursus, dui tortor porta elit, nec placerat erat dolor quis tellus. Etiam mattis tristique felis. Pellentesque rhoncus nunc at nibh. Sed lectus. Proin condimentum pede sit amet odio. Nunc felis turpis, gravida eget, cursus a, tincidunt quis, tellus. Curabitur tincidunt lorem non dui.</b></p>";
my_styleSheet.load("main.css");
my_styleSheet.onLoad = function(success:Boolean)
{
if (success)
{
txtField.styleSheet = my_styleSheet;
txtField.htmlText = str;
}
};
- CSS (main.css)
Code:
a:link
{
color:#00FF00;
text-decoration: underline;
}
a:hover
{
color:#00FF00;
text-decoration: none;
}
.arancione
{
color:#F7931D;
}
.rosso
{
color: red;
}
And here you can check the result:
http://amok.zona13.com/test/cssTest/flashCSS/
Can anybody give me a help?
Thanks!
HtmlText With An Embedded Font?
This is driving me nuts - lol
I have an html text field that I want to use as an ongoing chat field (dynamic) and since flash has alignment issues with images inside text, I thought I'd embed a nice picturesque font and then just code them apart
e.g <p><font face='_sans' size='12'>Hello </font><font size='21'> there</font></p>
The embedded font is the default font for the textbox, so only the non graphical text needs to have a font face. So in that example "Hello" would be in text and "there" would be the graphical font.
Problem is, after much trouble even getting the font to embed and appear, that the sans text never appears.
Also, Iam constranied in that I have to publish as flash 6.
Nice challenge for you all - lol
Any help greatly appreciated.
Embedded Font Not Visible
I created a font symbol in the Library named Arial_embed and I'm applying that to a textfield like so:
Code:
private var statusFormat:TextFormat;
private function createStatusBox() {
status = new TextField();
status.wordWrap = true;
status.embedFonts = true;
status.antiAliasType = AntiAliasType.ADVANCED;
statusFormat = new TextFormat("Arial_embed",14,0x000000,false,false,false,null,null,"left");
status.defaultTextFormat = statusFormat;
status.autoSize = TextFieldAutoSize.LEFT;
status.y = stage.stageHeight - 80;
addChild(status);
}
But the text is invisible on the stage - what am I missing here?
(Note that the text will show up if I comment out the embedFonts and antiAliasType lines)
Embedded Font Question
Hi all flash gurus!
I´m working on a flash site right now and I´m using lot of small imported swf-movies including dynamic text fields with embedded fonts.
Now, embedded fonts means that the file sizes increase a lot.
Is there a way to sort of "cache" the embedded fonts, so I only have to embed it once in my main movie and the other imported swfs can be using the same font information?
Thanks
Jonas
Embedded Font Issues
hey i recently set up a form for my website, and although everything is working fine my friend noticed a problem with the @ button
the problem is, is that when he presses his @ key on his keyboard he gets " on my form...
and when he puts in " he gets an @ character...
is this because i made the flash movie on a mac? and the @ key is above the number 2 which is not where the @ is on my mates pc? like beacuse its a mac font or something? surely this cannot be the case...
its bugging me... help lol
see the form at http://www.tnscproductions.com under the contact page
Embedded Font Problem
Anyone got a solution to this?
I've just created a multi-lingual site - there's one master .swf which loads UTF-8 encoded XML content for 16 languages. Everythings works fine, accented characters show correctly for French, Spanish and the like. Until we get to Polish...
I have the correct central european character set installed for the font (meta-bold), and the XML data shows correctly in the text boxes until I embed the font then suddenly some (but not all) of the special characters don't show.
If I select the text showing in the text box when the movie is run and paste it into notepad the characters show up again. The data is there so it's an font outline problem but does anyone know why certain characters from the font aren't showing? And if so any clues on how to rectify this?
Embedded Font Blurring:-(
Hello,
I have a very stupid problem, that I couldn't resolve so far, despite the time spending reading forums and searching for similar porblems.
I have a dynamic text field that loads text from an external TXT file. I use some pixel font that is not in the windows system fonts, so I need to embed it. And here comes the problem: when I test the movie WITHOUT embedding the font everything is crisp and clear, but when I embed it - ohhh, the text is blurred;-(((
Could someone helps me with this?
Problem With Embedded Font
I made a flash swf with Hooge Font which appears correct to me on my computer which is using Flash 6,0,79. But on some other PC which doesnt have the Hooge Font, the text's font is not Hooge. And they are using Flash 6,0.79 too. I've checked that fonts will be embedded in the swf if i do not select any device font options. So what is the problem here? I need help with this, as its pretty annoying.
Can't Get Embedded Font To Work
Hi folks,
Here is really simple example. I want to write one sentence in txt field with embedded font but it doesn't work…
http://www.fulek.com/GAL/EmbedFontExample.zip
Cheers,
Embedded Font Not Showing
Hi,
I have a movie clip that contains a dynamic text object.
I have a linked class that sets the value of the dynamic text field in the movie clip.
If I embed the font and test the movie, the text is blank, however if I don't embed the font then the text appears.
Any suggestions on how to embed the font and get it to show properly?
Embedded Font Not Fully Working
I want to include a font in my movie called 'liquid crystal' which is a 'digital' looking font. I need to do this as many users wont have the font on their home PC.
So in the text are I selected character > embed fonts outline for all characters (flash MX).
When viewing the published movie however, it fills in all the 8's 0's 9's and 6's. Any number/letter with a 'hole in the character' it will just fill in.
WHy is this? - I does it with more then one font too...?
THanks
Embedded Font In Dynamic Txt Field
After reading allot of posts about embeded fonts in dynamic AND static text fields, I am fully aware of the problems regarding these issues. Still, I haven't read about the problem I'm currently having...
I made a text field with HTML content in it, and had to use a dynamic text field, otherwise, my scrollbar I had added would not work. I embedded the font into the swf file, otherwise it would show up totally different on other systems. So far so good... I thought... once I embedded the font in Flash MX (Character ----> All characters) it showed my HTML text just fine... except for the BOLD headers.. these headers disappeared!
I was surprised, but I was hoping one of you gurus out there would recognize the problem and maybe he or she could help me out?
Mojokin out
Embedded Font Availability In Other Levels?
Say i embed the upper/lowercase characters of a font into a dynamic text box on _level0. If i then load a movie into _level1, are the embeded _level0 font outlines available in this new _level1 movie?
Cheers
Embedded Font Not As Crsip As Device?
Okay, I stumbling through this first site creation. It's done (except for some style tweaks and an continuous image scroller).
I notice the the 'aopsterophe' character is coming up as a square block.... (look at the work client's second question in the FAQ section).
Clarity Healthworks
I figured, no worries, I'll just embed a font set. Thing is, when I do the font doesn't look nearly as crisp and clean as the _sans. I could really use some help.
The FAQ txt, is an external .txt file being loadined into a Dynamic text field. HTML render is off, as is antialiasing.
Thanks and have a great weekend all!
Brendang
Linked Font - Embedded Cache
Greetings,
Project:
I am setting up my fonts as linked/shared fonts from
an external SWF. The main movie recognizes the linked fonts
in the font drop down menu as you would expect.
Problem:
The problem is that I originally used embedded fonts in the project
and I have since turned off the embedding, but it is acting as if there
is some bad cache or something. (for no reason, I am using "_sans",
without using the device fonts toggle on Flash MX - PC)
Symptom:
In many cases, in order to trick my text layout to look right,
I have to select render as html from the dynamic text mode,
then switch it to static text where you see the render as html is grayed
out.
In either mode, selectable text toggle rarely works. Many times,
selectable text toggle makes all my text disappear. I figured that there
may be bad cache because in some font configurations,
my capital letters disappeared which was one of my previous
embedded settings. I believe I may have got some text boxes to work
after I changed to a different font and then back again.
Comment:
It's like I need an empty cache button from the old Netscape browser.
Geeeeeeeezzzz!
The one post at flashkit that did catch my eye mentioned that I could try
and deselect the linked font, select a non-linked one, and then
select the linked one again. I'm still testing this.
Any thoughts?
Font Licensing For Embedded Fonts
I am having an Interactive GUI designed and developed in FLASH for commercial purposes. It has been explained to me that if the fonts used are embedded in the FLASH file than a license isnt needed for each computer the FLASH file and applicable fonts is loaded on. Does it matter if the content in the Flash file is database driven and dynamically displayed.
Looking for any feedback. Thank you.
Dyn Txt Field, Chk.. Embedded Font, Chk.. Mask, No Go
I am delving ito the acstionscript method for creating content to allow for multiple templates to be used ... but that's not the issue
I created a project, a pretty background, all the buttons i'd need and then placed a MC on the stage in its own layer called "content_window". i then edited this in place and added some white boxes to act as my background.
Then i use the AS method to create a dynamic text field as follows:
Code:
// This is the text format for my field, it assigns the embedded, exported for actionscript, font "Verdana-10"
var text_fmt:TextFormat = new TextFormat();
text_fmt.font = "Verdana-10";
text_fmt.size = 10;
//create the text field that will contain the data form the MySQL Database
createTextField("page_content", 1, 161.9, 2.9, 419.4,233.8);
//define the properties of the content text field
page_content.setNewTextFormat(text_fmt);
page_content.multiline = true;
page_content.html = true;
page_content.selectable = false;
page_content._width = 273.1;
page_content.wordWrap = true;
page_content.mouseWheelEnabled = true;
page_content.text = "Please wait...";
// Now we assign a style sheet (local css file) to the dynamic text
// load stylesheet first, then get content
var flash_css = new TextField.StyleSheet();
flash_css.onLoad = function(success:Boolean) {
if (success) {
page_content.styleSheet = flash_css;
getNewsContent();
} else {
page_content.htmlText = "Could not load CSS stylesheet.";
}
};
flash_css.load("our_kidz.css");
// stylesheet loaded and applied, Now we can get the Dynamic content
var news_lv:LoadVars = new LoadVars();
news_lv.onLoad = function(src:String):Void {
if (src != undefined) {
page_content.scroll = 1;
page_content.htmlText = news_lv.currData;
} else {
page_content.htmlText = "<p class='errorMessage'>Unable to get News</p>";
}
};
news_lv.load("home_news.php");
page_content.htmlText = "<p class='loadingMessage'>Loading news, please wait...</p>";
// This section creates a scrollbar on the right side with 3 elements
// 1. content_scroller as the scroll bar (rainbow icon that gets dragged)
// 2. content_bg as the mask to define the area to scroll in (i.e. the white box the text is in)
// 3. page_content as the scrolled item (i.e. the dynamic text box created above)
page_content.autoSize = "left";
// Define the Scroll Area
top = content_bg._y;
bottom = content_bg._y+content_bg._height-content_scroller._height;
left = content_bg._x;
right = content_bg._x+content_bg._width;
// Bring all objects to the Scroll Area
page_content._y = top;
page_content._x = left;
content_scroller._y = top;
content_scroller._x = right-(content_scroller._width);
scroll_line._y = top;
scroll_line._x = right-(content_scroller._width/2);
// When the Scroller is Dragged
content_scroller.onMouseDown = function() {
if (content_scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag("content_scroller", false, right-(content_scroller._width), top, right-(content_scroller._width), bottom);
}
};
// when the Scroller is Released
content_scroller.onMouseUp = function() {
stopDrag();
};
// Update Position every 10 milliseconds
setInterval(Update, 10);
function Update() {
var ratio = (page_content.textHeight-content_bg._height)/(content_bg._height-content_scroller._height);
page_content._y = ((content_bg._y-content_scroller._y)*ratio)+content_bg._y;
}
// This allows users to click on the text field and use the mouse to scroll up or down
var content_scroll:Object = new Object();
content_scroll.onMouseWheel = function(delta) {
if (content_bg.hitTest(_root._xmouse, _root._ymouse)) {
var ratio2 = (page_content.textHeight-content_bg._height)/(content_bg._height-content_scroller._height);
if (((content_bg._y-(page_content._y+(8*delta)))*(1/ratio2)+content_bg._y) <= content_bg._y) {
page_content._y = content_bg._y;
content_scroller._y = content_bg._y;
} else {
if (((content_bg._y-(page_content._y+(8*delta)))*(1/ratio2)+content_bg._y) >= (content_bg._y+(content_bg._height-content_scroller._height))) {
page_content._y += content_bg._y-(page_content._height);
content_scroller._y = (content_bg._y+content_bg._height)-content_scroller._height;
} else {
page_content._y += 8*delta;
content_scroller._y = ((content_bg._y-page_content._y)*(1/ratio2)+content_bg._y)
}
}
}
}
Mouse.addListener(content_scroll);
I have counted my blessings and am completely happy to have the field working as intended, the data loading from the external PHP file, the style sheet formatting working fine, and the scrollbar and mouse scrolling working like achamp... only one catch...
When i go back to my project and create a mask layer that masks the menu and the dynamic text, the text no longer displays. I thought that embedding the font, and applying it to the dynamic text field would take care of the "vanishing text" in a dynamic text field problem.
can anyone think of what i've missed? Ive been scouring the AS for some time now and can't think of what i've forgotten to do (or what I may need to learn to do in the future to get it working).
thanks in advance.
Silver Tiger
Dynamic Text With Embedded Font
When I embed a font on dynamic text, then use actionscript to change the text, I don't see any results.
Here is a set of steps to recreate the problem I am referring to:
1. Open New Flash Movie.
2. Add dynamic text named mytext.
3. Embed All Uppercase, Lowercase, Numbers, Punction.
4. Add actionscript:
mytext.text = "hello";
5. Test the movie.
I see nothing. If I change they text to not embed the font at all and test the movie, it works fine.
|