ActionScript 2.0 :: External Text Display?
Sep 27, 2006for some reason, when i load text that is pulled from MySql and send it to flash all apostrophies and dashes appear as squares. how do i fix that?
View 1 Repliesfor some reason, when i load text that is pulled from MySql and send it to flash all apostrophies and dashes appear as squares. how do i fix that?
View 1 RepliesI'm loading numbers from an external txt file which appear in my dynamic text field as "5" or "25" but I'd like to have a few "0"s in front there (so "0005" and "0025" for example).
View 1 RepliesFor clients editing ease, I've used external jpgs & external txt. When published both html & swf work fine. However when uploading to webpage, the jpgs will load, but the external text will not.
View 1 RepliesI have been trying to display this background image before the actual text displays.[code]...
View 0 RepliesI want to load an external text file, and display loading percentage in flash,so I could show user how far loading is completed.And the problem is I can see progress in trace window,no progross message displays in the textfield,only when my text is completly loaded,the whole text shows in flash.
[Code]...
Im trying to get a button when pressed to display text from an external .txt file (which I've done so far), but (1) I want it to only display certain paragraphs (the actual dialogue) of this text and (2) every time I click the button it should replace the old text with the new (like in any RPG). Now I asked a former lecturer for help and he gave me a link to a website and gave me a hint of what to do, but seeing as I was recently voted #48 on Forbes worst 100 programmers of all time (actually I haven used AS for 5 years) so I thought someone could explain it to me in a much clearer fashion? PS: My lecturer said: When you click the button to add text to the textfield but you ewant the previous text to be cleared the first thing you do is empty the box ( myText.text = "") then fill the box again with your new text..
[Code]...
I have combed the Web and I can't seem to find the answer. All I want to do is display some html-formatted text, located within an external XML file, in a dynamic text field in Flash CS3.
I don't have any code to supply because at this point the only thing I'm trying to display in the text field is "<b>This</b> is a <a href="http://www.google.com">test</a>." For this hypothetical example, I could call the text field myTextField. I just need to know how to format the AS3 code to get the XML to display inside myTextField.
found that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[code].....
How do i display "<" wheteher through external text file or not.I found out that you have to encode it to %3c, but somehow it still won't display. I'm thinking maybe there's a crash with the <> tag. But something is odd, if i used simple text it works, but if i used htmlText somehow it won't work.
View 5 RepliesI am a complete rookie in ActionScript2.0/Flash.I just started learning regarding a project. My problem is I want to display data from MySQL in a DropDown Menu in Flash. the SendAndRecieve functionality only aids us to receive any responses,right?(Please correct me If I am Wrong.
View 2 RepliesI've managed to piece together a flash website with my limited as3 knowledge. The text is loaded from external text files and styled with an external css file.
It's working perfectly in Firefox and Explorer but it only works SOME of the time in Safari (on my mac).It's hit and miss. Sometimes it styles the text sometimes it doesn't.
[Code]...
I have a text field component that I am dynamically populating with text. The words appear one letter at a time in a teleprinter style fashion. I also have rendered certain words with HTML to make style changes within the text.Now all this works fine, except because the HTML text is larger than the body of the other text, I am losing theteleprintereffect at the bottom of the text field. In other words, after a set amount has been printed, users are not seeing the letters printed out one at a time, but instead just get a printed line of text appear from beneath the visible section of the text window.
View 2 RepliesIs there a way to detect if a dynamic text field that has basic english characters embedded can't display some foreign text, japanese for example?
So I can then switch the text to display in an arial device font text field.
Sorry if this has been answered b4, but I can't find it if it has.
I embed image in html text field like [code]...
The problem is that text is being wrapped around an image. How can I get the text to be displayed under the inserted image?
There's a movieclip, lets call it myMovieClip. Inside this movieclip there is a dynamic text box, lets call this one myText. Now to change the text within this text box that is embedded in a movieclip, it's simply:
[Code]....
However, what if there is a variable, called myVariable that stores the instance name of the text box. With only one text box I know it's pointless, but for the sake of example, lets leave it simple. So, suddenly the code looks like:
[Code]....
I have a text inside a xml file and i would like to display this text in a dynamic text field, using the xmlConnector.The files are at the following address:[url]............
View 1 RepliesIs it possible to display Hebrew text in a normal Static Text field. If so how can I proceed.
View 0 RepliesI have a dynamic textfield being populated with an xml files' content. I then have a css stylesheet loaded into format the text. This all works great, but what doesn't work is the ability to bold some of the words in that text. I have both the regular and bold versions of the font embedded into the swf, I can test out just a bold block of text and it works fine. The css is also working as it will change the size of the text that I tell it to. Everything is working, but for some reason I am not able to get the bolder version of the font to display in the same text box as the regular one. I have also tried to change fonts but had the same outcome.
View 2 RepliesWe are in the process of developing a CRM application and for that we need to upload *.doc and *.docx files and display that contents.
We successfully uploaded the *.doc and *.docx files in application by using FileReference and FileReferenceList. Would you please tell me some idea to read the contents from *.doc and *.docx files and to display the uploaded file content into flex text area.
I know this is similar to an already asked question, but I would love to get some more detailed help on how the outcome was achieved. I have a website with SWF animations of automotive systems. Each animation has labels naming the parts, action buttons to show failures, and links to other animations. The text for each label is dynamic, with the label being pulled from an XML file. We allow the user the option of changing the language, and currently have successfully used English/French/Spanish (all left to right) and Hebrew (right to left).
We are trying to add Traditional Chinese for a user in Taiwan, and are having difficulty getting the characters to display. We can make it work if we embed the font file into the SWF, but the file size increases to a point that it is not practical to do. I want to use the "Device Font" option, so that we can enter the Chinese text into our XML file, and then the SWF will use the font file from the end users computer to display the characters, but if I change the text property to "Device Font" it makes all the label text in the boxes disappear, no matter what language I select. If I leave the box set to "Anti-alias", the other languages display correctly.
The XML file contains this for the Chinese language label:
and this for the English Language label: The encoding of the XML file is UTF-8.
Is there something I am forgetting to do?
I am trying to show input text to another text field on run time. I want to show the myOutputBox with in a movie clip. The code is below:
Actionscript 3
package
{
import flash.display.Sprite;
import flash.display.Stage;
[Code]....
I have the following code for a frame. When I roll over the movie clip only the following text is displayed:
ic xterna Apps
I want Click External Apps to display.
import flash.events.MouseEvent;
mcHint.visible = false;
stop();
[code]....
hey i need to figure out how to make a text field that will display text with else/if functions, basically on my program with a certain output i want a certain phrase to appear depending on which output. how would i go about doing this?
View 1 RepliesI am loading an xml file in my SWF file containing some utf text like:
I want to display the encoded text in my text-field.
I have this code for my button. How do I make it so when its rolled Over, it'll display a text area with text inside it? and when I roll Out, the text area will go away?
on (rollOver) {
}
I have a INPUT TEXT inside a mc called "txt mc" and DYNAMIC TEXT in the main time line.I'm trying to display what's typed in the INPUT TEXT (my_Input_Txt) in the DYNAMIC TEXT boxes (my_Dyn_Txt1, my_Dyn_Txt2, my_Dyn_Txt3).Here's the code. But it won't simply work perhaps because the INPUT TEXT is inside a MC. I need to have the INPUT TEXT INSIDE THAT MC while having the DYNAMIC TEXT boxes out in the main time line.
my_Input_Txt.onChanged = function() {
my_Dyn_Txt1.text = my_Input_Txt.text;
my_Dyn_Txt2.text = my_Input_Txt.text;
my_Dyn_Txt3.text = my_Input_Txt.text;
};
I'm playing around with a messaging type of application. Does anyone know how, or of any tutorials on to "appending" html text to text areas in flex and flex mobile projects? And specifically how I could take that and basically "append" a sprite inline to the text when i need to? Something simple like:Username: some text right here!So, Anyone have any experience "appending" sprites or simple text formatting?how to solve these issues!EDIT:Based on an answer below it was sugguested that it's as simple as...textAreaInstance.htmlText += "<b>Username:</b> some text right here!";But its not. you can't do .htmltext with a text area. you can on a text field, so i tried
var TF:TextField = new TextField();
TF.width = 200;
TF.height = 200;
[code].....
This is my first time toying around with textFields and I can't quite get it to work properly.I have a window that pops up which displays some text and has a close button to close the window
Code:
var closeButt:closeButton = new closeButton();
var tileInfo:TextField;
[code]......
I have my FLV loaded successfully from an external source, just having trouble displaying it.
[Code]....
Guessing that error is telling me addChild is expecting a different type.
ActionScript Code:
import flash.events.Event;
var videoToLoad:URLRequest = new URLRequest("http://ourmediaserver.com/media/video.flv");
[Code]....
I'm having a problem being able to display an external image using xml, I have it set up so that once it loads it is put into an emtpy mc on the stage. I've been looking at the xml photogallery tutorial and I can't see anything wrong?
The actionscript is this:
Code:
function loadXML(loaded) {
if (loaded) {
bgImg = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
[Code].....