Professional :: White Spaces Go Missing When Loading Some Foreign Languages?
Jan 25, 2011
I have an online application that loads a variety of different languages. I have one main interface file that loads the appropriate language that is needed for the end user. These languages are being loaded from a txt file encoded using UTF - 8. Most of the languages are displayed fine in the dynamic text fields that are all embedded in Arial. The issue I have recently run into is with the French and Czech languages. In both languages the white space that follows a number is always removed. For example "20 minutes" would be displayed as "20minutes". Then in the Czech language I am also loosing spaces after certain letters, such as "a" and "v".
how to output characters from foreign languages in Flex and ActionScript.
To start, I'm just trying to output Cyrillic in a text control, but its just not working.
Ive tried BOM (Byte Order Marks) indicating UTF-8 in the XML file containing the text. I also specified "<?xml version="1.0" encoding="UTF-8"?>" in that file, and also in the actual MXML file. The actual text control is in a seperate AS3 file without a BOM, but I'm compiling everything with -actionscript-file-encoding="UTF-8".
The original cyrillic text came from an html file with a BOM indicating utf-8. I can paste that text into any html file with the same BOM and it displays correctly; take out the BOM and its garbage, so all that is needed is the correct Byte Order Mark at the start of the html file.
when i open up my swf file , there's always white spaces at the top of the window. but when i open up my .fla file, everything is in place. How can i remove that white spaces?
Most of my experience with XML has been with image galleries where I have mostly stored information into attributes, but now I'm making a simple news display with XML. For practice. And the problem is here and I can't seem to solve it. You see, this is my code.
It doesn't actually display (empty line), but there are two empty lines that are selectable before and after the text. This boggles me, since I set ignoreWhite to true. I'd like it to display just Man, I rock, without any empty lines before or after that text. Sure, I could edit my <update> node so that the node and it's chlid text node are in the same line, but I want my XML to be easily readable. And it's strange that everytime I use a line break (with return of course, in notepad) in a text node, Flash displays that as two line breaks. So does anyone know what's with those two lines before and after the text and why does it make two line breaks where there is one in my XML file?
Most of my experience with XML has been with image galleries where I have mostly stored information into attributes, but now I'm making a simple news display with XML. For practice.
It doesn't actually display (empty line), but there are two empty lines that are selectable before and after the text. This boggles me, since I set ignoreWhite to true. I'd like it to display just Man, I rock, without any empty lines before or after that text. Sure, I could edit my <update> node so that the node and it's chlid text node are in the same line, but I want my XML to be easily readable.And it's strange that everytime I use a line break (with return of course, in notepad) in a text node, Flash displays that as two line breaks.
I have a text box that is about 300 pixels wide and can't be any wider. I also have a lot of text, so wordWrap and multiline are set to true. Works great! Only problem is that the text wrapping creates a lot of unused white space in the right margin of the box. This white space takes up a lot of room and looks kind of rough.
Is it possible to have Flash automatically hyphenate the text in the box to avoid the big white spaces along the right edge of the box?
We uploaded a simple flash site in URL... and when it starts downloading for few seconds it shows white space rather showing the perloader. and the background of the website is blue but it show white during this transtional time.
I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
Here's what I've tried.
Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly?
I have been trying to get this working right for days and it is driving me crazy. It should be very easy, so I'm not sure what I'm missing.
I'm loading in an external text file, which is fine, but the problem is with how it is displaying.
It should look like the attached word file. But when I paste it in a text file it gets messed up. A sample of that is attached as well. I have tried making it look the same in the notepad file, but that doesn't come out right in the flash.
I have tried everything, importing as html, using xml files, copying the text into different programs and then into the text file.
I'm slowly converting my older Director-made tutorials to Flash. The user inputs text, and then I evaluate it. Before this evaluation, I want to remove spaces to avoid the user's input being counted incorrect because of an extra space. How do I do this for Flash CS5?
The Library allows Movie Clips to be named with spaces on the end.This causes problems when exporting library items with linkages.When exporting you don't get an error, but the item does not show up in the build.Is there a reason you allow spaces on the back of Movie Clip names?
I put together an .html page using a photoshop jpg that I sliced into sections. I was asked to replace two graphics from the original .jpg file with animated content of the same size. Using my slices as a guide for size, I created the two animated graphics in flash and saved them out as .swf files. They are both the exact same size(px) as the static images. I opened my newly sliced html file in dreamweaver, deleted the static images and placed the .swf files.
For some reason the .swf files cause gaps in my html page. Tere are no borders on the .swf files and I can't figure what I've done wrong.
One note: It seems to only ad space when viewing from Mozilla. Havent' tested it on a pc yet either.[URL]
Below is code for the left hand speaker:
<td colspan="3" rowspan="4"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="246" height="378"> <param name="movie" value="index_images/speaker_left.swf"> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="7.0.70.0"> <!-- Next object tag is for non-IE
I'm trying to load a live swf (an online game .swf file) within a private swf (My own client)
I'm using this code:
ActionScript Code: var loader:Loader = new Loader(); loader.load(new URLRequest("URL")); addChild(loader);
Which works perfectly apart from the program (when run) causes this error:
Quote:
Originally Posted by Error
TypeError: Error #1009: Cannot access a property or method of a null object reference. at _-Fonts()
I'm not sure why but the Fonts.as seems to crash the program... I decompiled it and found nothing really important inside the file... so I was wondering if it's possible to skip-loading the Fonts.as file... I can't delete this file/edit it due to it being a live .swf and not mine...
EDIT: I just re-looked at the coding and noticed it has similar coding to mine... could my code and this code be interacting be why it doesn't run?
ActionScript Code: _-0Jy = new _-1Nn(_-0DE, this); addChild(_-0Jy);
This is a combined Dreamweaver/Flash question. I have added to a webpage a flash movie, once I navigate away from that page and then back again I get a white flash when the Flash movie page loads. I have looked through the forum history and tried some various fixes, such as changing the .swf's background color, didn't work, add code in dreamweaver which embeds a darker color, nada.
I designed a site in AS3 and real quick in less then a second the 800x800 size of the flash template pops up in white then the preloader shows up to load the site.
When I tried to open it, it came up with "The FlashResources.dll is missing.einstall". I did reinstall.. 3 times. Still the same problem. I decided to take matters into my own hands and download the FlashResources.dll file from google and download it. I put it into me system32 file and ran ' regsvr32 flashresources.dll ' but then it said "DllRegisterServer entry point not found".
I had a problem recently with as3 and found no answer about this issue, I did a game with a client's container. This container has a custom loader function to load resources, so I loaded a swf with linked movieclip's based classes, these movieclips have frame scripts like stop() and dispatchEvent(..). It actually loads the resources, I instanciate them and their frame script WORKS. Now, I'm making a standalone version without the container:
1 - I load the same swf, using the standard flash loader.
2 - I instantiate the classes and add them to stage.
3 - The framescript is totally missing. The frame scripts like stop(), trace() and etc, aren't executing anymore.
I did a lot of research on the web, and found very few people with the same issue but no answer. I tryed a lot of workarounds but nothing seems to happend, I think is a security-loader issue, but now I am clueless.
We have a Flash game which need to be loaded and played from an AIR app. using the swf loader, the game swf is loaded into the AIR app. But the static background layers of the swf are not appearing in the loaded game.
Those graphical elements which are generated via action script only are appearing. When we are playing it independently (outside the AIR app), it works fine. Is there a setting that i am missing in Flash or Flex. we are working with Flex 4.
i'm having a little problem with my site because my font don't appear online... i have one font and when i see my page in another computer, i see times new roman...i know that if i use flash, i don't need to worry with that... so why this is happenning??i made another site and it was everything ok with the fonts that i used...
I am using Flash CS3 and the default font is _sans.This is missing from my fonts folder and I have tried to Google a download for this but have been unsuccessfull.
I'm starting using the CS4 version of flash, and in my codes, every word is "missing" the last letter. It's not really missing, we just can't see it, or see only half of it. Did it ever happen to you? If so, how can I fix this?
I've succesfully passed the Flash CS5 ACE recertification exam on 4th of May, but I've not received any certificate yet. PS: I'm not sure this is the right section for this topic, in case it's not i'm sorry.
I tried to create this preloader and test it but it seems not to work. I saw this tutorial, i tried to do it but unfortunately it doesn't work for me. I want to do it the easiest way possible. just : a loading bar ( white line) a background bar ( a blu background bigger line ) a AS ( which i am not able) i sent the file in attachments please look at the AS inside the symbol, an tell me where i'm wrong
I am trying to load a html text from a XML with flash cs4 but It loads with huge whitespace before and after the text. In an older, different version of the site made in AS2 it loads the same xml with no whitespace.I've tried setting xml.ignoreWhiteSpace = true but it doesn't seem to change anything.
flash code: Code: Select allvar XMLRequest:URLRequest; var XMLLoader:URLLoader; var xml:XML;
I recently updated text in a page. Now, when I test the movie, random characters within the modified text are missing. Is this a bug or am I overlooking something? I am using Adobe Flash CS3 on Windows XP.
Every time I install it it seems fine and works for a couple of days. Suddenly one day it won't open and all it says in the message is "flashresource file missing. please reinstall flash " So I say uh oh and reinstall. Works great so I think ok problem solved. Then a couple of days later it does it again. I have gone through this 5 times, each time reinstalling works for a few days or week then blammo suddenly "flashresourcefile is missing. please reinstall flash" I am completely stumped. After effects, premiere pro, soundbooth, all work great. Flash professiional is the only one doing this.
Macbook Pro intel i7 snow leopard osx 8gb RAM 64 bit
I made six buttons. All of them appeared in the library before, but now only five of them do. When I double click on the button (on the stage) which has a missing library reference, I'm able to edit it as usual nonetheless. Is this a database gone bad? If so, how can I rebuild the database index?