Dynamic Japanese Text Results In Mojibake
I have an xml file encoded utf-8 going into a dynamic text field in Flash MX. The xml file shows up the Japanese file no problem so it must be the swf that's misbehaving.
I've tried a few of the recommendations floating around - changing my computer into Japanese (using Mac OSX) and so on but still the Japanese characters still don't show up correctly.
Does anyone have any suggestions on tackling this? Or will I just need to embed the font (something I was trying to avoid)?
Cheers
gomichild
Ultrashock Forums > Flash > Flash Professional
Posted on: 2003-07-29
View Complete Forum Thread with Replies
Sponsored Links:
Japanese Dynamic Text
Hi,
I have a flash file into which I load french and english external txt files. I then display one or the other, depending on the user choice.
I now want to add japanese, but I can't figure out how to do it... I have a japanese font installed on my machine, I can see the characters in other applications, such as word or photoshop...
But I can't see them in flash. I tried to load the txt file, or even just pasting the text I copied from word... Nothing works.
Someone knows how to do it?
Thanks
View Replies !
View Related
Dynamic Japanese Text
I have an application that requires Japanese. I can get it to render fine if I use text fields on the stage. But when I attach text fields to a movie clip dynamically, all languages render except for Japanese. It quits rendering. I am using a simple "_sans" font and have set "embed = false" so that a system font will be used. What else can I do?
View Replies !
View Related
[CS3] Working With Dynamic Japanese Text
Hey guys,
I'm currently building out a website that requires Japanese as one of its languages. This will be entered via XML, and therefore we need to embed the font for it to display properly. This has caused a stumbling block for us because if the text contains Kanji, that's 7000+ glyphs and like 3 megs of stuff to load right at the offset. The two options we seem to be left with are a runtime shared font and manually embedding the copy through a static text field at the start of each subloaded swf. Neither seems ideal because the first option isn't really dynamic at all and the second one causes us all kinds of headaches with having to keep our swfs separate (Japanese vs English) so we don't cause unnecessary downloads for other languages.
So that was basicaly a long-winded way of asking... how do Japanese Flash Developers work with fonts? Is there a trick for getting a limited character set (or sets) to cut down on file sizes?
I really appreciate any help. Thanks!
David
View Replies !
View Related
Japanese Furigana Dynamic Text
Hi, can anyone help me how create a dynamic furigana- japanese character in Flash. Im using php script and mysql. Here' the furigana sample picture.
http://www.nausicaa.net/miyazaki/boo...hon_sample.jpg
Thank you so much!
View Replies !
View Related
Japanese Furigana Dynamic Text
Hi, can anyone help me how create a dynamic furigana- japanese character in Flash. Im using php script and mysql. Here' the furigana sample picture.
http://www.nausicaa.net/miyazaki/boo...hon_sample.jpg
Thank you so much!
View Replies !
View Related
Dynamic Japanese Text From MySQL Problems...
I've searched the forums like crazy, and though found a lot of information somewhat similar to my problem, I have yet to find one specific enough. Anyway, I'm having problems getting Japanese characters to display in a dynamic textfield when loaded from mySQL via PHP. Anyone successfully done this before?
Currently my setup has a form in regular html (php) encoded in UTF-8. Posting from that form to the database works fine, as does the raw data coming back out if I look at the variables manually. (Like running the "get" php script directly, and reading the output). So I know the input going in to flash is in UTF-8. Problem is the Japanese doesn't show up in Flash. In fact, nothing shows up in flash, not crazy gibberish, nor the latin characters that are intermixed a bit.
From the Macromedia pages on localization and everywhere else I've searched, all the solutions either relate to txt files saved in UTF-8 or else by using XML. I'm simply pulling the text out of mySQL and posting to flash with GET variables. Anyone have a solution or something else I can try? I've exhausted my own troubleshooting. Thanks.
-Sukui
View Replies !
View Related
Japanese Dynamic Text (_sans) Turns Into Squares
I load dynamicly created XML (any languages including Japanese and Chinese). Text (textField in a MC with onRease function) shows fine in Japanese in the first place. But on certains PCs (Windows 2000), when you click to trigger a onRelease function, all the Japanese (or Chinese characters) turn into littre squares!
font is _sans and font is not embedded, so device font.
View Replies !
View Related
Dynamic Japanese Text? Embedding Issues... Advice Please
Hey guys,
I'm currently building out a website that requires Japanese as one of its languages. This will be entered via XML, and therefore we need to embed the font for it to display properly. This has caused a stumbling block for us because if the text contains Kanji, that's 7000+ glyphs and like 3 megs of stuff to load right at the offset. The two options we seem to be left with are a runtime shared font and manually embedding the copy through a static text field at the start of each subloaded swf. Neither seems ideal because the first option causes us all kinds of headaches with having to keep our swfs separate (Japanese vs English) so we don't cause unnecessary downloads for other languages, and the second isn't really dynamic at all.
So that was basicaly a long-winded way of asking... how do Japanese Flash Developers work with fonts? Is there a trick for getting a limited character set (or sets) to cut down on file sizes? Do they not usually use Kanji?
I really appreciate any help. Thanks!
David
View Replies !
View Related
Dynamic Text In Form Results
Anyone know how do I include the dynamic text box data in a form? The user clicks on a picture when then populates a dynamic text field box with the text using external txt files. I then want the user to be able to email the form with some input fields filled out (which is working fine), but I cannot get the text from the dynamic fields to come through in the email. Thanks
View Replies !
View Related
Dynamic Text In Form Results
Anyone know how do I include the dynamic text box data in a form? The user clicks on a picture when then populates a dynamic text field box with the text using external txt files. I then want the user to be able to email the form with some input fields filled out (which is working fine), but I cannot get the text from the dynamic fields to come through in the email. Thanks
View Replies !
View Related
Inconsistent Results In Dynamic Text Quiz
Hello,
I'm getting inconsistent results in this dynamic text quiz. If you choose to go to the next question and then click "check" before you even drag the correct answer to the rectangle, it will sporadically give the answer. This doesn't happen every time, only randomly, and I can't figure out the reason. I've attached the fla.
The dynamic text for each question is called using a function and the simple i += 1 method of pulling from an array. The code to check the answer is on my check button. Maybe this is where the problem is?
View Replies !
View Related
Inconsistent Results In Dynamic Text Quiz
Hello,
I'm getting inconsistent results in this dynamic text quiz. If you choose to go to the next question and then click "check" before you even drag the correct answer to the rectangle, it will sporadically give the answer. This doesn't happen every time, only randomly, and I can't figure out the reason. I've attached the fla.
The dynamic text for each question is called using a function and the simple i += 1 method of pulling from an array. The code to check the answer is on my check button. Maybe this is where the problem is?
View Replies !
View Related
Help Loading Sorted Array Results Into Dynamic Text Fields
I am trying to load the results of an array and I can't figure it out. Basically what I am doing is sorting a list of 7 numbers from a "test", dropping the lowest 4, and keeping the top 3. I then need to identify the top three by the letter associated to that number, and have the results display in three seperate dynamic text fields.
.nt1 would be the total number of times that "A" was selected, .nt2 would be the total number of times that "B" was selected, etc.
//------here is the code that I am using
var score_array:Array = new Array();
score_array.push({score:_root.nt1, letter:"A"});
score_array.push({score:_root.nt2, letter:"B"});
score_array.push({score:_root.nt3, letter:"C"});
score_array.push({score:_root.nt4, letter:"D"});
score_array.push({score:_root.nt5, letter:"E"});
score_array.push({score:_root.nt6, letter:"F"});
score_array.push({score:_root.nt7, letter:"G"});
score_array.sortOn("score", Array.NUMERIC);
for (i=0; i<score_array.length; i++) {
trace(score_array[i].score+":"+score_array[i].letter);
}
var topThree_array:Array = new Array();
var topThree_array = score_array.splice(4);
for (i=0; i<topThree_array.length; i++) {
trace(topThree_array[i].letter);
}
//--------
when I test the script it works, and the results are accurate and show up in the output panel as exected:
0:E
0:F
2:A
6:D
6:C
6:B
8:G
C
B
G
When I am stumped is how to get the C, B, G to show up in their own text boxes as the sorted top 3 results. This is my first attempt at scripting this advanced...if anyone can help me that would be awesome, if you have a better way of getting the results - let me know - or if you can point me to a resource that will show me how to - that would rock.
View Replies !
View Related
Dynamic Content: Cold Fusion Results Placed Into A Scrollable Text Field
I currently have a scrollable dynamic text field that is being populated from an externally located static text file.
This is the ActionScript that is currently in place; it is taken from the tutorial “Scrolling Dynamically Loaded Text” ( http://www.kirupa.com/developer/mx/dynamic_scroller.asp )
loadText = new loadVars();
loadText.load("StaticTextFile.txt");
loadText.onLoad = function() {
scroller.text = this.VariableName;
};
I need to utilize this scrollable dynamic text field functionality with information passed from Cold Fusion as opposed to a static text file.
I work closely with the Cold Fusion developers so they are confident that they can pass me just about anything I need. The problem is “we” don’t know what exactly that is.
Here is the scenario:
I am building a completely flash help module for one of their web projects. Throughout this module certain “glossary terms” are presented in various locations. When the user clicks one of the “glossary terms” (which have been made into buttons) I target a MC instance to come onto the stage and provide the definition.
You can see what I have built up onto this point here:
http://qc.accelerateu.org/joel/index.html
As it stands now the text for the definition is pulled in from a static text file. It needs to be dynamically generated from Cold Fusion and passed into my flash movie. The definitions for these glossary terms are located in a database as they are used in numerous projects/locations throughout our entire website.
What I need is:
I need a way to set a variable in flash that tells the movie what the source of the content is going to be. I need to pass that variable out of my movie to Cold Fusion then, based on the performed query, have the results sent back into my flash movie and be scrollable depending on the length of the content.
I don’t need to concern myself with anything transpiring on the Cold Fusion side, I just need to know how to send the query from my flash movie and put the results back in.
Any help would be tremendously appreciated! You could very well be saving my job :)
Have a great day,
jOEL
View Replies !
View Related
Vertical Dynamic Textbox (japanese)
Ok, so this may not be a newbie question and I should go ask another forum... or maybe there is a really simple answer and I've completely overlooked it. Anyway...
I need to to set up a dynamic text field that displays multiple lines of vertical text, ie. displaying from top to bottom, right to left.
Eg, read the input string
ABC
DEFG
and display:
DA
EB
FC
G
My MX2004 "Help" panel lauds itself on being able to display static text vertically, and being able to dynamically update text... but doesnt offer any help on how to create a vertical dynamic textbox. (I guess there are not enough Japanese users of Flash yet?!)
Solution?
I have thought about writing code to
1) read the string, work out where the carriage returns are.
2) use a series of FOR loops and UNTIL statements, counting the individual characters and creating a new string
3) display the new string horizontally, but the output appears to be verticle.
Problems discovered in early testing were A) because the width of characters varies, the lines of text dont appear to straight. (in the example above, the B appears closer to the E than the A or C do to their neighbors.) and B) Japanese characters follow different rules when they are written vertically... eg a "-" hyphen should become a "l" when displayed vertically.
There has to be a really simple, "newbie" answer to this. HELP?!
View Replies !
View Related
Japanese Text?
Is there a way to input Japanese text in Flash? Using the MS IME thing, it is easy to input it into, say, Word, and I thought it would work in Flash too... But it doesn't. The way IME works is you type the Romaji of the character you want. So you type 'ka' and a hirgana ka appears, if you hit space it will cycle though the possible Kanji's for the word, if you hit enter it ends the word and acts like the space key would normally. WHen you hit enter in Flash, it just changes the Japanese text to question marks. So, is there a way to input Japanese text?
Thanks!
View Replies !
View Related
Japanese Text
So I'm making this website which needs flash text in japanese... it's an html website with bits and pieces in flash.
My first approach was to have a japanese font embeded in the library... but that weights around 1Mb... so if you're loading 2 or 3 swfs that's 2 or 3 Mb... which is kind of a problem... :S
I read somewhere you can tell flash to use a system font, loosing the embed advantages (alpha, antialiasing, etc) which is fine for me (at least better than 1Mb for each flash).
Has anyone had this problem?
How did you solve it?
How can I tell flash to use a system font?
Any help is appreciated...
TIA!
View Replies !
View Related
Loading Japanese Text.
Hi,
I'm working on the actionscript on a cd rom for a japanese co.
All is going fine except loading in some japanese text from an external text file.
It's just not working.
the text file looks something like:
content = "<japanese text here>"
The dynamic text box is set to use a japanese font.
Does the variable name need to be in japanese?
Do i have to do something special with the text file??
Do I have to do something with the text box in flash???
I really don't have any idea what the solution is. I'm english and don't have much experience with the japanese language as far as computers go.
Any help MUCH appreciated
View Replies !
View Related
XML Data Can't Handle Japanese Text?
I have a flash movie that loads in data from an XML file. However, I have some text that needs to be displayed in Japanese Text (author names, titles ). But when the movie loads it, it comes up with ???? and/or a different letter or symbol.
How do you incorporate japanese text from an XML source to be displayed correctly?
View Replies !
View Related
Chineze And Japanese Text In Flash MX
Hi all
I am sort of new in Flash.
I have urgent quest for you guys!
I need to display Chinese and Japanese text in Flash.
Have it in word document and now I have to apply it in flash. All I get is this : ??? ??????? ??????
What to do?
I wonna copy/paste the text. How is that possible? And what is the way to export movie so everyone can see it?
Thanks a lot for quick help!
respect
View Replies !
View Related
Chineze And Japanese Text In Flash MX
Hi all
I am sort of new in Flash.
I have urgent quest for you guys!
I need to display Chinese and Japanese text in Flash.
Have it in word document and now I have to apply it in flash. All I get is this : ??? ??????? ??????
What to do?
I wonna copy/paste the text. How is that possible? And what is the way to export movie so everyone can see it?
Thanks a lot for quick help!
respect
View Replies !
View Related
Crazy Bugs With Japanese Text
Hello everybody!
Has anyone here worked with japanese text? More specific, working with embedding Arial Unicode MS and using it for japanese in textblocks? We can't get this to work and we're going nuts!
What you see below is the code we're using, to me this looks OK but it doesn't show up anything in the textfield("theText") and when we trace the text all I get is "". And another thing is that if I trace the length of the textfield a get a correct value, 9 that is...
I guess that I'm just asking for someone to take a look att this and see if we've missed something!
PHP Code:
var arial14:TextFormat = new TextFormat(); arial14.font = "a14"; //this font is embedded in the library arial14.size = 14; arial14.color = 0x333333; theText.embedFonts = true;theText.htmlText = "";theText.html = true;theText.htmlText = "軽量化されました。"trace("text: "+theText.text); theText.setNewTextFormat(arial14); var my_fmt:TextFormat = theText.getNewTextFormat(); for (var prop in my_fmt) { trace(prop+": "+my_fmt[prop]); } theText
View Replies !
View Related
Showing Japanese Text In Flash Site?
In the Flash site I'm building I need to show Japanese text. But when I use the 'character options' and select 'specify range' and then select the 'Japanese Kanji' or 'Japanese (All)' and enter the characters in the place provided..It just shows little boxes when you go to preview the movie in a web browser.
I already have the Japanese IME installed so I can write Japanese on my computer.
How can I make it show up when you preview it?
I've noticed some Flash websites that are either Japanese or Korean have trouble displaying on my machine but other times it has no problem at all.
View Replies !
View Related
Showing Japanese Text In Flash Site?
In the Flash site I'm building I need to show Japanese text. But when I use the 'character options' and select 'specify range' and then select the 'Japanese Kanji' or 'Japanese (All)' and enter the characters in the place provided..It just shows little boxes when you go to preview the movie in a web browser.
I already have the Japanese IME installed so I can write Japanese on my computer.
How can I make it show up when you preview it?
I've noticed some Flash websites that are either Japanese or Korean have trouble displaying on my machine but other times it has no problem at all.
View Replies !
View Related
Javascript Popup Causing Japanese Text Transformation
I found out that ALL the popup creating javascript (window.open - triggered from swf or HTML code) causes the double to single-byte japanese display transformation.
This happens only on PCs, not on Macs.
You can see the real time exemple on
http://celine.aam-com.com/jp/
Go to COLLECTIONS section (it shows the nav bar on the right with japanese letters). Then click on the HTML link in Japanese which opens a popup window. This slitely modify the japanese text (double to single-byte). On non-Japanese OS, this causes the text turning into little squares.
View Replies !
View Related
Dynamic Election Results
I am building a page that will give election results for 83 cities online. Now I am using seperate txt files to update every city. Every city will be a different mc. I created dynamic txt fields for every party and variables are in txt files . They are ok, because they directly read what is on txt and I give the same variable names for dynamic text fields. And on the main secene with the over event of the city button I attach the mc.
But the problem is there is also a data bar next to the dynamic field and I want to scale it according to the variable that is read from the txt file. It looks like this very simply:
stop();
loadVariables("dataAnkara1.txt", this);
setProperty(barDspAnkara, _xscale, dspAnkara);
It does not scale according to the value of dspAnkara variable in the txt, but if I give a number there it scales. what can I do?
And later I also need to add all results, build a pie chart from them so I need to use variables as numbers and Number(variable) does not work either.
View Replies !
View Related
Dynamic Election Results 2
I am building a page that will give election results for 83 cities online. Now I am using seperate txt files to update every city. Every city will be a different mc. I created dynamic txt fields for every party and variables are in txt files . They are ok, because they directly read what is on txt and I give the same variable names for dynamic text fields. And on the main secene with the over event of the city button I attach the mc.
But the problem was there is also a data bar next to the dynamic field and I wanted to scale it according to the variable that is read from the txt file.
And now I found the reason that I need a function to put the setproperty in, like button event but I do not want a physical function. Because the mc is attached on the main timeline with button roll over already, what kind of function I can write in the mc timeline that I can put set property in so with the attachment of mc the bar will scale at the same time. I mean I do not need an additional button event. I tried onload or ondata but they wew not successful.It looks like this very simply:
stop();
loadVariables("dataAnkara1.txt", this);
//there must be a function here
setProperty(barDspAnkara, _xscale, dspAnkara);
View Replies !
View Related
Need To Return Results From Dynamic Quizes
Within the CDRom I'm creating each section is followed by a dynamic quiz. I would like to include a page at the end of the CD that the user can print out showing the results of all their quizes.
For example:
Section One
Dynamic Quiz One
Section Two
Dynamic Quiz Two
Section Three
Dynamic Quiz Three
Results "Congrats! You got 7/9!"
I've found several quiz templates that include a results page but none that quite fits this format.
Can someone help me?
If you need to see some of the already existing code just let me know!
– Corbett
View Replies !
View Related
Need To Send ASP Results To Flash, Preferably Into Xml Results Packet?
I am creating a flash page that will pull images from a folder without specifying each image name. I have the script I need in ASP to get the image names from the folder but now I need to see this in flash. I have used the xml connector quite a bit and would be happy to just get the information back as an XML results packet. Of course if there is an easier way to do this I am open to suggestions.
Any help would be greatly appreciated.
Thanks,
Dave
View Replies !
View Related
Embedding Fonts Into HTML Enabled Text Area Component Results In No Text Appearing
I've tried this on both Flash's own text area component and Ghostwire's and have had exactly the same result with both.
Basically, I'm using the text area component to load in an HTML document. The component is supposed to display the Tahoma font but it isn't on all computers as Times might show up. So I went ahead and decided to embed the font. Doesn't matter if I place a dynamic text field off the stage and then select the embed fonts option or make a Font Symbol for Tahoma. If I tell the text area to embed fonts I then render out the .swf and the text disappears. Turn off HTML formatting and the text then appears but the formatting of course, is completely lost. Anyone got an idea of a real fix for this? Or at least an explanation?
View Replies !
View Related
Preloading A Dynamic Jpeg With Strange Results...
Hi,
I'm having a few problems with a preloader on a jpeg I am trying to load in. After the jpeg has preloaded in I am trying to get a mask to play which reveals the image, however my mask seems to start halfway through rather than at the beginning when the preload is completed - can anyone help? I've tried everything I can think of. I have attached a zip containing the relevant files.
Thanks
View Replies !
View Related
Dynamic Masking Is Yeilding Unexpected Results.
Ok guys, here's my story.... I want to mask a movie clip that has dynamic text. Seems easy right? I follow the tutorial found here (http://www.kirupa.com/developer/mx2004/maskfonts.htm) and it sort of works.
I wind up with an SWF file that masks everything EXCEPT the dynamic text. So whether I want it there or not, the text is present. You can see an example here: http://www.scarboni.com/temp/about.html.
Basically, I just want to mask everything including the text until I'm ready to see it.... Any thoughts??? Thanks
View Replies !
View Related
Input Text Testing And Getting Results
Hi. I'm just wondering if anyone can help me on the flash actionscript problem that I have recently. For example, I made a blank line, and in there, the word "apple" has to be typed. If the user type the spelling wrong and hit enter, it has to show on the side, "it's wrong". If the user type it right and hit enter, it has to show on the side that "it's right".
I can make this to work when there's only one line to be filled on the stage. However, I need to have about 10 lines on the stage to be filled, and each one contains different word to be filled. Anyone knows how to solve this problem?
Thanks to everyone who's trying to help me on this
View Replies !
View Related
Displaying Results In A Text Column
I'm developing a health questionnaire, where you answer a bunch of health-related questions, and are shown a bunch of health recommendations at the end.
After the user answers all 15 questions, I use a bunch of logic (if...then...else) to go through the answers and determine which result to show. Each question provides a specific recommendation. I then import the various recommendations as XML files. That all works fine.
Here's my problem. Each time I import an XML file, I'm trying to concatenate that content into a variable called "recommendations" and display it on the screen. Eventually, the recommendations should consist of a bunch of smaller recommendations pulled from each XML file.
Here's how I set up that field:
Code:
var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("kaiser_hra.css");
recommendations.styleSheet = ss;
recs = new XML();
recs.ignoreWhite = true;
// Formatting text field and importing content
recommendations.multiline = true;
recommendations.wordWrap = true;
recommendations.html = true;
recommendations._quality = "HIGH";
Then here's how I import each XML file and attempt to concatenate it:
Code:
add_content = function (chapter) {
chapterLoad = "recommendations/" + chapter + ".htm";
trace ("adding " + chapter);
recs.load(chapterLoad);
recs.onLoad = function() {
all_recs = all_recs + recs;
trace ("recs: " + recs);
trace ("all_recs: " + all_recs);
}
}
For the function above, I'm passing the variable "chapter" to determine which piece should load. I use the variable "chapterLoad" to set the file path and name of the actual file to load. Then I load the file into an XML object called "recs" which I defined earlier. All that works fine.
The problem comes when I try and concatenate the value of "recs" into a variable called "all_recs" which contains all the previous and subsequent values of "recs." In the trace command above, "all_recs" returns "NaN". Therefore, I think the problem revolves around this line:
Code:
all_recs = all_recs + recs;
Isn's this the correct way to concatenate a string variable? Let me know.
View Replies !
View Related
Displaying Results In A Text Column
I'm developing a health questionnaire, where you answer a bunch of health-related questions, and are shown a bunch of health recommendations at the end.
After the user answers all 15 questions, I use a bunch of logic (if...then...else) to go through the answers and determine which result to show. Each question provides a specific recommendation. I then import the various recommendations as XML files. That all works fine.
Here's my problem. Each time I import an XML file, I'm trying to concatenate that content into a variable called "recommendations" and display it on the screen. Eventually, the recommendations should consist of a bunch of smaller recommendations pulled from each XML file.
Here's how I set up that field:
var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load("kaiser_hra.css");
recommendations.styleSheet = ss;
recs = new XML();
recs.ignoreWhite = true;
// Formatting text field and importing content
recommendations.multiline = true;
recommendations.wordWrap = true;
recommendations.html = true;
recommendations._quality = "HIGH";
Then here's how I import each XML file and attempt to concatenate it:
add_content = function (chapter) {
chapterLoad = "recommendations/" + chapter + ".htm";
trace ("adding " + chapter);
recs.load(chapterLoad);
recs.onLoad = function() {
all_recs = all_recs + recs;
trace ("recs: " + recs);
trace ("all_recs: " + all_recs);
}
}
For the function above, I'm passing the variable "chapter" to determine which piece should load. I use the variable "chapterLoad" to set the file path and name of the actual file to load. Then I load the file into an XML object called "recs" which I defined earlier. All that works fine.
The problem comes when I try and concatenate the value of "recs" into a variable called "all_recs" which contains all the previous and subsequent values of "recs." In the trace command above, "all_recs" returns "NaN". Therefore, I think the problem revolves around this line:
all_recs = all_recs + recs;
Isn's this the correct way to concatenate a string variable? Let me know.
View Replies !
View Related
Unexpected Text Results Using LoadVars?
Hi, The problem I am having is this. I am loading a text file into a loadVars object. I then use the variables of the object to send to a textArea component for the content of the web site. I have the component html set to true;
The results are this. The file displays creturns like a <br> ... Sometimes? Also if i use a <br> after <b> tags the line spacing works in some situations and not others. It is definately not acting like an html document. Spacing here and not here?... Is there a standard way to format txt files so that creturns aren't read? Any Help?
Thanks,
Nate
View Replies !
View Related
Text Comments From Quiz Template Results
Hi! I created a quiz in Flash MX using the quiz template. In the results page, I want to add comments based on the results that the user got. Will that be possible in the quiz template?
I tried using an input text box with the variable "comment" and added the following code to the frame:
if (QuizTrack.percent_format<40) {
comment = "You may need to take the quiz again.";
} else if ((QuizTrack.percent_format>30) && (QuizTrack.percent_format<70)) {
comment = "You did okay";
} else if (QuizTrack.percent_format>70) {
comment = "Amazing!";
}
But this only displays the percentage result of the quiz (ex. 86%) in the comment text box. It does not show the additional text comment that I want to be included. Is there something wrong with my code? Can this be done in the quiz template? Please help!
View Replies !
View Related
[CS3] Dice Roller With Color Text Results
I am making a dice roller where you can roll multi dice at once...
I want the color of the text to show as certin color based on if the result is a success or not of the variable _root.Got (not the results as a whole). if it gets to the Roll again the roll is green, if it just a Success it blue, if none of them it's red (i know i will need to change it some if i want to putting in color depending on the results of each roll)
here is the code for the dice roller
PHP Code:
while (_root.Temp<_root.TotalRolls) {
_root.Got = random(9);
_root.Got = _root.Got+1;
_root.RollsGot = _root.RollsGot+_root.Got+", ";
if (_root.Got>=8) {
if (_root.Got>=_root.RollAgain) {
_root.Agains++;
_root.TotalRolls++;
}
_root.Success++;
}
_root.Temp = _root.Temp+1;
}
View Replies !
View Related
Flash Remoting Displaying Results In Text Box
new to flashremoting built cfc to query database then want to display results in a text box based on testing tools results are being returned correctly but i cant figure out how to make them populate the text box.
I have a textbox with an instance name of getCheeks
querry returns two colums from database item and id
action script looks like this:
#include "NetDebug.as"
#include "NetServices.as"
#include "DataGlue.as"
// Create the gateway
if(isGatewayOpen == null) {
isGatewayOpen = true;
NetServices.setGatewayUrl("http://72.236.19.10/flashservices/gateway");
gw = NetServices.createGatewayConnection();
toolbarService = gw.getService("cfcSabre.LauraGeller.qToolbar",this );
trace("Connected");
// call web service sets
toolbarService.nCheeks();
}
// responder
function getnCheeks_results(){
DataGlue.bindFormatStrings(getCheeks, nCheeks, "#item#", "#id#");
}
View Replies !
View Related
Calculate Results 0 View In Initail Text Field
I have created a simple calculation which gives a result in a var (dynamic text box). Before the input text field has any numbers keyed in to the field the dynamic text box (result) displays the character 0.
How do I create a dynamic text box that displays nothing or is empty before numbers are typed
View Replies !
View Related
ReplaceSel Results In Extra Space Preceding Text Replaced
Hi all - I'm working on a little app that allows the user to select a text segment in a dynamic/input field, and upon key press the selected text will change based on built-in parameters.
PROBLEM: Everything is working EXCEPT that when the text segment is replaced, an extra space is inserted before the new text segment.
Here's my code, which lives on Frame 1 and corresponds w/an input text field w/instance name 'myText':
____________________________
myText.addListener(myText);
//note to self: load textContent dynamically in next version
textContent = "This is the text I want to change. This is some other text. Leave this line alone. In this sentence, only select the following word: word."
myText.text=textContent
s = textContent;
_root.onMouseUp = function() {
x = Selection.getBeginIndex();
y = Selection.getEndIndex();
correctText = _level0.s.slice(_level0.x,_level0.y);
}
myText.onChanged = function() {
if ((correctText == "This is the text I want to change") || (correctText == "word")) {
newText = "text is changed";
myText.replaceSel( newText );
z = newText.length;
myTextFormat = new TextFormat();
myTextFormat.color = "0xff0000";
myText.setTextFormat(x, x+z+1, myTextFormat);
s = myText.text;
} else {
newText = correctText
myText.replaceSel( newText );
s = myText.text;
}
};
____________________________
Thanks in advance for any inspirations.
-Sarah
View Replies !
View Related
Special Characters (input Text Fields) - Different Results From Keyboard
Hi all.
In my new website (not online yet) I'm using some input text fields in the contact form. The problem is, when you copy and paste a text with special characters (namely the ones used in Turkish) such as ğĞıİŞş they show up without any problem but when you input those characters using the keyboard, the result becomes ©½¦ˆßÍ. I thought that might be an issue with the font but I just purchased the OTF version of it (Georgia) from LinoType and I see that there's no problem with anything when pasted, or in any other application I used this font.
So I made a research and came up with System.capabilities.language returning en. I think this is what causes the problem but I'm not sure. Does anybody have an idea how I can correct this issue?
The encoding of html page is UTF-8, just in case.
Thanks in advance.
View Replies !
View Related
Japanese In Swf
Hi there,
we have some flash files we got localised into japanese. The font we used is ms UI Gothic as that is the most common font used with japanese. we export and everything is fine on a pc. We run the same files on a mac and we are getting the text cut off or overspilling its text boundary.
Anyone had any issues with this REMEMBER its fine on pc. the exact same file is acting up on mac.
the files are exported on flash 6.
any help pointers much appriciated Thanks for looking,
M
View Replies !
View Related
Japanese Font
Hey...
I'm slightly new to this. But I need to translate my flash site into Japanese... that's corporate capitalism for you.
My question is: I do not have Japanese localized Flash - would I need to get Macromedia Flash that enables Japanese or would it be suffice to insert a Japanese font into the fonts folder?
Thanks for your help.
The Don
View Replies !
View Related
Japanese EUC Encoding
Hello ...
I have a simple movie displaying a dynamic japanese text in a box. I'm working on a japanese OS, windows 2000 with japanese flash 5.0. Th encoding is EUC The movie is working okay with IE, but does not work with Netscape. Does anybody experienced similar problems ? or anybody can help ?
Thanks,
Evolution Man.
View Replies !
View Related
|