Old 14-01-2004, 07:16   #1 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
dynamic text help

Hi there,

i have this problem at the moment with text boxes, (i don't even know if it can be done. but here goes:

can you create a 2 dynamic text box, one with text already in, and the second text box the user fills in, but this adds the entered text into the first filed but in a certain position.

example

Top bosses at newcastle united were left red-faced last night when manager


the bold text been what the user has filled in.

cheers if anyone can help.
  Reply With Quote
Old 14-01-2004, 08:34   #2 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,728
yes.. its called input text...
  Reply With Quote
Old 14-01-2004, 09:42   #3 (permalink)
andycogbill
Notorious?
 
andycogbill's Avatar
 
Join Date: Nov 2003
Location: Middlebury, VT
Posts: 417
Send a message via AIM to andycogbill
Quote:
Originally Posted by mid-ori
Hi there,

i have this problem at the moment with text boxes, (i don't even know if it can be done. but here goes:

can you create a 2 dynamic text box, one with text already in, and the second text box the user fills in, but this adds the entered text into the first filed but in a certain position.

example

Top bosses at newcastle united were left red-faced last night when manager


the bold text been what the user has filled in.

cheers if anyone can help.

okay, well, i can help you start anyway. i know flash mx has a get selection feature (as in, you can tell what words are selected in your dynamic text box.) from there i assume you can get your position, and then use the input text and split the dynamic text string at the selection point (myString.split(blah)), then concatenate the three strings like this:

myString[0] + myTextBox.text + myString[1]

or something like that. might wanna look up methods and stuff, plus find a way to get the selection dealy. i know there is one.
  Reply With Quote
Old 14-01-2004, 11:15   #4 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
cheers for the help, i now at least what direction to look in
  Reply With Quote
Old 14-01-2004, 11:21   #5 (permalink)
flatcat
beauty through chaos
 
flatcat's Avatar
 
Join Date: Jul 2003
Location: Vancouver, British Columbia
Posts: 768
or you could just have your text block then an __________________ and make all the ______________ input text boxes. as gray was trying to _____________ out.
__________________
audentes fortuna iuvat
Flatcat
  Reply With Quote
Old 15-01-2004, 09:33   #6 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
yeah, but what i'm doing is asking questions before. then adding there answers into a story, but its sorted now just got another problem.

and it is

I'm doing a mock up news paper article over 4 columns in flash mx and the text loads in dynamically. I have 4 dynamic text boxes sitting side by side, can you have it so when the text has got to the end of one text box it then continues over the next text box and so on.

Thanks for any suggestions
  Reply With Quote
Old 28-01-2004, 13:02   #7 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,264
Quote:
Originally Posted by mid-ori
I'm doing a mock up news paper article over 4 columns in flash mx and the text loads in dynamically. I have 4 dynamic text boxes sitting side by side, can you have it so when the text has got to the end of one text box it then continues over the next text box and so on.

try this http://www.flashcomponents.net/compo...m?nav=2&id=178
  Reply With Quote
Old 31-01-2004, 09:14   #8 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
cheers, i did try this but you can make the text dynamic. but i found a answer on flashdevils, to see how it works go to http://www.codemasters.co.uk/managers2004/oi.php
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8