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




Displaying Dynamic Text Boxes In Movieclips



Hi People,

I have a problem. Ive written some code to create a text box, containing variables pulled from a text file. This text box resides in a Movieclip in my library which I have dragged into a layer on my main timeline. For some reason the textbox will not display, even when I try creating text in the box as opposed to pulling it from a text file it still will not display anything. Can anyone help?

Heres my code:

_root.createTextField("ticker",1,0,0,100,100);

lV= new LoadVars();
lV.load("tickertext.txt");
lV.onLoad = function() {

ticker.text=lV.textData;
ticker.autoSize = "left";
ticker.type = "dynamic";
trace(IV.toString());
trace(IV.textData);

textStyle = new TextFormat();
textStyle.font = "verdana";
textStyle.size = 10;
textStyle.color = null;
textStyle.url = null;
textStyle.target = null;

ticker.setTextFormat(textStyle);

}

Im new to actionscript so please dont laugh at my code

Justin



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-10-2002, 07:36 AM


View Complete Forum Thread with Replies

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

Dynamic Text Boxes Displaying Html...
This is my code guys. Im using Flash MX

fieldTextFormat = new TextFormat();
fieldTextFormat.font = "Superhelio";
fieldTextFormat.size = 10;

profiletext.multiline = true;
profiletext.wordWrap = true;
profiletext.selectable = true;
profiletext.autoSize = false;
profiletext.embedFonts = true;
profiletext.text = "<a href='test.asp'>Flowers @ Design</a> is a contemporary bespoke florist based in Lindley, Huddersfield.";
profiletext.setTextFormat(fieldTextFormat);

Ive set profiletext textbox to be displayed as html but the link appears as text along with the stuff outside the tags. Why might this be? Ive tried using " and "" around the target file but to no avail.

Thanks in anticipation

Jonathan

Dynamic Text Boxes In Duplicated MovieClips
When duplicating a movie clip which has a dynamic text box inside it. Can anyone tell me why if i populate that box with a value from an array, if i preview using Ctrl+Enter, the text boxes are dynamically populated, but when i preview in the browser, the text is lost?????

I was talking to "Jls2k" - Moderator, yesterday and he said to embed the text in the original movieclip being duplicated. I did this but found that the text was firstly blurring in the swf, but again still not appearing in the browser.

One reason i dont want to embed the text is that i can duplicate a movielip as a menu item and have a dynamic navigation menu which is under 1 K in size without embedding
and if i do embed then the swf is over 20K.

Any ideas????

Assigning Dynamic Text Boxes Within Movieclips
Hi,

I've got various text boxes within movie clips. I was using a script similar to this to assign the values into each movieclip:

onClipEvent (load) {
test = _root.myArray1[0];
_root.ra0.numbercon = test;
}

I then put these movieclips within one big movieclip, but it no longer gets the variables and is instead blank. Does anyone have any idea what i need to change fix it?

Bobby





























Edited: 03/29/2007 at 12:59:07 PM by bobby2156

Input Text Boxes Displaying The Wrong Color
http://home.attbi.com/~xsleeperx2/as/as.fla

in the bottom left there is a button that says machine info, it's supposed to display text from a script but instead it shows up invisible. i can select it although it doesn highlight and copy it so i know the script is working b/c the text is there ... but i can't see it

any ideas anyone?

Displaying Text From XML In Incrementing Text Boxes
Hiya, I'm sorry if the title of this post doesn't explain what I mean too well, here's some more explanation:

I want to parse the data from an XML file into an array and then put each of the values in the array into a dynamic text box on the stage. The text boxes are name "number1_txt", "number2_txt" &c.

I have managed to set up a loop to parse the XML into my array and also to generate the names of the text boxes dynamically but I can't get the values from the array to display in the text boxes!

Quote:





function parseXMLNumbers(doc:XML):Void {
temp = new Array();
for (a=0; a<doc.firstChild.childNodes.length; a++) {
temp[a] = myXML.firstChild.childNodes[a].firstChild.nodeValue;
z = a+1;
var numberBox:String = "number"+z+"_txt";this.numberBox.text=temp[a]
}
}




If someone would point out what my glaring error is I would be really grateful as i am just getting to grips with actionscript.

Many thanks in advance everyone and thanks for reading this !

Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...

I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony

//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);

//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_

Making An Array Of Text Boxes, Movieclips, Etc
I need to dynamically create a number of movieclips. Is there a way to add them to an array and then modify that particular object in the array? For example,

arrObjects=new Array;
arrObjects.push(text1_txt); //1st text box on screen
arrObjects.push(text2_txt); //2nd

then, something like this pseudocode to change a property:
arrObjects[1].text="HELLO!";

Also, is there a way to refer to a variable name for objects, for example:

name="text1_txt;
arrObjects.push(name);

Thank you!

Dynamic Text Boxes / Resizing Text Boxes
I have a site with a dynamic text box that I have initialized (I'm not sure that that is the correct term) at the beginning with:

myText = new LoadVars();
myText.onLoad = function()
{ textBox_txt.htmlText = this.content;
};
myText.load("text/bio.txt");
stop();

Then I have just used a text box throughout with the same instance name, although sometimes I have it on a new keyframe. I assumed I could just keep loading text into it on different frames with:

stop();
myText.load("text/performances.txt");

This appears to be working, except that sometimes it seems to be confused and the text box on a certain frame has the wrong text in it. Do I have to initialize one for each frame in order for them to display the right code? What could be causing it to load another text file if it's frame action is telling it to load something else? It seems unnecessary to have to re-initialize it for a new text box instance in every new frame, but is that the way it has to be done?

Also, I'm not clear on resizing text boxes. It seems like if I use the width and height numbers to resize this text box on different pages then it changes the size of the text inside, and the scroll bar (the UIScrollbar) is a little squishy looking sometimes. How does this work?

Thanks for any help.

Input Boxes - Then Printing A Frame With Dynamic Boxes With The Input Text In Them...
I have created a flash document with input text... I put the input text with a a variable for each.. I need to print the variables on a seperate page. I used a bounding box inside a movie clip and the printing is working correctly... However it is not reading my input boxes into the dynamic text boxes..

What I did is I have the input boxes on the root timeline........ You input it and go through a few frames and you get the option to print from a button (which is printing 2nd frame of a movie symbol) NOTE: the printing is working correctly using #b.... This is what I have on the 2nd frame of the movie clip for the dynamic text boxes to read the input boxes and place those variables inside of those dynamic text boxes so it will print them as they inputted them...

Here is what I have for my button:

on (press) {
print(_root.Printing, "bmovie")
}


Here is what my variables are on the input boxes which are sitting on the root timeline, each word is a variable:

curious
passionate
accountable
resourceful
commited
teamwork
open
engerizing

External_focus
Clear_thinker
Imagination_courage
Inclusive_leader
Expertise


INSIDE THE PRINTING MOVIE I HAVE A FRAME WITH THIS ACTION ON IT FOR THE DYNAMIC TEXT BOXES TO READ THE INPUT TEXT BOXES:

External_focus1 = _parent.External_focus;
Clear_thinker1 = _parent.Clear_thinker;
Imagination_courage1 = _parent.Imagination_courage;
Inclusive_leader1 = _parent.Inclusive_leader;
Expertise1 = _parent.Expertise;
curious1 = _parent.curious;
passionate1 = _parent.passionate;
accountable1 = _parent.accountable;
resourceful1 = _parent.resourceful;
commited1 = _parent.commited;
teamwork1 = _parent.teamwork;
open1 = _parent.open;
engerizing1 = _parent.engerizing;


FOR SOME REASON IT IS NOT PRINTING MY INPUT BOX INFORMATION IN THE DYNAMIC TEXT BOXES.... DOES ANYONE KNOW WHY?

Dynamic Text Boxes
I have several dynamic text boxes which consist of user input on my site. The user fills them out then clicks on a submit button. I have this all figured out, but what I want to do is clear the text from the boxes after I play the successfully sent message.

Dynamic Text Boxes
ok, this may be confusing.

I have a swf which opens inside another. The one that opens inside the other has a dynamic text box linking to a notepad file. When I change the resolution to a lower setting (to see how it looks) the text box does not appear to scale. The linked text does scale so what happens is some of the text disssapears.

If this makes sense to anyone, please help!

Dynamic Text Boxes
Hi folks.

Im using the dynamic text tutorial in flash kit to load up an exterior text file into some dynamic text boxes.

The following code loads the text into the movie:-

loadVariablesNum("Files/student_info_1.txt", 0);

The trouble is that when I embed the dynamic text boxes into a MC and then drag it onto the stage, it stops working

Why oh why?

Please help

Help With Dynamic Text Boxes
Hello,

I am trying to make A input text box react with a
Dynamic text box.

Here is what i mean.

The input text box is called "Box1" and The Dynamic
text box is called "Box2". Now say if i type the word
"flashkit rules" I want the dynaic text to to say "I
agree".

Does anyone know what i mean?
Or do you want me to expalin it more?

Thanks in advance, William Jenkins

Dynamic Text Boxes
ok, I got a few small, nigley problems with these damn text boxes and I'm hoping someone else has experienced them and found a solution.

Problem 1: I use two seperate dynamic text boxes each formatted differently (text size and colour) that refer to the same variable from a text file. Both of them have no trouble reading the text, but sometimes the second text box adopts the formatting of the first. very annoying and I've no idea why it does this. I don't want to have to refer to another variable with exactly the same data as the first.

Problem 2: Text wrapping in dynamic text boxes....some of my dynamic text boxes have a few paragraphs of text in. Sometimes, the second or third paragraph of text doesn't wrap but disapears beyond the boundary of the box. If I zoom in and out of the movie, it will often correct itself???

Any ideas greatly appreciated.

O.

Dynamic Text Boxes
Can you put lines and squares etc into a dynamic text box?

I want to be able to have boxes in the dynamic text field so that I can seperate the text.

Thank you for your time,
Ben

Dynamic Text Boxes
Hi All,

I'm working on Flash-MX and want to develop a series of dynamic text boxes. I've a list of items in an Array and i show them with Check boxes, and when user selects items in that list, in next step all those options should be displayed in separate text boxes.

How is it possible? I don't want to use movieclips to create it dynamically.

TIA

Shailendra

Dynamic Text Boxes
I've created a scolling dynamic text box, which uses a text file to fill the text box. I've got two problems with this -

1. The font is squashed. How do I stop this?
2. How do I make some of this text bold font?

Any help is gratefully accepted!

ZapCat

Dynamic Text Boxes :D
im using Flash MX and what really weird is that i cant get variable to write into the text boxes im using, i trace them, and they work in the out put window, but not actually in the dynamic text field.


is there something new i dont know about. ?

the way im doing it is in the first frame i have this


Code:
textBox = "test"


trace(textBox)
the trace works , but nothing appears in the dynamic text box.

Dynamic Text Boxes
Hey all!
I’m creating a game where in order to shoot at enemies you need to collect your ammunition first. I’ve created a dynamic text box where it displays the amount of amo you have collected, and as you shoot…your ammunition decreases.
I would like to make it so that if you have zero ammunition…you don’t have the ability to shoot anymore, but I’m having a little trouble making it work.

Here is my code…what am I doing wrong?

if (amo >= 1){
collect(); //function which allows the character to shoot
}

if (amo <= 0){
walk(); //function which does not allow the character to shoot
}

is there a certain way you have to read values from dynamic text boxes??

Please help me!! Thanx so much!!

Dynamic Text Boxes
Hi there

i am tring to send text from a input text box to another dynamic text box, it works fine using the varible name option and when the dynamic box is on the same timeline, but no ive moved within a movie clip and now it does not work,

ive tried _root. and _global. but no luck

Please help

Jonathan

Dynamic Text Boxes
I have a problem with dynamic text boxes...

I have a complex but self-contained movie clip that works just fine AS IS when I put it into its own .swf file on its own. BUT, when placed inside another movie clip, it stops working the way I want. I know how dynamic text boxes work, as evidenced by the fact that on its own, this movie clip works just fine. It doesn't reference anything outside of itself.

Can anyone give me some common problems people have for not getting their data to show up in dynamic text boxes? I mean, I have a text box right on screen with actionscript giving the variable a value. It doesn't work unless its in its own movie. Any ideas? (I HATE FLASH)

Cannot See Dynamic Text Boxes
Hi All,

I Urgently need help with this one. I never had such a problem before. I made an email validation form in FlashMX, then I saved it as Flash 5 and exported it in Flash 5. This email form works fine when I look at it in the player alone, but as soon as I load it into the main movie the dymanic textboxes become invisible. But the button still appears. Can anyone please help. I thank you in advance.

Look at the main movie here: http://www.air-tecm.com and click on 'contact' to see the email form. Then also see the form alone at http://www.air-tecm.com/contact.swf

G-towr

Dynamic Text Boxes
How do you anti alias the text in dynamic text boxes, xo they look ugly.

Dynamic Text Boxes
Is it possible to create text boxes dynamically in FLash, like we do in VB.

Please let me know.

Jayakumar

Dynamic Text Boxes.
ok. so i can load my textfile variables into a dynamic text box...thats cool.

am i correct in the assumption that i CANNOT load anything else into them.
i.e. MC's.

if this is the case...does unloadmovieclip work with getting rid of loaded text files already showing in my dynamic text field?

Dynamic Text Boxes
Can you have multiple dynamic text fields in 1 mc and load different data into all of them at the same time? How is this done since I've been trying for the past 2 days and can't get it to work. Thanks!

Dynamic Text Boxes
Does anyone know whether dynamic text boxes have to be white? This is probably a really stupid question + I am sure I have missed something very simple but I am new to flash and I want to create scrollable text on top of an image.

I have created the buttons but the dynamic text box always comes up solid white so instead of seeing the image under the text I just have a white box containing the text.


Any help or pointers would be much appreciated because I can't seem to find the answer to this anywhere.

Dynamic Text Boxes
can you have two dynamic text boxes in 1 scene? i am trying to load two different texts to two different boxes and one will work but the other says undefined. i have check everything and cant figure out why it isnt working.

Using Dynamic Text Boxes...
Alright, I've heard plenty of rather complicated answers to my simple problem. I'm making a website for a local organization, and I want to make it in flash. I have a design all laid out in my mind and everything. The problem is that all the members of the club need to be able to access and change the text in it. None of them have Flash or Frontpage.

Here's what I need to do:
I need to have dynamic text boxes which call on a .txt document which is located in the same "folder" as the flash document.

That way, the members can just update the .txt document! It CAN'T be that difficult to do. All I need is the actionscript necessary for doing this.

Thanks for your time!

Dynamic Text Boxes
i cant seem to change the output font, using the properties inspector, whoudl i be using script?

Dynamic Text Boxes
What are dynamic text boxes?
haha, ok Im joking


Anyways, hey everyone. I have a question about Dynamic text boxes that could realy help me out.

Ok, as you know, when you place a scroller component and target it to a dynamic text box, the scroll bar will appear once the text box's text passes the height of the text box itself.

Hence the scroll.


But until the text gets to that point, the scroll is not visible but the bar is, leaving the simple white rectangle. Looks rather bad.

So my question is this. Is there way, when you put text into a dynamic text box, to tell if the text needs to be scrolled in which you then make visible a scroller component?

Thanks everyone!



Oh, and for those who helped me and my brother out on our first website, thanks alot (especially Kortex for his patience). You can see our website here at www.littlephotographer.ca

Dont judge too harshly, it is our first website afterall

Dynamic Text Boxes
Hello,

I am using Flash 8 Pro.

1) Is there anyone to show and hide text boxes? i.e. _visible etc.
2) Is there a command to flush and clear a dynamic text box when it is being updated every 5 seconds.

Dynamic Text Boxes
Hi,

Not sure if this is in the correct section, sorry if not!

I have got a php page with a rich text editor that updates a dynamic text box in my flash file.

I can add bullet points etc, but i can't change the text colour, size etc via the rich text editor as it just remains how it formatted in flash.

Any ideas how i make the dynamic text box reflect the formatting of the rich text editor and not how it is set in flash.

Many thanks,

Mark

Dynamic Text Boxes
Quick question, I'm building a movie that calls in text for a slide show.

The text is loaded one line at a time in bullet form like so:

• line #1 of slide show

• line #2 of slide show

• line #3 of slide show

My question is, how do i get the next line of text to load under the last line?
If a single bullet point is 2-3 lines long, how do i tell the next line to get the height of the previous line and start say 25 px under it.

if all the text that is loaded is only one line long, then i can do something like this:


Code:
text1._y=100
text2._y= text1._y+25
text3._y= text2._y+25


but if all the lines are different heights it becomes tricky. Any help would be appreciated.

Dynamic Text Boxes
I have to make a mobile phone in Flash and when each of the numbers are pressed it makes a sound and the corresponding number comes up on the screen.
I have used a dynamic text box to display the number. The problem is that when another number is clicked, the previous number is cleared from the screen and replaced. How can I get it to display all the numbers clicked in the correct order?

Any help is much appreciated, thanks.

Dynamic Text Boxes And '
I'm calling in text into a dynamic text box that uses ' a lot, in words such as I'm and I've and also words that have an 's. Where ever ' apears the text stops from displaying in the dyamic text box.

I have been told to try to avoid ' & and ! in dyanamic text.

I want to know if there is at all any way I can use ' in the dynamic text box, I don't want to have a bunch of misspelled words on my site.

I have tryed using "&rsquo;" but that also kills the text. Does any one have any advice with dealing with this problem?


Thanks
~Chris

Dynamic Text Boxes
FL8

I have a class extending movieclip. The class has a property 'info'
which is an instance of another class.

The movie clip has a dynamic text box. Can i set its var to info.prop??
Or something similar? I dont want to break out the info from 'info'
just to display its props

Alex

Dynamic Text Boxes
Hello,

I have a flash application at the moment where i need to create labels to add to a diagram, where they can be dragged around. However i am having difficulties with the dynamic text boxes. I use an input text box, where the contents entered goes into a dynamic text box within a movie clip, which is dragable. As this application is completly dynamic, i dont know how much text will be entered into the boxes, therefore i was wondering if there was any way in which i could dynamically resize the text box depending on the amount of text entered??

Hope this is possible,

If anyone can help it would be greatly appreciated :)

Cheers

Dynamic Text Boxes
Hi
I need to place a few dynamic text boxes one under other. The problem I have is that the number of lines in the top text box will vary and I want the text boxes underneath to be aligned relative to that text box. Does anyone out there know the best way to do this.

Cheers

Dynamic Text Boxes
I have developt a site http://www.momentumdesign.com.au/

and when the dynamic text boxs in the fla file are set and I publish the swf all works BUT when I go to make changes to the text boxes copy etc I have to re size all the boxes again??

also can I link URL to dynamic text ?

Thanks

Dynamic Text Boxes
I was wondering if it's possible to have a dynamic text box that can change sizes, without distorting the text displayed in it...

I would also like to set it up dynamically... is there a way that I can do that?

Dynamic Text Boxes
Hi all

I've got a problem with some dynamic text boxes, I've drawn the boxes 100 x 100 and there's text going to be fed into them from an xml file. I've got no idea how much text will be going in the xml so is there a way that the dynamic text box can grow depending on how much text is in the xml file?

At the moment anything that's really long just gets cut off by the dynamic text box.

Any help or ways around this would be greatly appreciated.
Thanks
Rob

AS 2 Dynamic Text Boxes...
Well, this is my first ever post, so this question will probably appear extremely easy to answer. I'm a Flash n00b, if you like.

How do I make a dynamic text box show the value of a variable that is called score?

I really need the answer to this question. It is probably easy, but it is stopping the development of my first game made in Flash!

Help With Dynamic Text Boxes
Hi There,

How are you,

I have a order form ,that has a option to add text boxes dynamically.
So the user can add boxes as they like and enter their details in these text boxes.

there are some fixed text boxes are present on this form.I have no problem getting values/data from these text boxes.I set it up to send details from this form to my email address.

I'm wondering how can I get data from dynamically text boxes that are add by user.

Thank You

God Bless You.

Help With XML And Dynamic Text Boxes
I have dynamic text boxes on my main timeline that I want to fill with XML data when the user clicks a button. The buttons are in a separate movie clip, and I have a for-each loop in the code for this movie clip that grabs the data. The problem is that the text boxes only display the last piece of data referenced in the loop.

Here is the XML:
<election>
<contest>
<Name>GOVERNOR</Name>

<Results>
<precinct code="cp2a">
<candidate name="Bob">1</candidate>
<candidate name="Joe">18</candidate>
<candidate name="Frank">88</candidate>
<candidate name="Lisa">0</candidate>
</precinct>

<precinct code="cp2b">
<candidate name="Bob">0</candidate>
<candidate name="Joe">18</candidate>
<candidate name="Frank">99</candidate>
<candidate name="Lisa">2</candidate>
</precinct>
</Results>
</contest>
</election>

And here is the relevant Flash code:
function showPrecinct (event:MouseEvent):void
{
var number=event.target.name
var electionInput:XML = xmlData;
var resultsList:XMLList = electionInput.contest.(Name == "GOVERNOR").Results.precinct.(@code==number).candi date.text();
var namesList:XMLList = electionInput.contest.(Name == "GOVERNOR").Results.precinct.(@code==number).candi date.attribute("name");

for each (var resultsElement:XML in resultsList) {

MovieClip(parent).Results_txt.text=resultsElement;
}

for each (var namesElement:XML in namesList) {
MovieClip(parent).Names_txt.text=namesElement;
trace(namesElement);
}
}

I can get all the names to show up in the output from the trace, but only Lisa shows up in the Names_txt text box.

Thanks for any help!

Dynamic Text Boxes
Hi, what I am trying to due is pull data from a database (got that working) and trying to display the data.  I do no know how many records I will have so I need to do a for loop and create text boxes.  So my test is as follows:

//create some formatting for our text box
    myTextFormat = new TextFormat();
    myTextFormat.font = "Verdana";
    myTextFormat.size = 14;
    myTextFormat.color=0x000000;//black
    
    _root.xVal = 154;
    _root.yVal = 216;

    //create the items on page
    for(_root.i = 0; _root.i < newrecordset.mRecordsAvailable; _root.i++)
    {
        //create a blank text box and set its parameters
        _root.qualVal = "Quality" + _root.i;
        _root.createTextField(_root.qualVal,20,_root.xVal,_root.yVal,108.4, 19.2);
        _root.qualVal.background=true;
        _root.qualVal.border=true;
        _root.qualVal.backgroundColor=0xFFFFFF;//white
        _root.qualVal.borderColor=0x000000;//black
        _root.qualVal.text = "Test" + _root.i;

        _root.qualVal.setNewTextFormat(myTextFormat);
        
        _root.xVal += 109;
    }

However, nothing shows up.  I know it has to do with the name passed to createTextBox because if I just put "Quality" in instead of _root.qualVal it works (but then overwrites itself because it is in a loop, thus the need for a name with i involved.)  Any help given will be appreciated.


Keith

www.clemson.edu/~davidla

The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.

Dynamic Text Boxes?
ok i am making a flash template and i have a preloader after which a content box and buttons animate into the stage. after this i want my text to fade into the content box(i want this with dynamic text so i don't have to edit the fla every time). Furthermore, I want the text to disappear if i click on another button, then new text to fade-in for that button. will anyone please help me?

*correction here's what i have so far: http://files.filefront.com/m2_flashzip/ ... einfo.html

Dynamic Text Boxes
Hi folks

Dynamic text box displays the text when it is straight but not angled using the free transform tool

is there a way of setting the angle of dynamic text boxes on stage using actionscript so that it displays the text that has been entered.

thanks

[F8] Displaying HTML Entities In Dynamic Text From External Text Files
I'm pulling content for a dynamic HTML formatted text box from a series of client-editable text files using LoadVars.

Flash 8 allows for the use of HTML entites in HTML text, and my client's text includes copyright and trademark symbols.

If I load some HTML text from within a script, the text box displays entities fine (like &174 to display a ® trademark symbol).

However, when using LoadVars to load the text from an external text file, I can't use ampersands in the text file, because the LoadVars interprets them as indicating the start of another variable.

I tried using Unicode, for example u00ae. Again, this works fine when the text is drawn from within a script, but when the loadVars displays it from the text file, it just displays the Unicode as a literal string. Other HTML formatting in the text files, such as bold or italic, displays fine.

Does anyone know a workaround for this (short of converting all 80 of my text files to XML)?

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