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








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.




FlashKit > Flash Help > Flash General Help
Posted on: 06-21-2002, 07:17 AM


View Complete Forum Thread with Replies

Sponsored Links:

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.

View Replies !    View Related
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?

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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!!

View Replies !    View Related
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

View Replies !    View Related
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)

View Replies !    View Related
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

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

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

Please let me know.

Jayakumar

View Replies !    View Related
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?

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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!

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

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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.

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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,

View Replies !    View Related
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");
}
};

View Replies !    View Related
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.

View Replies !    View Related
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);");
};

View Replies !    View Related
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

View Replies !    View Related
RESIZING DYNAMIC TEXT BOXES
Does anyone know how to get a dynamic text box to resize automatically when the text assigned to its variable is to long to be displayed as i cant seem to figure out how to do it.....

Maybe it has to be done manually, well using actionscript which seems a bit stupid if not impossible...

Any help would be great..

Cheers

View Replies !    View Related
Resizing Dynamic Text Boxes?
Hi and thank you inadvance for your replies.

How do can you resize or skew a dynamic text box so that the text within the box is also resized or skewed?

Case:
I have a dynamic text box reading in from an external file. The text box has the setting of word wrap because the text will always be different. In my mc, this text box has to shrink and disappear.

Attempts:
I have placed the text box in a separate image instance and was able to resize it but the text (because it's set to word-wrap) makes the text just wrap instead of becoming static.

So, how do you turn a dynamic text box into a static textbox through scripting or other means?

View Replies !    View Related
Need Tutorial On Dynamic Text Boxes
i just need to see something that will show me how to load text into a text box. the easier and simpler, the better!
any links? i've been searching around a little but no luck!

jeremy
http://onetruth.com

View Replies !    View Related
Scrolling Dynamic Text Boxes?
I am trying to figure out how to make a dynamic text box scroll. If anyone can help me, or knows of a good tutorial site, that would be great.

Thanks

View Replies !    View Related
Dynamic Text Boxes Probably Simple But?
I want to create an text box where the menu titles can be updated easily without clicking through movie clips and frames to change the titles at the top of the screens!!

I know I can do this dynamically but I am not sure how can anyone help!!!!

View Replies !    View Related
Tracking In Dynamic Text Boxes
Hi all,

Does anyone know if you can set tracking on dynamic textboxes? When i set the textbox to be dynamic the tracking option becomes grayed out. I have some text that looks very cramped as it is and could do with some spacing... any ideas?

Thanks in advance,

Pete.

View Replies !    View Related
Question About Dynamic Text Boxes
Ok I am making a scrolling text box. Pretty simple, I know about turning the html on in the text options to enable tags and such. But i did have a question about this.

I was wondering, is it possible to create a table/a straight line within a scrolling box? (the tag is <hr>.) Whenever I try, it comes out blank, so I figure you couldn't, or maybe you guys know something I don't. If this is at anyway possible, someone share!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved