Reply LinkBack Thread Tools Search this Thread
Old 24-08-2005, 11:45   #1 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
underlining text in flash! please help, im whack.

Hey!

Im updating this website which was all done in flash, at which im not great. The client wants all the links underlined. I CAN'T DO IT! Im seriously about to throw this computer out of the window, surely it should be as simple as making text bold or italic?! If anyone can come to my rescue and ill be extremely grateful, not to mention my computer.

I've even tried drawing lines manually!

Thanks,
  Reply With Quote
Old 24-08-2005, 12:24   #2 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,572
Don't think you can use underline in Flash. Its probably to stop people underlining text that isn't linked.
  Reply With Quote
Old 24-08-2005, 12:36   #3 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
bugger! yeah ive spoke to quite a few people and googled for the cure but no luck so im guessing its not possible. But if anyone has any evidence to the contrary i would really love to know.
  Reply With Quote
Old 24-08-2005, 12:37   #4 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,839
could do it using a dynamic text field and use something like this

Code:
function underlineTextField(theTextField) { var underlinedText = new TextFormat(); underlinedText.underline=true; theTextField.setTextFormat(underlinedText); theTextField.setNewTextFormat(underlinedText); } underlineTextField(yourText);
  Reply With Quote
Old 24-08-2005, 12:39   #5 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,572
Quote:
Create your underline text in another program, such as Paint Shop Pro or Photoshop, and importing the “object” to be used in Flash.
Might work.

http://answers.google.com/answers/threadview?id=510427
  Reply With Quote
Old 24-08-2005, 13:03   #6 (permalink)
FakeFrench
Fool
 
FakeFrench's Avatar
 
Join Date: Jun 2005
Location: Finsbury Park, London
Posts: 66
Quote:
Originally Posted by gray
could do it using a dynamic text field and use something like this

Code:
function underlineTextField(theTextField) { var underlinedText = new TextFormat(); underlinedText.underline=true; theTextField.setTextFormat(underlinedText); theTextField.setNewTextFormat(underlinedText); } underlineTextField(yourText);

thats great thanks! all i need to do now is limit it so it only underlines the links in the dynamic textfield. Am trying to figure it out now but if anyone knows how to do this it would be fantastic! thanks.
  Reply With Quote
Old 24-08-2005, 17:10   #7 (permalink)
y498
Stupid Shit since 1982
 
y498's Avatar
 
Join Date: Feb 2005
Location: Calgary, Alberta, Canada
Posts: 152
First things first, are what you are trying to underline in a body of text, or a actual flash button?

If they are in a body of text you can just change that using css and inserting the next as html or xml, if they are buttons, i would recommend making a graphic file that is the underline and placing it in each button file (adjusting the length accordingly) - time consuming, but prolly the fastest way to do this...

Cheers

email me the FLA if you want, ill take a look (michaeltighe@gmail.com)
  Reply With Quote
Old 26-09-2005, 03:06   #8 (permalink)
meatcake
Registered User
 
Join Date: Sep 2005
Posts: 4

so it underlines only links?
make the textFIeld HTML = true;

myTextField.html = true; //or select the textFIeld on the Stage, and press the '<A>' thing, which will make the textField html=true;


now that it's html=true, you can stick all kinds of html into the textFIeld, including <b> <i> <br> <p> <a href>click me </a> and the ubiquitous <u>underlined</u> tags etc.

the links will be the default underlined link-looking blue colored thing.

Now that you know that^
did you know you can make a flash movie of 800wide x 1000 high which contains one single BIG textField covering the whole Stage.
then make a CSS style sheet.
and fill the entire thing up with HTML loaded from somplace else, just like you would in any other page?
hmmm....mikey, he's such a smarty, where did he come from? we don't know.

that's how ya make 'all-flash' sites look like hybrid sites.
it's also how to make a flash site search-spider-able... shhhh....heehee
  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