Cyrillic Fonts In XML File...
Hello,I found this site and I really loved it . I'm using this tutorial http://gotoandlearn.com/play?id=34 and it's great.But i Have one problem when i try to insert cyrillic latters into the XML file. Once I run the swf file the cyrillic latters are not shown ... Help me pls i really need this . Thank you.
General Flash
Posted on: Sun Jan 18, 2009 10:04 am
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Problem With Cyrillic Fonts. Please Help...
Hello Everyone,
I have the following problem:
When exporting movie some of the cyrillic texts do not display at all. All I get is blank characters. These are dynamic texts, all loaded from external XML file.
I'm running WinXP and MM Flash MX 7.0.
If someone can provide support on this issue I will highly appreciate it.
Thank you.
Problem With Cyrillic Fonts. Please Help...
Hello flash guru,
I have the following problem with cyrillic fonts:
When exporting movie, dynamic texts (all loaded from external XML file) do not display at all. I have reviewed all posts at http://www.actionscript.org/forums/s...5&page=1&pp=15 , tried the provided examples but still get the same problem.
Here goes the action script:
===========================
function createMenu() {
// sizer is an empty movie clip to store the onEnterFrame that scales and spaces menupoints
this.createEmptyMovieClip("sizer", 100);
this.createEmptyMovieClip("sub", 200);
this.sub.o1 = 0;
this.sub.o2 = 0;
for (n = 0; n < this._parent.mainXMLobj.root.navi_top.menu.length; n++) {
this.createEmptyMovieClip("m" + n, n);
this["m" + n].createEmptyMovieClip("txt", 1);
this["m" + n].txt.createEmptyMovieClip("mirror", 2);
this["m" + n].nr = n;
this["m" + n].txt.createTextField("txt", 10, 0, -19, 0, 0);
this["m" + n].txt.mirror.createTextField("txt", 0, 0, 19, 0, 0);
if (n > this.startMenu) {
this["m" + n]._visible = 0;
}
this["m" + n].txt.txt.text = _parent.mainXMLobj.root.navi_top.menu[n].name;
this["m" + n].txt.mirror.txt.text = _parent.mainXMLobj.root.navi_top.menu[n].name;
this["m" + n].txt.txt.embedFonts = true;
this["m" + n].txt.mirror.txt.embedFonts = true;
this["m" + n].txt.txt.autoSize = "left";
this["m" + n].txt.mirror.txt.autoSize = "left";
this["m" + n].txt.txt.selectable = false;
this["m" + n].txt.mirror.txt.selectable = false;
this["m" + n].txt.txt.setTextFormat(this._parent.menuText);
this["m" + n].txt.mirror.txt.setTextFormat(this._parent.menuTex t);
this["m" + n].txt.mirror.txt.textColor = _root.grey;
this["m" + n].txt.mirror.txt._yscale = -100;
this["m" + n].txt.attachMovie("mask", "mask", 5);
this["m" + n].txt.mirror.attachMovie("blend", "blend", 10);
this["m" + n].txt.mask._width = this["m" + n].txt._width;
this["m" + n].txt.mask._height = 18;
this["m" + n].txt.mirror.setMask(this["m" + n].txt.mask);
this["m" + n].txt.mirror.blend._width = this["m" + n].txt._width;
this["m" + n].txt.mirror.blend._height = 18;
// increase menu hit area
this["m" + n].beginFill(0x0000FF, 0);
this["m" + n].moveTo(0, -19);
this["m" + n].lineTo(this["m" + n].txt._width + raster, -19);
this["m" + n].lineTo(this["m" + n].txt._width + raster, 0);
this["m" + n].lineTo(0, 0);
this["m" + n].lineTo(0, -19);
this["m" + n].endFill();
// set start position / alpha
this["m" + n]._x = this["m" + (n - 1)]._x + this["m" + (n - 1)].txt._width + raster;
this["m" + n].x = this["m" + n]._x;
// o1= where you are over or where you klicked last
// o2= last klick
// o3= last over
this["m" + n].onRollOver = function() {
this._parent.o3 = this.nr;
this._parent.o2 = this._parent.o1;
this._parent.o1 = this.nr;
this._parent.sizeMenu();
this._parent.subFade("fadeOut");
};
this["m" + n].onRollOut = function() {
this._parent.o1 = this._parent.o2;
this._parent.sizeMenu();
};
this["m" + n].onPress = function() {
this._parent.o1 = this.nr;
this._parent.o2 = this.nr;
if (this._parent.firstTime != 1) {
this._parent.slideIn(midX, midY);
this._parent._parent.gotoAndPlay("startOut");
this._parent.firstTime = 1;
} else {
this._parent.createSub();
this._parent._parent.changeArea();
}
_root.go1 = this._name;
_root.go2 = "s0";
this._parent.sizeMenu();
};
}
this.attachMovie("block", "subOn", 150);
this.subOn._width = 800;
this.subOn._height = 50;
this.subOn._alpha = 0;
this.subOn.onRollOver = function() {
if (this._parent.sub.subBlendOut) {
this._parent.subFade("fadeIn");
}
};
this.subOn.useHandCursor = false;
// this._x = (750 - (this["m" + (n - 1)]._x + this["m" + (n - 1)]._width + 25)) * -1;
this.lineEnd = this["m" + (n - 1)]._x + this["m" + (n - 1)]._width;
// this._alpha = 0;
this._visible = 1;
this.slideIn(startX, startY);
}
function sizeMenu() {
// spacing of menu points
this.sizing = 0;
this.sizer.onEnterFrame = function() {
if (sizing < this._parent._parent.mainXMLobj.root.navi_top.menu .length) {
for (n = 0; n < this._parent._parent.mainXMLobj.root.navi_top.menu .length; n++) {
if (this._parent.firstTime != 1) {
if (this._parent.o3 < n) {
if (n != this._parent.o3) {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
}
} else {
if (n != this._parent.o3) {
this._parent["m" + n]._x = this._parent["m" + (n + 1)]._x - this._parent["m" + n].txt._width - raster;
}
}
} else {
if (this._parent.m0._x > raster) {
this._parent.m0.easeOut(raster, 10, "_x");
if (n > 0) {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
}
this._parent.sub._x = this._parent["m" + this._parent.o2]._x;
} else {
this._parent["m" + n]._x = this._parent["m" + (n - 1)]._x + this._parent["m" + (n - 1)].txt._width + raster;
this._parent.sub._x = this._parent["m" + this._parent.o2]._x;
}
}
}
} else {
delete this.onEnterFrame;
}
};
// size of menu points
for (var n = 0; n < this._parent.mainXMLobj.root.navi_top.menu.length; n++) {
if (this.o1 == n or (this.o1 == undefined and this.o2 == undefined)) {
this["m" + n].txt.onEnterFrame = function() {
if (Math.round(this._xscale) != maxScale or Math.round(this._parent._parent.m0._x) != raster) {
this._parent.easeOut(this._parent.x, speed2, "_x");
this.easeOut(maxScale, speed, "_xscale");
this.easeOut(maxScale, speed, "_yscale");
this.easeOut(maxAlpha, speed, "_alpha");
} else {
this._alpha = maxAlpha;
sizing++;
delete this.onEnterFrame;
}
};
} else {
this["m" + n].txt.onEnterFrame = function() {
if (Math.round(this._xscale) != minScale or Math.round(this._alpha) < minAlpha - 5) {
this.easeOut(minScale, speed, "_xscale");
this.easeOut(minScale, speed, "_yscale");
this.easeOut(minAlpha, speed, "_alpha");
} else {
this._alpha = minAlpha;
sizing++;
delete this.onEnterFrame;
}
};
}
}
}
==============================
Quite long. I'm sorry but do not know which part is important and which not. The file was provided to me for language adaptation and it is 3 weeks since I'm trying to find a solution.
I'm running WinXP and MM Flash MX 7.0. The fonts I use are Arial cyr, Arail Narrow Cyr - all have embeded cyrillic characters.
I will highly appreciate if you provide some corrections in actionscript or guidelines how to solve the problem.
Thank you in advance.
Right Usage Of Cyrillic Fonts
I've many unicode russian (cyrillic) fonts installed on my mac.
When i type message like "T" type-tool - they show russian letters.
When i embed it in Library like Font class, 50% of my fonts doesn't show russian letters.
What's wrong?
Embedding Fonts For Use With Cyrillic Letters
When embedding fonts in the library (Library > new font), there is no way to specify which character sets should be included. It seems like the only sets that are included are the basic ones? Is there a way to make flash embed more of the font?
Problem is I have a huge website which creates textfields dynamically, and gets data from a cms. Now, there are some articles with cyrillic letters in them, and these are not present in the textfields.
If I create a field staticly in the flash, includes all character sets, and inputs the cyrillic text to it, the text is displayed correctly. Or, if I set embedFonts=false on the textfield. But neither is really a solution. The first isn't since I then would have to create and/or duplicate all textfields that I use throughout the site, a massive change atm. And the second makes use of devicefonts which is... ugly.
So, does anyone have a suggestion on how I could approach this?
Flash Feedback Forms & Cyrillic Fonts
I'm busy working on a Flash site that is split into two sections, English and Bulgarian.
I've managed to get a contact form to work fine in Englsh, using PHP but when I want the form to work for Bulgarian users, I get ??????? in the input fields instead of the Cyrillic characters. The Bulgarian displays fine in the labels and buttons though.
How do I get this to accept the Bulgarian text and then send it in Bulgarian?
How I Can Get Cyrillic From Txt File With LoadV...
How I can get Cyrillic from txt file with LoadVariables?
this is in my txt file
mytext= Here is cyrillic text
loadVariablesNum("data.txt", "/");
In flash, I dont see cyrillic text
Why??????
Sorry for my bad English!!!!
Cyrillic Font
hi
i want to copy and paste some russian words from
ms word to flash, but obviously i can't see them
even if i use arial.
i can't even see cyrillic fonts in flash which i installed in my pc.
why this?
what can i do?...maybe shot myself?
no...no....please help me!!!!
bye bye
thnks
Cyrillic Font In Flash?
I've got a flash-based menu (and some graphics) that a client would like translated into Russian. I had no problem with the HTML files, but FLASH isn't recognizing the font. Each time I try to cut and past the russian text into the text file that feeds my menu system, it comes out as an unrecognizable string (????????????? ????)
Any thoughts?
Thanks!
Cyrillic Text In A Button In MX
ok,
i have these dynamic text boxes that are supposed to display cyrillic text,
i am using the loadvariables (cyrillic.txt,0)on level0 to load text from an external txt file in UTF-8 format. If i try it using a dynamic text box on level0 it works fine, but if i put the dynamic text box into a button it doesn't, it will display english inside the button but not cyrillic..its really weird..
to summarise...
Dynamic text box level0.. cyrillic fine
Dynamic text box level0.. english fine
Dynamic text box level1 (in a button).. cyrillic..nope
Dynamic text box level1 (in a button).. english fine
any help with this matter would be greatly appreciated
mallrat
Mac Dynamic Cyrillic Text
Hello
I'm using Flash 8 on Mac. I have some dynamic TextFields that I need to embed cyrillic fonts in. The problem is that the text kerning is awful when the font is embedded. This happens with any cyrillic font.
Any help is highly appreciated.
Working With Cyrillic Russian
Hey guys
i have been designing a website for some commrades in Russia and have had a few headaches with text/fonts. i have looked over several documents for some help but they all seem to deal with Multi-lingual applications rather than just russian. i'm aware of unicode but not to sure if this will solve my problems or not or if it will automatically change my .html file when i embed the cyrillic fonts? i do want to see txt in Flash as i'd like to see how it effects my design.
In my head i imagined that i would just need to embed which ever fonts i was using and make sure that russian text (which has been translated for me by another russian friend) makes sense.
Now after a bit of research and advice from friends i'm more confused than ever. Sorry if i sound naive, please help if Possible!
Damian
Cyrillic And Russian In Flash MX?
I need help very very fast.
I am working on a project that is bilingual. It is in serbian and russian and I need to display both serbian latin fonts ЊÆÈŽ and russian cyrillic letters. As for serbian when I try to type with serbian (latin) keyboard selected it displays only "Š" but other letters are not displayed properly. As for russian almost non of the letters are working. I am using verdana throught the whole project.
Please help me and tell me how to get those letters to show up???
Thank you very much!
XML + FLASH + CYRILLIC : HEEELP
Hi! I completed tutorials from this site to build a photo gallery. But the text I have to put in as a comment is in russian. When I paste it in "captions" (in my xml file), the swf shows little squares instead of my text... Please help!!!
Mac Dynamic Cyrillic Text
Hello
I'm using Flash 8 on Mac. I have some dynamic TextFields that I need to embed cyrillic fonts in. The problem is that the text kerning is awful when the font is embedded. This happens with any cyrillic font.
Any help is highly appreciated.
I Can't Type Any Cyrillic Characters In Flash 5
I can't type any cyrillic characters in flash 5. Each time I press a key I get some other characters which have nothing to do with cyrillic. I don't havesuch problems while using problems like photoshop, Paint shop pro, Word...
While typing in cyrillic in word, photoshop and so on using fonts like times new roman, arial etc. I don't eperience any difficulties
How do I overcome this problem(by the way I have the same problem with Dreamweaver)
thank you in advance! :}
TextField, EmbedFont, Textformat, Cyrillic
Hi there,
i have a problem with AS created textfields and embedded cyrillic fonts. There is simply no output. Please take a look at my sample code. 'embedCYR' is an embedded Arial CYR.
thanks a lot!
Phil
Attach Code
t = this.createTextField("txt", this.getNextHighestDepth(), 100, 100, 300, 20);
t.autoSize = "left";
t.embedFonts = true;
t.antiAliasType = "advanced";
t.text = 'ущрщзцшукщшгцркуашгуцкоаущшк';
t.wordWrap = true;
var style:TextFormat = new TextFormat();
style.font = "embedCYR";
style.size = 30;
t.setTextFormat(style);
Cyrillic & Double Byte Languages In Flash 4/5?
hallo,
got a bit of a problem, and was wondering if anybody has any experience to help give some pointers.
I am going to be creating a series of education modules in non-Latin(e.g Cyrillic, Korean, Chinese etc.etc.) languages, and Im trying to find a solution to how to author them.
The main issue is that all the source code is provided in word files, which show up fine on my system, but as soon as I copy and paste the text into my text fields it all comes out in the dread "??????????????" format.
Now as much as I can discern from Macromedia's circular logic tutorials, the only way I will be able to see the actual text pasted as it should be is if my machine is running the same codepage as the text I am pasting (so if my machine was running in Korean, I would be able to see Korean, but not say Japanese).
Beyond that, the big kicker is that I am most likely going to have to export my files as version 4 or 5 (due to my client's corporate web standards), which immediately exlcudes the use of MX's Unicode support.
Sooooooooooooooooooo, my question is this, and is more aimed at bi-lingual users (hoepfully Russian, its that first one I have to tackle), but is more or less this. When you authored movies in older versions, what steps did you have to take? Did you author in the English version of Flash, paste your Russian source text, and it all worked out fine?
If your explanation gets too long, PM me and we can talk.
Any help or insight or even tutorials (non-Macromedia plz, their official ones makes my head spin and never really answer anything).
Thanks!
Unverse
Cannot Type Cyrillic Characters Into Input Textfield
The problem: Cyrillic characters cannot be typed into an input textfield.
Prepopulated dynamic textfields aren't a problem. I can even paste Cyrillic characters into an input textfield, but if I try and type, question marks appear instead of the intended characters.
Things tried: various kinds of character embedding, font embedding, useCodepage shenanigans, and other stuff too...
After a bit of searching I've found a few people reporting similar sounding problems, but none of them are getting the answers I need.
But I can't believe that there's no solution, otherwise half the world would be asking why they can't use input textfields, wouldn't they?
Am I missing something, or do I need to take a trip to see a certain software developer and kick them in the shins? (again)
Any help much appreciated.
Problem: Flash5 - Copy&paste Cyrillic Font
Problem:
- We have Flash 5
- have a Word document with Cyrillic font
- > the writing should be inserted with Copy-paste in Flash 5, but flash 5 the font does not recognize automatically.
Win200 recognizes everything automatically, between German and Russian (cyrillic)
question: How I get to add the data from the Word-document by copy paste in flash, ohen these the question marks come (mark he not recognizes)
If I in flash the writing I select, can write cyrillic.
Please, help!!
Cu HotSpot
Ps: german english
Fonts In Flash File
How can you make it so the person does not need the font used in the flash file? i'm guessing you have to convert the text to an image or something?
Embedding Fonts From .AS File (not .FLA)
I was trying to set the alpha of a TextField and discovered that you have to embed the font in order for this to work for some reason.
This works fine from within a .FLA file, but lately I am doing most of my development in Flex 3 Beta, and I want to create some TextFields through code only.
I am not using Flex forms, etc. I am using an ActionScript 3.0 project, the MX embed tags seem not to be an option.
How can I embed a font into a SWF just using the .AS file? Is that even possible?
I wonder if I could create a SWF separately in Flash which just contains my embedded fonts and load that into my main .AS file.
Maybe I have to load it using a Loader and then use it?
Hmmmm.....
Fonts Not Appearing In Swf File
When I compile my swf file from flash, the dynamic text fields disappear completely.
I know this sounds like a n00b problem, but I've done dynamic text a million times. I've never had this happen. I'm embedding the characters from the fonts in the preferences for the text field. I've manually written the characters I want to embed as well to try and override the character selector in flash. I've reinstalled flash. I've reduced the number of fonts loaded in my system. I've changed the font to other types to see if it's an issue with the font. I've tried to toggle display as html and selectability. None of this makes a difference. I've also ensured that my variables are loading properly (list variables in the debug pulldown on export) so there should actually be something to load.
As a test, I tried to break apart my text. As with all text, you need to break it twice to render the text as a bitmap. On the second break, the text disappears. This should not happen either.
This tells me that flash, though it's obviously getting the vector information for the fonts so it can display them properly, some level of the application isn't getting the information to render it when I either export the file or when I try to break apart my text.
Sounds like a permissioning issue.... so I fixed permissions on my mac. Still have the problem.
Here's a link to the file in the wild. If you want a link to the xml file, let me know. I'm getting the data from it, so it really shouldn't be the issue. There should be a large number in the price area of the first order option, and all options should have text in the burgundy rounded corner box at the bottom.
http://www.omaxtra.com/Can_Help/rheumatoid_landing.html
I'm developing on a PowerMac G5 2.0 completely patched to OS 10.4.8.
Perhaps I'm over-thinking this. Any thoughts?
Exporting Fonts With File
I read somewhere that if I used specialty fonts that I could embed them or export them somehow
with the file so that the file would display as it was created. The down side was that it balloons the
file so that normally it is not recommended. Trouble is I can't find the information that I read.
Can anyone advise
Kevin Raleigh
How Can I Find The Used Fonts In Fla-file
Hi friends,
I have a fla file. When I opened it with macromedia flash player 8 it opens with the default fonts which I have on my pc.
How can I find the font names from this fla file?
thanks
How To Embed Fonts On My Swf File?
Hi!
I am using a type of font that on my computer it shows up correctly but when I send my final site to a web server the font does not show up. I know I have to embed this font but I dont know which one to embeded so I embeded all but my swf file gets too big and it stops working during the compilation process.
How to know which font to embed?
Device Fonts In A Loaded Swf File
Hi
I tried using device font (_sans) and spcified in character panel to no characters for input text fields in a form. It's not showing up and I think it has somethig to do with the fact that the form is in a external swf file loaded into a mc in the main movie. Does anyone know how to fix this?
TIA
How Do I Keep File Size Low When Dealing With Fonts?
What are the secrets of keeping the memory as low as possible when you are using a certain font?
Any advice or tips would be greatly appreciated. I'm working on banner ads and need to minimize all memory.
Thanks.
Embeding Fonts And File Size
Hi guys,
I've posted about this subject before and was hoping someone might have some more in depth info about it.
When a font is embeded into a dynamic textBox is it embeded in the whole swf, or LITERALY only in THAT textbox?
so far I've had to embed it individually in each txtbox I use, and i don't understand if this is increasing the file size with each new one, or not.
also because i'm thinking of using attachMovie to load in textboxes with embeded fonts, i'm curious if each one will take a while to load in.
did all this make sense? hope so
any help would be greatly appreciated. thanx in advance.
[F8] Installing Fonts For Flash File - Mac
I'm trying to install a font so a flash file I have will look right. The font is in the folder with the flash file and when I open my hard drive I see that it's there. But when I open textedit it's not there and the file does not look right because the correct font is not installed. I thought I installed it, but every time I click on the font from the original folder, it gives me a sample and a button that says 'install'. There's also a note that says 'not installed'. How can I properly install this font so my flash file with be formatted correctly or is possible to substitute a font with one that I already have?
thanks.
CHANGE GLOBAL FONTS IN FLA FILE
I HAVE A FLA FILE WITH HELVETIC AND MRS EAVES FONT BUT I DONT HAVE THIS FONTS IN MY PC.
HOW TO CHANGE GLOBAL FONTS IN THIS FLA FILE BY ARIAL FONT?
Using Embedded Fonts On Loaded File
I am building a website with custom fonts, and I am embedding them on the library and accessing with TextFormat.font. However, my root file is supposed to be VERY small and it's only purpose is to load other .swf files (the website is entirely modular).
Then I have several files loaded by the root, which will use the same font, and I don't feel like embedding the same font on every file. Thus, I am tryin to figure a way to embed all the needed fonts on a file, say, fonts.swf, so that I can reference to the fonts, and preload them very easily.
However I could not as of now find a way to do that, and I am beginning to think that's not possible.
Does anyone have some experience with that, or could provide me with some information? Also, TextFormat.font can not reference a absolute or relative path? I have tried searching the web, but no luck yet...
Thanks, in advance!
External Txt File With CSS And Embeded Fonts
I have an external Txt file loaded into flash.
I would like to use CSS on the text content with a specific embeded font in flash.
I have had the CSS fuctioning but only if the CSS is controling the fonts (ie. the web standard fonts of arial, verdana, etc.).
When I embed the specific font i want in flash for the dynamic text field and apply a CSS to it the text field stays blank when published as 7.
any thoughts?
Using Embedded Fonts On Loaded File
I am building a website with custom fonts, and I am embedding them on the library and accessing with TextFormat.font. However, my root file is supposed to be VERY small and it's only purpose is to load other .swf files (the website is entirely modular).
Then I have several files loaded by the root, which will use the same font, and I don't feel like embedding the same font on every file. Thus, I am tryin to figure a way to embed all the needed fonts on a file, say, fonts.swf, so that I can reference to the fonts, and preload them very easily.
However I could not as of now find a way to do that, and I am beginning to think that's not possible.
Does anyone have some experience with that, or could provide me with some information? Also, TextFormat.font can not reference a absolute or relative path? I have tried searching the web, but no luck yet...
Thanks, in advance!
Embedded Fonts In An External AS2 Class File
So, here's something that has been unexpectedly hard, I have a Class that extends MovieClip. In my main FLA, I've got a library MovieClip that references this class in its Linkage, all that stuff is working great.
Here's the rub, in the External AS2.0 class, I create an empty movie clip, and then create a textField. I want this textField to use an embedded font so it is anti-aliased. I have tried textbox.embedFonts = true; I have tried embeding the desired font in a textfield that is placed off the stage but nothing works.
There must be some magic code to embed a font within a textField created in a Class. Does anyone out therer know what that is?
tia
-Geno
Embedding Fonts File Size Problem
Holy smoke! I needed to embed the font outlines for my Japanese font and saw the swf file size double to 2megs! Any idea how to export the font without this file increase?
Loading Embedded Fonts From External File
Hello,I tried to load an external movie called "font_embedder.swf" into original file to load some Japanese fonts. It's 5 Mb big so I dont want to compile for almost 30 seconds every time when testing my flash. Everything worked fine when fonts are "phisicaly" embedded in file but when loaded from external file fonts doesn't work in dynamic text fields. Please help. I don't know if it's crazy or not but help.
Thanks!
External Library Fonts And File Size
hi and thanks for reading!
I have an external style sheet in .as that defines textFormats for my group of swfs. It specifies a font by its linkage name. the font resides in a shared library with the appropriate linkage. There are two fonts and therefore it is a large library causing long download times. here is the question:
how can i use a shared external library and a stylesheet and not embed every outline with my font? I don't want the font in each swf - i'd rather have it in a localized place just in case they decide they want a different one.
ideas?
Loading Embedded Fonts From External File
Hello,I tried to load an external movie called "font_embedder.swf" into original file to load some Japanese fonts. It's 5 Mb big so I dont want to compile for almost 30 seconds every time when testing my flash. Everything worked fine when fonts are "phisicaly" embedded in file but when loaded from external file fonts doesn't work in dynamic text fields. Please help. I don't know if it's crazy or not but help.
Thanks!
Text Boxes--->fonts--->huge File Size
This is my problem...
I have several files that are simmilar in structure and flow.... one of the has a scrolling text box and this movie is much bigger than the rest (27K compared to 5K). I (think) I've determined it's because the scrolling text box loads the entire font as opposed to only the parts I use.
How would I get around this?
Would it help if I used the loadVariables command and loaded an outside .txt file? If so, I know the text in the .txt file has to start a specific way... does anyone know how?
text="...." ????
or...???
Load External Text File And Embed Fonts
Hi,
I'm trying to load an external .txt file into Flash.
Everything seemed to work, but when I tried using an HTML tag <b> or <i> the text disappeared.
I found out the problem appeared when I embedded the font. When I switched it off, the HMTL tags were rendered properly. However, I need to use a specific font for my project. Is there a way to do this?
Thanks very much!
Joe
[F9] Saved SWF File Uses Wrong Fonts And No Transition Effects
Hi there everyone, I'm pretty new to flash, but starting to get the hang of things. Kinda....
I have create a really simple movie that has text that slides across the screen. At certain frames, I have adjusted the opacity (alpha) on the text to make it have a kind of fade-in effect.
When I play the movie within Flash, it looks and operates perfectly. When I try to Publish the file, and preview the file, the text is a bit screwed up. It uses a different font, and my opacity changes do not show up at all.
I have confirmed that the FLA file is indeed in the same folder as the SWF file, and it still doesn't work correctly.
Thanks so much for your time and assistance!
Individual Fonts Not Recognized Properly When Opening A MAC FLA File On PC
I'm getting a missing font warning when opening an FLA file even though I have all the necessary fonts. The problem is that while I have MyriadPro-Bold, MyriadPro-BoldIt, MyriadPro-Semibold on my machine, they only show up in Flash as the Typeface names of Myriad Pro (first two), and Myriad Pro Light (last one).
I don't want to have to go through an entire file and apply bold and italics to anywhere they exist, so I'm hoping there is a way to map these properly. Adobe Type Manager shows all these fonts properly when I open it, so I don't understand why Adobe's version of Flash can only see the font family and not the individual fonts.
Hopefully someone out there has had the same problem and can help me figure this out.
[Flash8] AS2.0: Using Embedded Fonts Within External Class File
Hey folks! I've been a long-time lurker and user of these forums, and decided it was time to pose my stumper for you gurus.
This is exclusively an AS2 issue (I believe) - I have an external class (through a MovieClip's linkage) that in due course creates a textField, and attempts to use an embedded font.
I'm familiar with the conventional way of doing this when not using an external class: create a Font library item, export for actionscript, create your TextField, create a TextFormat object, set the font to the Font item's linkage name, set embedFonts to true.
However, when I'm trying to do this from the external .as file, it's not seeing the Font library item in the calling (main) flash file.
I thought I had a clever solution: create another swf that only contains the Font asset, exported for runtime; then use a movieClipLoader inside the external class to load the font.swf into the external AS file's context so it would be able to "find" the font.
As far as I can tell, that idea was a bust.
Any thoughts? I'm attaching my class file below.
It does the following:
1. loads the font.swf movie (I was hoping that this would make the embedded font available to my class!)
2. waits for it to complete loading
3. creates a new TextField object
4. creates a new TextFormat object, sets the font size to 24, assigns the font name of "Tahoma24" (the name of my exported font library item)
5. assigns the TextFormat object to my TextField
6. puts some sample text in.
As you can see, the whole shooting match doesn't do squat. If you comment out the "embedFonts" line, the text displays fine (though not in Tahoma of course).
Code:
class embeddedFontTest extends MovieClip {
public var str:String = "";
public var mc_fonts:MovieClip;
public var loadedClips:Object = {
mc_fonts:0
}
public function embeddedFontTest(){
this.createEmptyMovieClip("mc_fonts", this.getNextHighestDepth());
var fontLoader:MovieClipLoader = new MovieClipLoader()
var flListener:Object = new Object();
flListener.onLoadInit = function(mc:MovieClip) { mc._parent.registerLoadComplete(mc) };
fontLoader.addListener(flListener);
fontLoader.loadClip("fonts.swf", this.mc_fonts);
}
private function registerLoadComplete(mc:MovieClip){
loadedClips[mc._name] = 1;
var loadComplete:Boolean = true;
for (var i:String in loadedClips){
if (! loadedClips[i]) loadComplete = false;
}
if (loadComplete) startApplication();
}
private function startApplication(){
trace("starting");
var txtCode:TextField = this.createTextField("txt_test", this.getNextHighestDepth(), 0, 0, 100, 100);
var fmt:TextFormat = new TextFormat();
fmt.font = "Tahoma24";
fmt.size = 24;
fmt.color = 0x000000;
txtCode.setTextFormat(fmt);
txtCode.autoSize = "left";
txtCode.selectable = false;
txtCode.type = "static";
txtCode.border = true;
txtCode.embedFonts = true;
txtCode.text = "Hello World";
}
}
Thanks guys! Look forward to your comments.
Can You Display Formatted Dynamic Text, From A Txt File, Using Embedded Fonts
I am wondering if you can display dynamic text from a text file, rendered as html and formatted, in a text box, using embedded pixel fonts. If not, I'm having trouble with text displaying in bold, when I use <B> tags around text on other computers. Its fine on my comp. I read some macromedia tech notes, but I'm still a little confused. Help would be appreciated.
matt
Small Fonts That Anti-alias Gracefully (NOT Pixel Fonts Though..)
Yo. Anyone know any good fonts that work in small sizes (8 pointsish) that dont go yucky THAT ARENT PIXEL FONTS? know pixel fonts are good, but im looking for a smoother look. a good example is (suprise suprise) 2advanced.com..... the fonts used for links are luverly...... Anyone?
|