Dynamic and shared TLF font help in CS5
I am simply trying to use a special font in Flash CS5 in a dynamic text field. This was so easy to do before CS5. I am not able to embed fonts in CS5 and have them work?
I am working on a large project and the time to relearn Flash each release, makes it not cost effective use anymore.
Then don't use the TLF textfields and just use the Classic textfields. They work the same way they used to.
So details would help. What kind of font? What kind of embedding? and...
... what kind of trouble are you having embedding fonts? I haven't done a lot with it, but the bit I have seems to be much more straight forward and easy to do.
Similar Messages
-
Embedding and using external fonts in Flash CS5
I just upgraded to Flash CS5. Font embedding is entirely different than it was in CS4. I've been looking for examples online but none seem to show me a solution that matches what I need.
In the project I'm working on, code changes the font a text box uses based on region and language. To keep file size down I created separate swf files with the fonts embedded. That way I only download the font I need. The way I did this and the code I used in CS4 doesn't seem to work anymore. Can someone please point me to a tutorial on this.
ThanksOK, maybe you can help me figure out what I'm doing wrong. Below is the code I'm using.
LOADING THE FONT
Font SWFs:
I'm trying something new with CS5. To create a swf with the font I need I'm creating a library symbol of the font with all the characters in it. Titled it "Verdana". I've also turned on Export for ActionScript and given the font a unique class name (VerdanaFont). Then of course publish the swf, name it Verdana.swf, and put it in the correct location. Does doing it this way automatically register the font?
The Loader code:
private function LoadFont()
var fontPath:String = "assets/fonts/Verdana.swf";
var fontLoader:Loader = new Loader();
fontLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, createTextBox);
fontLoader.load(new URLRequest(fontPath));
The TextBox code:
private function createTextBox()
var tf:TextFormat = new TextFormat;
tf.font = "Verdana";
tf.align = "left";
var textBox:TextField = new TextField;
textBox.embedFonts = true;
textBox.selectable = false;
textBox.htmlText = "This is test text";
textBox.setTextFormat(tf);
stage.addChild(textBox); -
SQLite Database and TLF Text in Flash CS5
I encountered the following problem when working with the built-in sqlite database and using TLF TextFields in Flash CS5
When I tried to use TLF TextFields alone, I don't face any probelem,
but when I start using a database connectivity code, the TLF TextFields placed on the stage are not shown, but instead, the SWF file is showing the built-in preloader with five dots looping.
I tried changing the default Linkage in ActionScript 3 Settings to Merge Mode, but in this case nothing is shown, not the textfields, neither the preloader.
I think the problem is related to loading the TLF Text Engine, but I couldn't figure out what to do.
The following is my code placed in first frame:
==========================================
import flash.data.SQLConnection;
import flash.events.SQLErrorEvent;
import flash.events.SQLEvent;
import flash.filesystem.File;
var conn:SQLConnection = new SQLConnection();
conn.addEventListener(SQLEvent.OPEN, openHandler);
conn.addEventListener(SQLErrorEvent.ERROR, errorHandler);
// The database file is in the application directory
var folder:File = File.applicationDirectory;
var dbFile:File = folder.resolvePath("DBSample.db");
conn.openAsync(dbFile);
function openHandler(event:SQLEvent):void
trace("the database was created successfully");
function errorHandler(event:SQLErrorEvent):void
trace("Error message:", event.error.message);
trace("Details:", event.error.details);
stop();
==========================================
and I am using one TLF TextField on the stage for later use.
Publish Settings>> Player: AIR 2.6
and not to forget, when I test the file using Contol Panel >> Test in Air Debug Launcher (Desktop), the file is working correctly.
but when I open the generated SWF file, the problem appears.
I hope that I find some help
Thanks.http://www.flashandmath.com/flashcs5/rsltip/
-
I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
help help help please - I have latest version of indesign - thanks, DJlol... it seems to work, but I have another huge problem!
Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
Solution? Hopefully, an EASY solution. lol as we have thousands of records.
Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
Thx,
DJ -
Need help setting up a shared /Library/Fonts folder for font sharing
Hi,
I have a problem setting up a shared /Library/Fonts folder on my OSX 10.5.5 server that gets automounted on the OSX 10.5.x clients.
While I managed to get the folder to show up automatically under /Network/Library/Fonts on the clients, the fonts in these folders do not show up in Font Book on the client systems. Plus, it seems like there is some sort of language mismatch, since I am using a German OSX installation. While the shared /Library/Fonts folder does show up under the "Network" area (where the servers are listed), it does not connect correctly on the "/Netzwerk" folder that OS X creates automatically. In fact there are 2 folders named "/Netzwerk" on my startup drive root directory, one that reads "/Network" when looking at it in the terminal, and one named "/Netzwerk". The /Network one does have a working link to the /Library folder, and the /Netzwerk one does only contain something looking like an alias of /Library, but it does not allow any access to this alias.
If anybody did manage to get this Netowrk "/Library/Fonts" to work I would be happy for some feedback. I am simply not sure if this is related to a localization bug, or if I am doing something wrong here. The fact that the folder and the fonts does show up correctly under the network portion of the sidebar seems to indicate that my setup is correct, but still the fonts do not work.
Any ideas, or maybe a step-by-step description on how to set this up would be great.
Thanks a lot,
FlohHi, Sorry I don't have an answer for you. But how did you get to share /Library/Fonts? I was trying to do the same thing by using "File Sharing" in Server administrator. But under volumes, I don't see my root directory "/". So there is no way that I can share any of my folders under "/".
Thanks. -
Help: flash CS5 crashing and corrupted .fla's
I'm having one hell of a problem and could really use anyone's help who has a good idea.
I am working in flash CS5 on windows 7 64.
I am currently also running into the crash at save problem. The most recent version of my .fla corrupted about four days ago, which is something I've grown accustomed to (got the wonderful 'unexpected file format' error). So I went to my backup file- same issue. I had to go back 12 backup versions to find one that would work (even my backups on external drives when copied back over to the local drive or opened from the external would give this error. They did NOT give this error a week ago). But this backup version now crashes on Save, Save As, or if I try to create a new .fla while the backup .fla is open, it crashes. If I try to open any other .fla while the backup .fla is open, flash crashes. Sometimes is gets non responsive and needs to close; sometimes it simply sits there, does nothing, SAYS it's running, but will not respond to clicks, minimizing the window, or anything at all and I will have to force quit out. Sometimes it will crash when simply clicking a library item.
I have tried the following recommended fixes:
save the file to a new directory- on the rare chance that flash doesn't crash on save (about 1 in 10), and doesn't corrupt and make a new .fla that's 2k in size (about 1 in 4), the new .fla has all the same problems of the original.
change the JAVA environment variable- no help
increase the jvm.ini xmx value - tried 124. 256, 512, no help
open the file using zip and access the xml library assets directly, deleting them until you find a corrupt file- done it. three times. to three different versions of the .fla from the backup files. Flash still crashes.
save out as .xfl - on the rare chance that flash doesn't crash on save, the .xfl is corrupted (2k file size, no library, and for some reason a black square for an icon) about 3 out of 4 times. The 4th time, the file works no better than any other .fla
update flash player - no help.
update plugins for all browsers and debug versions - no help
update flash CS5 to the most recent version - no help
download and install all windows updates - no help
delete preferences and config folders - no help
The ONLY way I can avoid flash crashing is to go back to a backup version from more than two months ago. This version will open, save properly, and debug properly without error.
I have attempted and failed at every suggested fix I have found online or on these forums for this cluster of problems I'm currently having. I have three weeks to the project deadline, and there is no way I can go back two months in the production timeline.
obviously I cannot afford to lose two months of work. If anyone has any idea what could be happening, I would be exstatic- I'm really at the end of my rope here. After four days of looking for help and fixes online and on these forums and talking to adobe support on the phone ('we do not handle coding issues' is the only response I get. gee, thanks for the help), none of the fixes that have been recommended to me have worked.another update-
I've managed to reconstruct a file from my original corrupted file that will open and is editable (as long as i don't click through the library items too fast- that will freeze and crash flash). This file is less than 50 megs.
When attempting to publish, export, or test in conjunction with the document .as associated with the file however I end up with either A: no swf produced and an empty report, or B: a 2k swf with a black square for an icon.
debug produces the 'does not contain actionscript' error.
upon failing to publish, export, test, or debug, flash will then either A: freeze B:freeze, then crash, or (my personal favorite) C: continue to function so long as I don't click on any library items, try to open a new file, try to open an old file, try to save, try to save as, try to exit the program, or try to close a file from the window (all of these result in freezing, crashing, or freezing and then crashing. There is no apparent pattern to what happens). Also, clicking back and forth between the properties and library panels in the fla file or the as file will, well, sort of overlay the two panels halfway on top of each other and sort of 'ghost' parts of one onto the other. What I mean is, if the library panel is open and I click over to the properties panel (both are tabs in the same window of the workspace), the properties panel will be completely gray without any of it's usual boxes or text or button, and instead will have the names of some of the previous library items, greyed out, floating in random places that don't directly relate to where they were before. Basically, it's all messed up. And at this point the program will either freeze, crash, freeze and crash, or become completely unresponsive and require a force quit (surprise!).
If I gut the fla down to an even smaller size of about 10-20megs, I can avoid most of these problems, although flash is still very slow to open files (20meg file takes a good 90-120 seconds to open), save files (at least 30 seconds to save a 20meg), and generally clicking around and going about my business of editing symbols or typing script is laggy and slow. This of course doesn't really do me much good, since it requires me to gut 80% of my projects assets.
I can't tell if i'm getting closer or further away from a solution....... -
I made some amendments to my colour settings in PS CS5 and now everything prints black and white. Please help me to reset all the settings to default. This was after I tried to implement the steps set out in Real World Photoshop CS5. I stuggele to match the colours of my two screens, the one a laptop and the other a LCD and the printer, even after calibration with Spyder 3. Really lost at present.
Tap Settings / Wi-Fi. Tap the blue circle with an arrow to the right of your network then tap: Forget This Network.
Restart the iPad. Tap Settings / Wi-Fi. Tap the network name again then type in your password.
If that didn't help, try here > Apple - Support - iPad - Wi-Fi Assistant
And try turning off your router for 5 minutes, then turn it back on. Try typing in the password again. -
can someone please guide me to find my fonts...using Windows 7 and all are in my font folder in control panel and were just fine in CS5 but when i just upgraded from Illustrator cs5 to cs6 WIN (not cloud) and all my fonts did not transfer..only have Myriad. thanks
To confirm, al songs are already in your iTunes library of current computer, and they all play using iTunes (on the computer)?
And you are saying all the songs you purchased from the iTunes Store can be synced to the nano without any problems? But NONE of the other songs (that are NOT from the iTunes Store) can be synced to the nano, or SOME of them? -
When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll I uninstalled and reinstalled.same result HELP!
Taken at face value, you're having trouble with a QuickTime program file there.
Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now? -
b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b
Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
import java.sql.*;
import java.sql.DriverManager;
import java.sql.Connection;
public class SqlConnection {
public static void main(String[] args) {
Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
Connection con = DriverManager.getConnection
("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
Statement stmt = con.createStatement ();// Sending a query to the database
ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
while (rs.next()) {
String man = rs.getString("1");
String jean = rs.getString("2");
String test = rs.getString("3");
String kok = rs.getString("4");
System.out.println( man, jean, test,kok );//here where my the
//compiler gives me errors
stmt.close();
con.close();
}<b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p
-
Question
Why is there a missing font called "Ben Pioneer" when it is installed on my pc and works perfectly well with photoshop CS5?M5Mike wrote:
Yes the font works fine with Photoshop and office been using it for years.
Illustrator is a lot more pickier about fonts than those two. And Freefonts are known to get into trouble with Illustrator.
From what I can see on Dafont the font isn't a bitmap font.
Do you use font management? Try installing the font without font management. -
My itunes starts displaying weird fonts for song titles and app names. Help?
Need help to change them back to normal, I realize if I double click songs and movies, the titles goes back to normal english text.
However, I can't "RUN" an itune App to change the text back.
And I do have more songs that are all messed up text.
Anyone has any suggestions how I can change everything back to normal?Hi, hep 303.
>My external hard drive used to be listed as my F drive on My Computer, for some reason it is now my G drive. Could this be the problem?
iTunes uses a specific path reference to find the files that make up the Library so most likely that is precisely the problem. For "some reason" - and it would be helpful to try and figure out what that reason is - the songs are on the G: drive but iTunes is looking on the F: drive.
For the time being, have a look at this article in the Apple Knowledge Base. It talks about changing the drive letter of your iPod but you can use the instructions to change your external drive's letter as well - from G: to F:. -
How do I view and disable unwanted crap in the CS5 installer
I'm running the trial installer, and I noticed Adobe has become even more creative with hiding away all its silent-and-utterly-unnecessary payloads. In addition to defining required components in the proxy.xml files like for CS3 and CS4, there's now also a "Media_db.db" SQLite3 database with all payloads and dependencies that needs to be modified... and in the mean time no one bothered to actually fix the installer to offer us ways to not install things we don't want in the slightest.
To adobe in general: I want to install what *I* want to install, not what you want to install on my computers. I don't want AIR, and Media Player, and your own flavour of a JRE, and... well basically of the 1.5Gb your Photoshop CS5 installer wants me to install, I only need 500Mb (namely: photoshop, cmap, type support, xmp and the required fonts and color profiles). How do I turn the rest of the payloads off?
Can we get someone who wrote the installer for this -quite frankly wonderful- program on the line so that they can tell us all how we can actually control the install process so that it does NOT install all the stuff Adobe wants to force onto our systems?Hello. I’m the engineering manager for the Creative Suite and also responsible for the installation technology.
There’s lots of topics here, so let me try to address them one at a time.
First, our guiding principle for CS5 installers was to fix the top call generators for CS4 so that the installer succeeded more frequently. In addition, we made some significant architectural changes to better enable volume deployment scenarios. There is still a long way to go before the installers are perfect; but, gauging from the overall number of customer escalations over the past days since shipping we did succeed at dramatically reducing the number of customer escalations. Volume deployment tools are not yet released and we’ll see if those help volume deployment scenarios shortly. I’m not sure from where you heard the installers were going to be revamped from the bottom up. That’s never been the plan.
Adobe has become even more creative with hiding away all its silent-and-utterly-unnecessary payloads
The intent is to make the most common installation scenarios very simple, with a second goal to give the user as much configurability as we safely can. We’re not actually *trying* to hide anything. You can find the list of payloads and their use here:
http://blogs.adobe.com/OOBE/2010/05/cs5_payloads.html
The actual way that dependencies are determined is that each product lists its own subcomponents and how strong of a dependency that product has on each subcomponent. Subcomponents that are deemed “Critical” or “Required” do not show up as deselectable. Subcomponents that are “Recommended” or “Optional” do show up as deselectable. It sounds like the root disagreement here is the definition of what payloads should be Critical or Required vs. Recommended or Optional. Here’s the definition of the different dependency levels:
Critical –The product will not successfully launch without this payload.
Required - Without this payload the product’s primary functionality will not work as expected. The trick is defining what “primary functionality” means. Each product defines this on their own.
Recommended – Tertiary functionality does not work if this payload is not deployed.
Optional – There is no interactivity between the component and the product. Not installing the component should not adversely affect the product.
For Photoshop CS5, the installer includes six Recommended or Optional payloads: Extension Manager, ExtendScript Toolkit, Device Central, AIR, Media Player, and Fonts Recommended. Deselecting any one of them should result in that component NOT being installed. I just ran the Photoshop CS5 installer on a Windows XP system after deselecting each one of those six components and verified that indeed none of them were installed. (Note, I already had AIR on the system so I cannot really verify that AIR didn’t get installed in this particular install instance.)
Even deselecting all six leaves almost 1.5 GB to be installed. One could easily argue that many payloads marked as Critical or Required should instead be Recommended, such as Bridge. You have a valid point there.
The JRE point is an interesting one. In CS4 there were multiple copies (6, if memory serves) of the JRE being installed. Customers (and I) just didn’t know about it. Many different products just included the JRE as part of their product folder. In fact, Dreamweaver still does this today. We’ve pulled the other copies into one common payload. So now there are only two copies of the JRE being installed, the common one and the Dreamweaver one. The reason we tried to reduce the number of JREs installed is to reduce the cost in disk space to the customer as well as be able to more adequately address security vulnerabilities if one should occur within the JRE. These are all just normal JREs from Sun and haven’t been tweaked in any way; but, we need a known version to ensure the products keep running properly. If we just leverage the system version (on Mac) or a common version across the system (on Win) then we’ve encountered numerous customer escalations when the JRE is updated on that system.
Bridge in the Suite install case is also interesting. Because Photoshop has a Required dependency on Bridge, if you deselect Bridge with another product but then have Photoshop selected for install then Bridge will still be installed.
Can we get someone who wrote the installer for this -quite frankly wonderful- program on the line so that they can tell us all how we can actually control the install process so that it does NOT install all the stuff Adobe wants to force onto our systems?
I’ll try to dig up some instructions. Using the upcoming enterprise deployment toolkit is one method; but, that’s not going to be available for at least a few more weeks. It may take a few days to post instructions since we have to test the instructions before posting them. Note also that the product teams have not tested any configuration where the Critical and Required payloads are not installed, so the products may not function properly.
When I do get the instructions I’ll post them at this blog:
http://blogs.adobe.com/OOBE/
Thanks,
--Eric ([email protected]) -
I have AI files generated by another user which contain fonts with special characters. I have received and installed that font, but when I open the documents in AI CS5, the special characters do not display properly. The font is a TT font generated using Mac, I am using windows. However, I can use this font in other applications - for example, MsWORD - without any problems. But the special characters WILL NOT display in AI CS5. The regular characters from this font WILL display properly in AI. Help please. Thanks.
Set a different default language and encoding for "non-Unicode characters" in your system settings.
Mylenium -
Dynamic runtime shared libraries in Flash
Runtime shared libraries in Flash only seem to work if there
is a direct import link into the file that wishes to use the shared
library item. Why can't the main swf dynamically load a shared.swf
containing the shared library items into itself and therefore allow
all child swf's that are loaded after that event to access the
items? Or why can't you load the shared.swf containing the shared
library items into the requesting file on the fly and grant access
to the items from the requesting file that way? Creating direct
import links to shared libraries in all child flash documents is
very annoying in larger applications!
Ideally it should work like this...
All cross domain security issues have been dealt with.
I have a main container.swf.
The main container loads a remote shared library swf that
contains the shared library items.
After the load, the main container loads swf files that will
need to access shared library items.
One of the loaded child swf's contains a TextField with a style
sheet attached. We need to have access to a shared font from the
shared.swf library to enable us to set embedFonts to true and to
have the TextField render correctly. Unless the import link to the
shared library was created manually within the child swf containing
the TextField, the TextField will not render the text with the
embedFonts set to true.
This also seems to be the case when dynamically attaching
shared move clips with linkage id's to the stage. Unless a direct
import link to the shared library was created within the requesting
file or should I say the file that is running the script, the
script fails. It seems that libraries are kept isolated from one
another, probably to stop linkage id confliction etc. the same way
as the _global scope isn't shared between swf's originating from
different domains.
Using something like, libraryName.linkageID could combat
this, but I need to know if I'm wasting my time...
I hope this makes sense. There wasn't a solution last time I
checked, but it's been awhile and I was hoping someone out there
has come up with a solution at this stage or even knows the
official word on the subject.
Is this possible Adobe?
Cheers,
Derek.I found the answer. So long as I keep the folder structure in
my shared library exactly as I have it in my referencing projects,
I don't need to change anything in the mxml code itself. After
synchronizing the folder structure, I no longer receive the "1046:
Type was not found or was not a compile-time constant" error that I
was getting yesterday.
France
Maybe you are looking for
-
Momento de disparo comunicação com GRC NF-e (Processo SD)?
Boa tarde a todos! Uma dúvida interessante: Qual seria o real momento de disparo de comunicação entre o ERP e o servidor GRC NF-e em um processo SD? Imagine um cenário no qual a liberação contábil é feita após o salvamento do faturamento. a. Seria no
-
Having one field display the text of a different field in a statis form
Hi All-- My goal is to pull back a single value and display it in two fields, using a static form and formhandler. When a co-worker had both fields with the binding used to retrieve the value, he found that the population for the field was getting ga
-
Logic to populate the key field of a DSO
Hi SDN community, I have a very unique requirement and need ur help on this. I have a created a generic Datasource with two fields <b>Material Number</b> and <b>Minimum Quantity</b>. This is loaded into MINDSO01. The MINDSO01 in BW side will have two
-
Sql order in where clause...
i want to ask about how oracle deal with the order of where cluase as in select * from where tname = 'EMP' and tabtype = 'TABLE' oracle strat from down (tabtype) or from up (tname) and there is difference between this order if the where clause contai
-
Best way to take a form and.....
Looking for suggestion on the best way to take a form after submission to the DB and allow the users to save it as a PDF? So enduser fills out the form online and then clicks the submit...it sends the info to a db then outputs the form in a pdf form