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




HTML Text Boxes Within MCs



When I drop a text box (input or dynamic) and set it to handle HTML, I can change the style of the text dynamically. When I select that text box and convert it to a movie clip, using any HTML tags such as <B> or <I> make it disappear. Interestingly enough, <A> still works. Anyone have a work around for this??


e.g.

MyTextBox = "<B>Howdy</B>"; // works fine

convert to symbol...

MyMovieClip.MyTextBox = "<B>Goodbye</B>"; // disappears...

I tried setting font, color, size, height, width, depth, and aiming halogen lights at it, all to no avail.



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-07-2002, 06:09 PM


View Complete Forum Thread with Replies

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

HTML Text Boxes
Hello,
How do you make HTML Text Boxes Using Swish? The kind of boxes i am talking about are on the http://www.blink182.com , the video and news section..... the parts where its a box with words for news and you can scroll down and stuff yet the rest of the site is still flash.... my site that im tryin to do this on is http://www.androidband.cjb.net. My news section is off to the left, and i want to change it to just HTML. as you can see, i havent updated it in a while due to the fact that i download the SWF and HTML file off of my site and try and work off of that, but it screws up every time i try.

thanx
steve

Text Boxes With HTML
Hey anyone know how to make a dynamic text box load html from a .html file? Thanks

Mac And HTML Text Boxes
Hey all

I'm using text-boxes to load XML data into and for some reason when I set them to render HTML the text doesn't show up on Macs, though they work fine on PCs. Are there any issues I should be aware of?

Iam

HTML Text Boxes
Hi guys n dolls,

Haven't played with text boxes for a while and after trying for ages, I can't seem to get my html text box to accept html code.

I have a textbox with the instance name htmltext that has it's render as HTML option selected and the following code in the same frame:

code:

htmltext.text = "<p>my text</p>";



When I test the damn thing the text box displays '<p>my text</p>'

Any tips?

Cheers

XFM

Text Boxes As Html?
Hi, just a quick question...


I got a textbox in my mx movie that gets It's data from a txt file and I was wondering if there is a way to make the textbox represent everything in it as if it were in html so it would show <hr> as a horrizontal Rule and if you put <p> it would make a new parapgraph and so forth...

thanks in advance,

Dynamic Text Boxes, HTML, Text Files, Oh My
Can you apply HTML formating for text inside a TEXT file, load that into flash, and then have a DYNAMIC TEXTBOX display the text with the proper formatting?

If you can does anyone know of a good resource where this is demonstrated?


Thanks,

<a> Tag Usage In HTML Text Boxes
I'm making my first real Flash project for Chemistry class. I wanted to add some links to other sites on the Internet. So I was looking through the manual and saw: 'Text boxes can have some HTML tags, including <p>, <font>, and <a>'. Good.

They way I have it set up is so that when the user clicks on a button, the text in a window changes to a given value useing actionscript. It's at http://www2.jlcrowe.org/~masucs03/flash/science.swf if you want to see it.

This method worked fine until I got up to the links. The // in http://chemistry.com (example url) makes Flash think the rest of the line is a comment. Is there a way to stop this from happening?

Or, is the <a> tag only able to be used within one textbox?

Any help would be great. Thanks.

Dynamic Text Boxes And HTML
Hi,

I'm trying to format some text in a dynamic text box with HTML (I've checked the box to enable it), and some very weird stuff is happening:

With no formatting, the text appears as Times New Roman with the colour that I set in the Character panel.
If I add <b></b> tags, the text becomes bold, but also the font switches to the one set in the Character panel.

I want to change the font and colour of the text so I added <font face=helvetica color=#FFFFFF>...</font> (I'm assuming you don't use quotes for the arguments (helvetica, #FFFFFF)). This seems to make the text between the <font></font> tags disappear!! What is going on?

cheers,

Darkwhiteorange

Text Boxes, HTML, And All That Goodness
Is it possable to have a dynamic text box load a html file as it's input? I know that there is an option to "render text as html".

Basically, i want to make a flash document that can read a HTML file and display it in a pane of some sort.

Any help is appreciated.

HTML In Dynamic Text Boxes
Ok, I am so very confused I am hoping there is a simple explanation. I have a Dynamic Text box called debug which references the variable Class, I have a flashVar.txt file that loads the variable, it's entire contents are:

Class=<i>This is italic</i>.

When I load this file, all is good. However, I am using FreeTextBox to create this file, and FTB doesn't use <i>, it uses <EM>. When the <i></i> is changed to <EM></EM>, no italic. I read here maybe it is because I don't embed the font. When I embed the font and use Class=<EM>This is italic</EM> nothing shows at all! No italic, no text. I have the exact same problem with <STRONG> and <b>. Please, I am at my wits end, what am I missing? (Yes, the text box has Render text as HTML)

Rollover Effects Within HTML Text Boxes
I am curious if it is possible to enable rollovers to occur within specific text strings located in dynamic HTML fields.

Currently, the dynamic text field loads html documents to act a menu system that employs the use of the undocumented ‘asfunction’. The primary reasons for this are due to the non-static nature of the menu options; additionally, those who will be editing the html documents are not well versed in any type of visual development software and thus, require a foolproof method of updating Flash content. With that said, I would like to add visual cues by means of a rollover for users. The altering of text hues are the only rollover effects I require (i.e. from blue to yellow).

Can this be done?

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

Changing Value Of Dynamic .html Text Boxes On The Fly...
This seems it would be easy, but I'm having a difficult time wrapping my head around it and can't get it to work...

I have 5 buttons, 1 dynamic text box. I would like those buttons to change the contents of the text box by reading a different &variable from a txt. file.

I've attached a example .fla, it's hard to explain...

[F8] Input Text Boxes HTML Problem
well, I am making a timer in flash, the input boxes that you enter the seconds into change the seconds variable into HTML code stating the boldness and colour etc...

i have attached the problematic part of the code (to get the error change the value in the seconds box and press go)

thanks

--
Jophish

Help With Html Anchors In Dynamic Text Boxes
my knowledge with as is limited, and any help here would be appreciated:

i'm trying to load data from a php document into dynamic text boxes in flash. the php file consists of several different research topics, each with a brief description, url, etc.

my plan is to have 2 separate dynamic text boxes in the flash file, one that will serve as a navigation box, the other which will contain the bulk of the info. so far, i've been able to load each separate "topic" into the navigation box, and all the topics' info below in the other text box. what i can't figure out is how to link each "topic" in the navigation box to the text in the other box below so that upon clicking the bottom box will scroll to the right topic.

i've added <a href> tags with asfunction-ality to the topics in the nav box, but i don't know where to go from there.

everything would work smooth if i could add html anchors into the text in the lower text box, and have the nav buttons above link to those anchors. from what i've gathered, tho, it doesn't seem that flash 8 supports this.

any help, or even suggestions for alternate methods to achieve what i want, would be much appreciated. thanks.

Linking Dynamic Text Boxes And Html
is it possible to link an html file to a dynamic text box instead of a txt file? If so, how can it be done?

the html file I am trying to target regularly updates with current news articles. I am trying to make a news area on a flash website that will post the headlines listed in the html file. With the dynamic text box targeting the html file that refreshes periodically, I am hoping that whenever a user returns to the website, the news area will show the most current headlines.

I understand this could be accomplished by simply editing a text file daily, but I was hoping the website's news section could just manage itself instead of having to be updated manually.

Any suggestions?
And a preemptive thank you to anyone who has any advice to offer.

Loading Jpegs Into Dynamic HTML Text Boxes
Hello all,

I have read that this is possible, but have had no luck achieving it despite following the instructions given. I am using Flash MX & would really like to get my head around this one, so if anyone has any tips that would be greatly appreciated!

Mike.

Formatting HTML Content In Dynamic Text Boxes
Hello,

Does anyone have any tips on formatting HTML content in Dynamic Text Boxes?

I have two specific issues:

1. embedding images is OK if you want to display an odd picture scattered amongst a few paragraphs of text, but if you want to display say three pictures in a row there does not appear to be a clean way of doing so. The pictures just render themselves one on top of another. You can 'force' line breaks, but then the formatting just looks pants and irregular. Am I missing anything?

2. Using a <a> tag you can link content to another page, but is it possible to direct the link to a fresh browser instance as you can in normal HTML using the _blank attribute?

I may be asking too much of what appears to be relatively recently intorduced functionality in to Flash.

Thanks for any suggestions.

TK

Linking Dynamic Text Boxes To HTML Docs?
I'm still not sure how to link Dynamic text boxes to HTML documents, even after reading many articles on Dynamic text in Flash MX. Can anyone help or point me to the code, if any.


bigjake

Anyone Have A List Of HTML Tags Allowed In Dynamic Text Boxes?
I was looking for the answer on macromedia.com but all I could find was the list for Flash 5, which I'm hoping is a subset of what's allowed in MX.

Creating Line Breaks With Dynamic Text Boxes Using HTML?
I have an array with a series of informational text lines. I would like to place them in a status dynamic text box listing which ones have been processed. To do this I need to make a dynamic text box with line breaks after each item in an array. Here is my script so far:

imageClips = new Array();
imageClips = ["WindowsInit.jpg","CTRLA.jpg"];


I then have a dynamic text box with html enabled called:
Status

In my action script I have entered the following code:

Status.text = "<br>" + 1imageClips[0] + "</br>" + "<br>" + imageClips[1] + "</br>";

I want the first line to read "WindowsInit.jpg" in the list, and then break to the next line reading "CTRLA.jpg"

Whenever I run the script it does not work. Can someone tell me how to properly insert line breaks into dynamic text boxes using arrays of text with a line break?

Thanks,
Sam

Contact Form, ASP.NET, Text Boxes, Check Boxes
Hello,

I have to do a Contact form in flash with , text boxes, check boxes and.. IN ASP.NET

could any one help me with that?

give any sample or advice ?

I will really appriciate this

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?

HTML Style Drop-down Boxes
Does anybody know a good resource on using raw html elements within a flash? I need to create drop down boxes (HTML style) where the contents are dynamically created from a MySQL database. I also need a binary upload as part of my form... I understand how to do both of these in PHP and I also understand how to process textboxes with action script, however, I've not found any good resources yet on how to really get down and dirty with forms processing in flash. Any help would be greatly appreciated!
Thanks!

Flash > PHP: Input Boxes Sending HTML?
How can I stop input text boxes sending HTML formated data in a POST using

loadVariablesNum(feedbackpath+"?name="+name_txt_va r+"&body="+body_txt_var, 0, "POST");

I just want the two input text boxes to send plain text to be inserted into a database, instead i just get a load of bad HTML tags n stuff

any thoughts?


Cheers dudes!

Controlling Html Check Boxes From Within Flash
I am trying to check check boxes in an html form from flash buttons in a movie on the same page.. I imagine its something like document.form.checkbox.checked=true but cant get the syntax right from within flash

help???
thanks in advance
ash

XML, HTML, Dynamic Boxes, Newbie Question
Hello all.

I have 2 swf's on one page, one is a series of photographs, the other is a box.

Basically, what I want to happen is when someone clicks on one of the photographs, it loads the photograph and some text underneath it (like a caption).

While someone recently clued me into using newLocalConnection, I'm having a hard time thinking about the implementation.

One thing I thought about would be to have a click on one of the photos load an XML file into the box. But what kind of box should I use? And if I use XML, should I use CDATA to get some sort of HTML-esque formatting inside the box?

Any ideas on helping me get started?

Thanks.

Jeff

Loading Text Files Into Multiline Input Text Boxes
Can someone tell me if it is possible to load text files (.asp, .txt, .css, .js) into a multiline input text box in FlashMX?

I have a text box called "textArea" that I want to use as the text editor for any text file on the server.

myTextStream = "somefile.xxx";
textArea.text = myTextStream;

Reading External Text File Into Movie Text Boxes
So I'm trying to read a simple text file into an array and then putting that text into the dynamic text boxes of 6 movie clips

the MC are instances of 'CategoryBox'. Each instance is name cat1, cat 2, so on.

In the parent movie file the dynamic text box instance is called 'catText' and variable 'catText'.


Code:
// load the text file for Titles Questions
this.loadVariables("title.txt");

//Lets get the game going
this.onEnterFrame = function(){


//Titles loads? FIRE!
if(titles!=null &&titleArray==null){
titleArray = titles.split(";"); //makes new_ARRAY into an array having values of strings separated by a semicolon
trace (titleArray);
//title generations
for (z = 0; z < titleArray.length; z++) {

this.cat[z].catText = titleArray[z];
}
}

}
now trace shows the titleArray is getting it's goods, but the text in the clips is "_level0.cat2.catText"

text files reads as such:
titles=blah;blah; so on

Overflowing Dynamically Imported Text Between Bynamic Text Boxes
Is it possible to overflow text which has been imported to flash from a text file between two dynamic text boxes. Say that your text file contains more text than will fit in the text box. Is there a way to make the rest show up in another? InDesign has this option, but I have not seen any such thing in Flash. Is there a way to do it with actionscript?

Any Ideas?

Thanks in advance,
Blake

Problems With Reading Text Files Into Text Boxes
I have a scrolling text box which is an MC. I place an instance in the root, name it and then use

loadVariables("text.txt","_root.textboxInstance"); which is placed in a frame ie. an actions layer.

I have differently named instances of the textBoxMC in consecutive frames because different text files are readin as you click from one frame to the next.

The first text file reads in okay but then it stops working, I have checked very carefully that all the names are consistent and correct and that the text files are in the same directory as the swf's.

Is there something inherent in the method I'm using that gives inconsistency, and has anybody else had problems reading in text files to dynamic text boxes?

Is it better to have the loadVariables() method assigned to the button that moves the play head to the next frame?

some ideas/help much appreciated

Working With Dynamic Text Boxes And Text Files
I have a menu of buttons that load text files into a dynamic text box

I need a script that takes my scroll bar to the top of the page each time a new button is pushed. I am loading text files using the following script bellow.

the only way i can think at this stage of doing this is to have a seporate dynamic text box for each button. Surely there is a better way??

If this doesn't make sense let us know and i will try and reword it.

thanks

____________
loadVarsText = new loadVars();
loadVarsText.load("curriculum.txt");
// assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
// Now that we know the data is loaded,
// set the text content of the Text Field
// with the instance name "scroller" equal to the
// contents of the variable
scroller.html = true;
// scroller the instance name of the text file enabled html true
scroller.htmlText = this.var3;
// assigning the value
} else {
trace("not loaded");
}
};

One Of Them Text Boxes That Scroll And Text Speeds Up/slows Down...
Any scripts for the text boxes that speed up and slow down? For example the very right one on http://www.jossstone.co.uk/

Thanks

Poor Text Quality In Dynamic Text Boxes
I find that the quality of text in dynamic text boxes is really bad, especially with some fonts, perhaps I need to use a proper type of font for web based use, or if there are some settings that I am missing? but anyways I've put together an example of my situation, and hopefully someone has a solution for me. Im sorry if this problem has been posted before, I did a search for it, but found nothing, but if there is another thread just direct me towards. Thanks.

Multiple Scrolling Text Boxes From Text Files
Hello!
I have been trying to solve this problem long enough and need some help.
I am creating this in Flash 8.
I want to have a text area that has scrolling text. The text is brought in from a text file (one ending in .txt). Yes, there are a zillion tutorials that detail the steps. In fact, I have it working. The example that worked for me was one in which the scroll component was used and some action scripting. Works perfectly.
But not one that gives me a clue what to do if I want multiple text boxes using various external text files.
I have the timeline with the cells set-up so each cell is a new page (there is a script stop; to accomplish this along with keyframes).The idea is to navigate to a keyframe and it appears as if it is a new page. A box with a graphic in it changes, and a box for dynamic scrolling text exists. I got the first “page” with perfect scrolling text from an external text file.
Here’s the action script:
myVars = new LoadVars();
myVars.onLoad = function(){
textbox.text=this.Grun01;
};
myVars.load("scroll01.txt");

Now, if I do this same thing for the next page, all the pages stop working. The text files are different as are their first lines before the = signs. They are as such (in part):
File called scroll01.tx has a first line Grun01=
No html was used.
The text box’s properties were set to Dynamic, multipleline and an instance of textbox. The UIscrollBar instance was with parameters set to textbox.
I did the second text box (in the next cell) to load scroll02.txt, a first line of Grun02= and changed the action script to:
myVars = new LoadVars();
myVars.onLoad = function(){
textbox.text=this.Grun02;
};
myVars.load("scroll02.txt");
I also varied the text box’s properties to an instance of textbox02. The UIscrollBar instance was with parameters set to textbox02.
What do I need to do to be able to have each page with scrolling text loaded from an external file?
Thanks in advance,
Bill H.

Dynamic Text Inside Text Input Boxes?
I have a website project I'm working on where content is entered into input boxes in Flash and then I use PHP and MySQL to store the text and display it on the main part of the Flash site. Site users will use the same input boxes for edit the text, so I would like, if there is currently text in db, for it to show up inside the input box as well when they go to change it. I am not much of an Actionscript coder, so I am using mostly scripts that I found on the internet. I have a script for pulling info from the db and displaying it inside a dynamic text box in Flash, and another script for taking the text from the input box and sending it to the database. Both of these snippets of code work fine when I use them in other places on the site. When I use them together, however, the text from the db displays inside the input box just fine, but when I change it and hit Submit to change the text, instead of entering the text I wrote it enters the word 'undefined' and this is what shows up in the text box from that point forth. Does anyone have any idea what I need to do to make the 'output' code work with the 'input' code? Here is the code as I'm using it:

Code:
//this section pulls the text from the db, it seems to work just fine
myData = new LoadVars()
myData.ref = this
myData.load("wp_getdata.php")
myData.onLoad = function(success){
if(success){
in_col1_title.text = this.col1_title
}
}

//this section sends the text from the input box to the database. It works fine when used by itself, but submits the word 'undefined' when used with the above code
var php_process:LoadVars = new LoadVars();
send_button.onRelease = function() {
_root.col1_title_popup._visible = false;
var post_variable:LoadVars = new LoadVars();
post_variable.string1t = in_col1_title.text;
post_variable.sendAndLoad("wp_connect_col1_title.php",php_process,"POST");
getURL("javascript:window.location.reload(true);");
};

Dynamically Load Text In Multiple Text Boxes
Hello:

I have a Flash file where I have multiple dynamic text boxes. I would like to load the variables for these text boxes from one txt file, but I can't seem to get it to work. All it does is load the first variable into the text box.

Is this possible, or do I have to find another way?

Thanks for the help,

Walks With Sky

Loading Text Files Into Dynamic Text Boxes
hi,

I have created a dynamic text box in flash, and a text file.
I have read the tutorial at http://www.macromedia.com/support/fl...t_scrollmx.htm about loading text into text boxes.

I have decided to have my text file look like this;

Item=This is item 1
Item=This is item 2
Item=This is item 3
Item=This is item 4
Item=This is item 5
Item=This is item 5

What i want it to do is that when it loads the text file into the text box, it should only load the first 3 items (item 1 to item 3).

how do i go about doing that?

thanks

Dynamic Text Boxes, Text Wrapping
I am duplicating movie clips that have dynamic text boxes. Each movie clip goes under one another.

The problem is that some text boxes span multiple lines. So, I am unsure at what Y position to put the next movie clip.

Is there any algorithum to test how many lines a certain text box is going to span, based upon the string it contains? I was using String.length, but it doesn't seem to work properly. Sometimes, a long string can fit in one line, and other times it can't. This is b/c it depends upon where the spacing is in the string, and how many capital letters are used.

Matthew

Dynamic Text Boxes And Scrolling Text....
Ive been trying to get my brians around sorting this out and im getting there really slowly but im still stuck with two problems. Im using this code to link with text to another web site from a dynamic text box. Heres the code:

<a href="http://www.henrymiller.org/"><font color="#999999">(www.henrymiller.org)</font></a>

Now what i cant seem to work out is how can i have it so that just that text in a paragraph is underlined. Now the second problem is i want it to open the link in a new window so it doesnt lead u away from the main site is this possible also and if so how would i go about doing that ?? I need to work this out as the site im doing is late due to lack off contact with my client and i just wanna get it sorted and out off my way. Any help would be mostly appreciated.

Thanks
Mental

Randomizing Text In Dynamic Text Boxes
I want to make a dynamic text box. I'd use an external text document to contain everything and I want the textbox to randomly load something when the flash movie is brought up.

I don't want it to change every X amount of seconds, but load a random value and keep it until the browser refreshes or the person leaves and comes back later.

How would I go about scripting this?

Text In Dynamic Text Boxes Invisible
i've created an external flash movie that contains some dynamic text boxes with scrollable text.

when i test the movie all text content is visible.

when i then call that movie to load into the main movie, the text in dynamic text boxes doesn't display.

this movie also has a preloader with number of total bytes loaded etc., which are supposed to show in the dynamic text boxes as well, but they dont show eather.

another thing is that when this external movie is loaded i loose the navigation bar from the main movie.

have done load movie action before and it worked. dunno what is the problem......

any ideas?? please help.

Loading Text Into Dynamic Text Boxes
the title pretty much explains. how do i load text from a .txt file into a dynamic text box.

External Text - Multiple Text Boxes
Hi All

I have a flash document that has a few text boxes that i want to load external text into.

I have done this before only for 1 text box per flash movie. But how do i load several external text boxes?

eg - 1 text box for the face
1 text box for the legs etc.


This is my code:

myData = new LoadVars();
myData.source = "textboxes.txt";
myData.onLoad = function() {
face= myData.face
};
myData.load(myData.source);

i tried doing this but it didnt work:

myData = new LoadVars();
myData.source = "textboxes.txt";
myData.onLoad = function() {
face= myData.face
legs= myData.legs
};
myData.load(myData.source);

my text box file has
face = face information goes here
legs = legs info goes here.

Any help will be appreciative

Loading XML Text Into Dynamic Text Boxes
I have an XML document and I am trying to load the text from that doc into corresponding dynamic text boxes in flash. I wanted to use a loop to do this because I have 30+ textboxes to load text into and I thought this would be easiest to do. I know that the XML is being parsed and I can get it into the dynamic text boxes without the loop so I know the loop I'm trying to use is the problem. When I run the program, the text (from the XML doc) is not showing in the dynamic text boxes. The dynamic text boxes are named "page1box0", "page1box1", "page1box2", etc. Here is my AS code (and I'm using Flash 8):


//create new xml object
xmlDoc = new XML();
//ignore white space in xml doc
xmlDoc.ignoreWhite = true;
//used this in a loop to ensure that xml doc loaded
xmlDoc.onLoad = function(success) {
if (success) {
//trace(this);
j=0;
while (j <= xmlDoc.firstChild.firstChild.firstChild.childNodes .length) {
currentXML = xmlDoc.firstChild.firstChild.firstChild.childNodes[j].firstChild.nodeValue;
trace ("currentXML = " + currentXML);
currentBlank = _root["page1box" + j];
trace ("j = " + j);
currentBlank = currentXML;
j++;
}
//trace ("currentXML = " + currentXML);
} else {
trace("xml not loaded");
}
};

Resizing Dynamic Text Boxes To Fit Text
Ok,

maybe this soundz pretty newb... but I've been lookin everywhere and have found nothing...

Say I have a variable called textcontent?

textcontent = "blah blah blah blah blah";

and the dynamic text box can only show "blah blah"

how can i make it resize vertically not horizontally to accomodate the rest of the text....

I tried to make this simple but alot of times i over complicate things. Any help would be much appreciated.

Several Dynamic Text Boxes From One Input Text?
Hi I hope you can help. I have seen tutorials for passwords which give different answers if you miss the password out or user name etc.
What I have is one input text ( var =answer1)
And five dynamic text feedback boxes.

What I want is if they answer e.g. five then the first dyamic text box says "well done"

But if they answer "two" then the 2nd dynamic text box says "wrong".

The reason I am not just doing it all in one dynamic text box is that I want the feedback to previous answers on the stage.

I find these if statements really hard. Can anyone help, please?
stockdill

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 !

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