Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Display The Copyright String (c) In A Text Field ?



Hello,I'm using a text field in which I want to display the copyright symbol (c) : the letter "c" in a small circle. I tried this :texte.text ="&copy BRAND"but it doesn't work.Can you help me ?



Adobe > ActionScript 1 and 2
Posted on: 11/09/2006 04:39:51 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Form Field Doesn't Display String Any More
I have a text field I've assigned as dynamic, and given a variable name. I was using a date script to fill it with a date string. Now it suddenly comes up blank, and I don't know why...

"List Variables" yeilds this:

Variable _level0.page2.datebox.date_string = "Monday, January 14, 2002 1:55 PM"

But "List Objects" gives this:

Movie Clip: Frame=1 Target="_level0.page2.datebox"
Edit Text: Variable=_level0.page2.datebox.date_string Text=""


How can this be?

Thanks,

JEff

Add Copyright Symbol To String
How can you add the Copyright symbol to a string instead of just saying "copyright"?

Getting A Text String Value From A Text Field And Duplicating It In Another Text Field
I'm trying to take the text from one text field and duplicate it in another.

I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root,video_title.

I have tried this:

_root.video_title.text = _root.MC_Control.tab_title.text;

and this:

_root.video_title.text == _root.MC_Control.tab_title.text;

neither one seems work....am I missing something?

How To Display A Part Of A Text String?
I load dynamic jpg files. But the pictures also contains information I need to display. For example:
alert_1_20050613_171136_01.jpg
alert_1_20050613_172702_02.jpg

I need to display 20050613 from the jpg, so I can put this in a text box. How can I tell flash that he only looks at 20050613. I get all the names from the jpg in a string like this:

image1=photos/alert_1_20050613_171136_01.jpg&image2=photos/alert_1_20050613_171136_02.jpg&COUNT=2&LOADED=OK

So I already can read the text, but I need only to display a part of it.

Text Field Doesn't Display Text When Its In A Page Loaded W/ AttachMovie
I'm having a problem where I made a 'main' page that loads sub-pages via attachMovie and in those subpages I have text fields that are populated via a LoadVars object. The subpage works perfectly when I run it by itself -- but when I load it into the main page w/ attachMovie, the text field doesn't show up. Ideas? ?

Help With Dynamic Text Field Display
hi all,

i have a movie clip within my main timeline that is controlled by three buttons. each click on one of these three buttons, executes a script that loads data from an external text file into the above mentioned movie clip. the text loads correctly but my problem is this:

let's say the buttons are called "button one", "button two" and so on. if you click "button one" the appropriate text is loaded and displayed in the dynamic text field in the movie clip. however, if you click "button two" or "button three" it also loads the text but it appears ON TOP OF the text that was previously loaded in to the dynamic text field INSTEAD of replacing that previously loaded text.

how do I get the dynamically loaded text to appear in the text box and not have the previously loaded text still displayed? any help much appreciated.

thanks in advance,
cj

Text Field Display Problem
Hi all,

I'm building a sub-title scroller for an a/v company, and I've run into an odd problem:

the text field to be scrolled loads its content (variable) from a .txt file. Works great, except that there seems to be a maximum size the text field can reach before it just disappears. I don't mean a maximum number of characters, but the actual width of the text field. When I put a fairly large chunk of text in the .txt file, it will not show up in the Flash movie. However, if I shrink the window down, the text will eventually appear! Also, if I make the amount of text smaller, it will appear at a larger window size. It's kind of hard to explain.

Here are the files in question; can anyone try them out and let me know if you experience the same thing? I've updated my video drivers, FWIW. Try putting just a small amount of text in the .txt file, and it works fine.

<a href="http://www.atombong.com/flashkit/SubtitleScroller.fla">fla</a>
<a href="http://www.atombong.com/flashkit/text.txt">text file</a>

How Do I Display Html In A Text Field?
I used to know how to do this in MX 2004 but it won't work in CS3 so act like I know nothing (which I don't). How do I make a text field that reads either html from a txt file or even better, from a proper html file in Flash CS3?

Text Field (inside MC) Won't Display Anything
I have several dynamic text fields inside a MC. They all work except for one. I've tried embedding the font (see image) but it still shows nothing. I've done a trace, to make sure the variable has something in it, which it does. I've rechecked the path name a hundred times. The other fields work! This one doesn't. Here's the actionscript that feeds the text field (this exists on the "aircraft" movie clip" with an onClipEvent(load).

tag.VlarsoDisplay = Math.round(Math.sqrt(((560 - target._x)*(560 - target._x))+ ((300 - target._y)*(300 - target._y))))/10;

This code all works, and tag.VlarsoDisplay has a value, confirmed with TRACE. The path IS correct. Why on earth won't the value display in it's field?

Help With Dynamic Text Field Display
hi all,

i have a movie clip within my main timeline that is controlled by three buttons. each click on one of these three buttons, executes a script that loads data from an external text file into the above mentioned movie clip. the text loads correctly but my problem is this:

let's say the buttons are called "button one", "button two" and so on. if you click "button one" the appropriate text is loaded and displayed in the dynamic text field in the movie clip. however, if you click "button two" or "button three" it also loads the text but it appears ON TOP OF the text that was previously loaded in to the dynamic text field INSTEAD of replacing that previously loaded text.

how do I get the dynamically loaded text to appear in the text box and not have the previously loaded text still displayed? any help much appreciated.

thanks in advance,
cj

Text Field To Display % Loading ?
Hi
im using the version 8 of flash Pro.
I have this script for my preloader bar which works fine.

How i can add a text field/box so it can display the % percentage loaded ?


Code:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}

myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}

myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
}

myMCL.loadClip("main_movie.swf","container");

Pls Help Me- How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

Is It Possible To Display The Text (from External XML File) In A Text Field?
I'm a beginner with Flash ActionScript coding. I've got to make a flash menu that takes the text and URL for the menu items from an external file and displays it on a PHP page.
I've found the code to load text from an external file on the Adobe site:
http://livedocs.adobe.com/flash/9.0/main/00000890.html

However, this code doesn't work. It gives a message "Undefined" in a box, though all the paths are correct.

However, I can't use this code since I need to anti-alias the text display.Is it possible to display the text (from external XML file) in a text field? I can then apply anti-alias and select the text characteristics. I'll embed all the possible font characters in the movie.

How do I make this Dynamic Text for text fields work?

I'm using Macromedia Flash Professional 8 for creating this menu.

Getting The Input Text Field As A Number And Not A String
Hi there, i am having problems when using something that the user has inputted through an input text field in a variable with a :Number type. i get the error "1067: Implicit coercion of a value of type String to an unrelated type Number." when i try and test the movie, and my actionscript knowledge is not good enough to think a way around this problem. any help you can give would greatly help. i will post some of the action script below.

Thanks for your help. :-)

the radiusX_txt, radiusY_txt and speed_txt are the instance names of the three input text boxes.


ActionScript Code:
var centreX:Number = stage.stageWidth/2;
var centreY:Number = stage.stageHeight/2;
var radiusX:Number = radiusX_txt.text;
var radiusY:Number = radiusY_txt.text;
var angle:Number = 0;
var speed:Number = speed_txt.text;
radiusX_txt.setTextFormat(

var drawMC:MovieClip = new MovieClip();
addChild(drawMC);
drawMC.graphics.lineStyle(10, 0xFF0000);
var startX:Number = Math.cos(angle) * radiusX + centreX;
var startY:Number = Math.sin(angle) * radiusY + centreY;
drawMC.graphics.moveTo(startX, startY);

button_mc.addEventListener(MouseEvent.CLICK, addEvent);
button_mc.buttonMode = true;
function addEvent(e:MouseEvent):void{
 trace(radiusX_txt.text)
 trace(radiusY_txt.text)
 addEventListener(Event.ENTER_FRAME, drawCircle);
}
function drawCircle(e:Event):void {
 
}

thankyou again for any advice you can give

Text Field Won't Display Loaded Variable
I've used loaded variables numerous times before, but lately, I've been getting nothing but
blank fields.
The variables are loading, and passed to text fields outside of MCs, but not visible in text
fields that 'are' inside MCs.


Movie Breakdown:
================================================== ===================

SCENE 2 'uk' / FRAME 'UK1'

UKCostGeneral = "ukpricing.txt";
loadVariables (ukcostgeneral, "");



SCENE 2 'uk' / FRAME 'UK1' / MC 'UKGen' / text field 'UKCostGeneral' (imported/shared font)


================================================== ===================



This has had me puzzled for some while . . . someone even mentioned that because MC 'UKGen'
is under a mask layer, that I'd have to (embed) the text, rather than (import) it!!?? . . .
a resolve would be very much appreciated.

Regards,

::bluemoth::

Display Data Into A Dynamic Text Field
Some characters (..etc) do not display correctly in flash mx, the dynamic text (html format) displays an square instead of the character when i read from an external file or when i try to display data from my db (php/mysql)...why is this happening in flash mx?? with flash 5 all the characters appear correctly...!!! ???

Display Html Page In A Text Field
How can we load a html page as a variable and display it in a text field?

Urgent-Pls Help Me.. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

Urgent- Pls Help Me.. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

How To Fetch 'description' From Xml And Display In Text Field
Hi, thanks for having a look.

I'm making a media player which has a playlist of 8 or 9 flv's, I'm using 'videosourcepro' as my basis.

What I need to do, is when a user selects from the playlist (populated dynamically from an xml file), the title of the selected track is displayed in the title_txt dynamic text field.

I'm not new to flash, but I am to actionscript, so would anyone be able to suggest a way in which I could perform the afore mentioned task?

I've uploaded my source files and you can download them here

Thanks in advance
James

Text Display Field Accessibility Issue
I am doing a quiz using MM flash MX , i want to make it accessibility compliance, i.e, a screen reader should be able to read quiz content visualy impaired people. The Flash MX provides the option to make Movie clips and input fields accessible, but I am having problem in making the dislpay fields accessible in which the quiz results will be dislayed.
What AS shd i use so that a screen reader can read the result?

Tilt Dynamic Text Field Does Not Display
feloow actionscripters,

I have a dynamic text field. When i rotate it say 20 degree and publish. the numbers in this field does not display. Is there a work around for this?

raskol

Dynamic Text Field Content Does Not Display In .swf
I am very new to Flash. I'm trying to update a dynamic text content in a .fla that someone else created. It seemed a pretty trivial task but I can't figure out why I do not see the current text displayed (before I made any changes) when I preview or build the .swf?
I've debugged the actionScript code and I see the dynamic text variable being set but like I said, it's as if this code is not executed when the movie plays.

Any help would be greatly appreciated. Thanks.

Below (and attached) is the actionscript 2.0 code that updates the dynamic text variable (daTextBox2):
(I'm not sure the code was attached to the thread because I got a runtime exception)

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}








Attach Code

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}

Display Info In Dynamic Text Field
I need to have a dynamic text field look up one movie clip and get the text shown in a different dynamic text field. Then display that text. Is there a way to do this?

Urgent - Pls Help Me...How To Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??

Thanks...

Urgent - Pls Help Me .. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??

Thanks...

Some Fonts Don't Display In Dynamic Text Field
I've got a dynamic text field which uses fonts from my system for the text. The majority show as they are supposed to look, but certain ones like Webdings and Wingdings show up as Arial. Any solutions? It's a font browser so it's supposed to recognize the system fonts.

Display Text Field Like You Would A Movie When Called
I am trying to display a dynamic text block when called at a certain time in a movie.

        loadMovieNum(bio1.text,3);

A text block being loaded into a movie?



Display CurrentFrame Number In A Text Field
I'm sure this is a dumb question, but I just can't make it work.

Using AS3, I would like to display the currentFrame number in a dynamic text field (slideNumber_txt). Every time I try, I get error 1067. Here is the code I'm trying to use:

slideNumber_txt.text = currentFrame;

Can anyone help?

Thanks.

Michael

Take Value From Input Field And Display It In A Dynamic Text Box?
Hi,
I have an input field, which asks how many of a product someone wants.
Say they enter 3, I want them to be able to press a button which will display 3 in another dynamic text box. So basically copying the value to another text box.

Can someone help?

Thanks,

-rob

After Escaping Quotes, String Won't Appear In Dynamic Text Field
I'm working on a quiz, and when users quick answers A,B,C, or D, in the quiz, their answer appears at the end of the quiz in a dynamic text field, so they can compare their answer to the correct answer, which is located right above in a static text field. For instance, if the user clicks answer A, the following is called:

ansA = "A. You're really lazy! Why don't you get a job?";

and the user sees:

A. You're really lazy! Why don't you get a job?

However, I need the user to see quotes around the answer. I added quotes, and tried escaping them like this:

ansA = "A. "You're really lazy! Why don't you get a job?"";

but nothing appears in the dynamic text field after I do this. How can I get this answer to appear in the text field with quotes?

Thanks

Text String - Input Field - White Space
Hello

Question:

can flash recoqnize white space in a text string?

For example: If an input field was to collect words in a sentence and pass them to an array or individual variables. Basically would it be possible to take a sentence that has been inputed and seperate each word. Flash would have to recognize the white space inbetween each word and seperate it from there.

I not asking for an example although it would be nice just a answer if it is possible or not with ActionScript then I can try and figure it out from there.

Thanks

cheers,

noss

Accessing A String From A Variable Input Text Field
I'm trying to access the string from an input text field with this code but it isn't working:


Code:
empty.onEnterFrame = checkText;

var focus:String = new String();
var myTextNumber:String = new String();
var origMyText:String = new String();
var newMyText:String = new String();

function checkText():Void{
//Extract the number from the input text field in focus
focus = Selection.getFocus();
myTextNumber = focus.substr(15);

//Compare the original text with the input text
origMyText = myArray[myTextNumber];
trace(origMyText); // returns the correct string
newMyText = myInput[myTextNumber].text; //How do you do this?
trace(newMyText); // returns undefined
if(newMyText == origMyText){
trace(newMyText+" = "+origMyText);
}
}

Here's the full code so you can see more clearly what I'm doing:


Code:
//Load the text
var myVars:LoadVars = new LoadVars();
myVars.load("words_text.txt");
myVars.onLoad = function(bSuccess:Boolean):Void{
if(bSuccess){
splitText();
}else{
trace("error loading text");
}
};

//Define the Array object to store the seperated words
var myArray:Array = new Array();

//Define the _x and _y position variables of the text fields
var textX:Number = 40;
var textY:Number = 10;
var rightX:Number = Stage.width-100;

function splitText():Void{
//Assign the text to a String object
var myString:String = new String(myVars.text);

//Split the string Object at the spaces
myArray = myString.split(" ");

//Assign the split words to text fields
for(var i:Number = 0; i<myArray.length; i++){
var myText:TextField = this.createTextField("myText"+i,i,textX,textY,0,0);
var myInputDepth:Number = myArray.length+i;
var myInput:TextField = this.createTextField("myInput"+i,myInputDepth,textX,textY,0,0);
//trace(myText+" : "+myInput);

//Define TextFormat object
var myFormat:TextFormat = new TextFormat();
myFormat.font = "Verdana";
myFormat.size = 16;
myFormat.bold = true;
myText.setNewTextFormat(myFormat);
myText.autoSize = "left";
myText.selectable = false;
myText.textColor = 0xCCCCCC;
myText.background = true;
myText.backgroundColor = 0xEEEEEE;
myText.text = myArray[i];

//Apply same textFormat to myInput text and define the text field as input
myInput.setNewTextFormat(myFormat);
myInput.type = "input";
myInput.border = false;
myInput.tabIndex = i;
myInput._height = myText._height;
myInput._width = myText._width+10;
myInput.maxChars = myArray[i].length;

//Space the text fields evenly across the stage
textX += myText._width;

//Wrap the text if it goes beyond rightX
if(textX>rightX){
textX = 40;
textY += myText._height+5;
}
}
Selection.setFocus("myInput0");
};

empty.onEnterFrame = checkText;

var focus:String = new String();
var myTextNumber:String = new String();
var origMyText:String = new String();
var newMyText:String = new String();

function checkText():Void{
//Extract the number from the input text field in focus
focus = Selection.getFocus();
myTextNumber = focus.substr(15);

//Compare the original text with the input text
origMyText = myArray[myTextNumber];
trace(origMyText); // returns the correct string
newMyText = myInput0.text;
trace(newMyText); // returns undefined
if(newMyText == origMyText){
trace(newMyText+" = "+origMyText);
}
}

Shorten A String Before Placing In A Dynamic Text Field
I am creating buttons with dynamic text fields I am filling from an array. The problem is some of the array elements are too long to fit and overflow out of the button.

Is there an easy (or complicated for that matter) way to go about shortening any that are longer then say 30 characters to 27+"..."?

Thanks.

Can't Display Text In Dynamic Text Field
I can't for the life of me figure this one out.

The Problem:
I am loading data from an xml file, and displaying the the variables in several dymanic text fields, but I can't get anything other than a number to show up.

Here's the Situation:
Using flash professional fx 2004.
I have a Dynamic Text field with a name of name_txt assigned to it.
after I've loaded the xml file, I assign the variables. I'm using trace to ensure that the proper values are assigned, and they are. I resorted to testing by hard coding the text value of name_txt, and I found that text does not show up, numbers do... go figure.

so...
name_txt.text = "test"; does not work
name_txt.text = 3; does work

some values of my dynamic text...
not showing background, not htmlText, single line, aliasing, nothing embeded.

Anybody have any idea how to make text show up??
thanks in advance.

Shared Fonts Do Not Display In A Dynamic Text Field
does anyone know if this has been resolved yet

see technote on macromedia site

http://www.macromedia.com/support/fl...namic_text.htm

Display Formatting From Text File In A Dynamic Field
is this possible?

i read my news information from a file called news.txt... the unfortunate part is that i can not use any formatting what so ever

is there a way to display formatting from a text or html file using some codes or anything?

thanks in advamce

Making A Dynamic Text Field Display HTML
I'm using Flash MX 2004

This is driving me insane and I'm sure I'm missing something obvious. I am loading an external txt file into a dynamic text field. The text file contains some simple HTML tags which I know are supported by Flash ( ie <b> <p>). However when I test the file the text is displayed with the HTML tags as part of the text rather than interpreting them. Selecting the Render Text as HTML button on the property inspector does nothing. I've tried to set it in the code but thats not working either - here is my code -


section1Text.wordWrap = true;
oneVars = new LoadVars();
oneVars.load("section1.txt");
oneVars.onLoad = function() {
section1Text.text = this.sectionOne;
section1Text.html = true;
}

thanks a lot

Naomi

How Can I Get The Current Time To Display In A Dynamic Text Field?
Hi folks,

I have a dynamic text field that I've named myTime and I want the current time to display in it (hour:minutes AM/PM - I don't want seconds) but I can't figure out how to do it. The example in the reference for date objects returns the whole date (day of the week, date, hours, minutes, seconds) and I don't want that. Any help please?

Display A Random Number In A Dynamic Text Field
Hi, I've only ever used very basic Actionscript 1 & have recently made the switch to AS3.

I'm trying to create a dynamic text field that will display a randomly generated number between 1 & 9.

I've created a dynamic text field on the stage and called it 'random_txt' in the properties inspector.

Here's the code I have on frame 1 so far:

code: var myResult:int = Math.floor(Math.random()*8+1);

So my understanding of the above is that the variable 'myResult' now holds the randomly generated number?

I'm trying to display it in the text field by typing:

code: random_txt.text = myResult;

This seems to make sense in my head, but it doesn't work. Is anyone able to tell me where I am going wrong? Sorry if this is really basic, but I'm not from a coding background so the maths/tech side of things really throws me.

Thanks in advance.

HTML Links Won't Display In Dynamic Text Field
I am loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:

var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};

var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");

Here is a sample of the text file code:

&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="

Dynamic Text Field Erratic Display Issues
Ok, so I'm using loadVars to bring some HTML into a dynamic textfield, and styling it with an external CSS file. It's working as expected MOST of the time, but about 25% of the time I test it, I'll get to a certain page and the right half of all dynamic text disappears... When I go back to other pages that were just looking fine, they are now also displaying only their left half.

The fact that I can't recreate this with any sort of logic is really bugging me. Has anybody else experienced erratic behavior with dynamic text fields, and, if so, have you had any luck fixing it?

This project is on a reeeaally tight deadline, so any help I could get would be rewarded with my undying love!

Need To Display Multiple Font In Single Text Field
Hi All,
I am working on a flash application which would have a text field displaying multiple fonts in it. I have embedded the fonts and have added it to the library.I can view them in my computer whereas when viewed in another computer without the font used, display is different.

Add a <font face="library font one">registered mark </font>directly () or <font face="library font two"> with a Unicode escape sequence</font>

After the fonts are embedded size of the swf does go up. What could be wrong?

Display Array Information In Dynamic Text Field
Is there an easy way to display all the information contained in an array inside a dynamic text field?

Normally if you do this you get "orange,apple,pear" in the info_txt text box:

Code:

var myArray:Array = new Array();
myArray.push("orange");
myArray.push("apple");
myArray.push("pear");
info_txt.text = myArray;



How would I get the text box to say something like this:

Fruits:
orange
apple
pear

instead of the normal orange,apple,pear it would output normally?

&, ", And ' Do Not Display Correctly In Dynamic Text Field When Loaded From XML
hello,

i'm having problems getting certain characters and punctuation marks to display correctly when a string from an XML is loaded into a dynamic text field. they are displayed as "&" """ etc etc..

i'm am pretty much stuck with using an XML file, so if there is any way i can get these characters to display properly utilizing the following code with as little modification as possible, that would be great!

here is what i'm using:

PHP Code:



var my_xml=new XML()
var fileList:Array
my_xml.ignoreWhite=true
my_xml.load(_root.fileName)

my_xml.onLoad=function(success){
 LoadFileList()
}

function LoadFileList(){
 var len=my_xml.firstChild.childNodes.length
 var scrollingText=my_xml.firstChild.childNodes[len-1].childNodes.toString()
 info_dt.text = scrollingText //info_dt is the dynamic text instance
 } 




any help would be greatly appreciated!! thank you very much

Display Root Array Item In Nested Text Field?
OK, on the main timeline of an .fla I've got an array...
Code:
var listing:Array = new Array("alpha","beta","gamma","delta","epsilon");
... and a MovieClip with a nested text field, which is on the Stage.

I'd like to place some code on the first (and only) frame of the MovieClip which will display an item from the main-timeline array in the nested text field. The follow does work...

Code:
showList.addEventListener(Event.ENTER_FRAME, refer);
function refer(event:Event){
event.target.text = event.target.parent.parent.listing[3];
}

showList.text = this.parent.parent.listing[4];
... but I'm wondering if there's a way to do it without using an EventListener, or at least not an ENTER_FRAME event. My problem is referencing the main-timeline array from the clip.

Any tips? Many thanks.

My Dynamic Text Field Wont Display Some Font Characters
I have a dynamic text box that loads text from an external file... mmy problem is that the chatcters , and (and the right part af the word they appear in) are displayed as cute little rectangles...

What to do, what to do??

I've tried to "embed to font outlines" (don't knows what it means, but why not try??), but then the text just disapears


heeeeeee(eeeeeeeeeee)lp

HELP: How To Detect Line Number/string Under Mouse In A Static/dynamic Text Field
Hi folks,

Is there a way to detect the line number/string under the mouse in a static/dynamic text field, like we can do in Macromedia Director?

Need help urgently.

Thanks in advance.

Yossarian,
Mumbai, India.

Attempting To Display HTML Output In A Radio Button Component's Text Field?
Greetings,

Attempting to display HTML output in a radio button component's text field.

After digging down to the correct text field in the radio button component, we made the discovery that the "Render text as HTML" button is indeed checked...?

However when viewing the swf the text is displaying the literal HTML string ie: "<b>Blue</b>"...

What gives?

Thanks in advance.

Copyright 2005-08 www.BigResource.com, All rights reserved