PDA

View Full Version : Changeing font to "bold"



g_rochford
December 14th, 2006, 10:43 AM
Hi

I am loading some text from an external .txt file into a dynamic textfield in Flash. Does anyone know how I can change the paragraph headings to bold I've tried putting <b> </b> around the headings but it doesnt seem to work.

However the <p> </p> paragraph settings do? very confused.

Thanks

Greg

Sinister Rouge
December 14th, 2006, 10:47 AM
<b></b> should work, just ensure that the text box is set to interpet html...

g_rochford
December 14th, 2006, 11:44 AM
Is that the check box in the middle of the three next to where it say Multiline. When i hover over it it says Render Text as HTML?

I have had this button pressed all along
:cross-eye

g_rochford
December 14th, 2006, 12:10 PM
this is the code im using to load the external .txt file

loadText = new LoadVars();
loadText.load("main.txt");
loadText.onLoad = function() {
main.html = true;
main.htmlText = this.main;
};

scotty
December 14th, 2006, 01:03 PM
Try this: make a 'dummy' textfield where you have bold type of your font embedded.

scotty(-:

g_rochford
December 14th, 2006, 03:28 PM
Hi Scotty

If i check the Bold button in the text field i get the bold headers but nothing else?

this is what i want to write

main=<b>December 12, 2006</b><br />
Phil's new album Joy is set for release on March 12, 2007. The first single will be Cold Engines. You can hear the entire album on the jukebox. EnJOY!</p>
<p><b>December 7, 2006</b><br />
Phil has just finished recording his new album Joy which will be released in March 2007. Prior to this, Phil will tour Scotland and the UK in January and February, so please be sure to check the site for updates and news on gigs.</p>

Any thoughts

Greg

rhamej
December 14th, 2006, 05:37 PM
Here is what scotty meant =)

scotty
December 15th, 2006, 04:02 AM
thank you, rhamej;)

scotty(-:

g_rochford
December 15th, 2006, 08:47 AM
Thanks for all your help guys. Unfortunately that doesn't seem to make any difference. I should probally have explained it a bit better but i didnt think it would matter.

My text field is sitting inside a movieclip under a mask because i am using dragable scroller method thingy that i got of junkerjorg

heres what im working with at the moment

scotty
December 15th, 2006, 10:12 AM
It works, rhamej just forgot to embed the font...

scotty(-:

g_rochford
December 15th, 2006, 12:25 PM
Halalujhah!!!

Thanks scotty and co. Your help as ever is much apprieciated!

rhamej
December 15th, 2006, 12:40 PM
It works, rhamej just forgot to embed the font...

scotty(-:
whoops :-/

scotty
December 15th, 2006, 12:52 PM
Halalujhah!!!

Thanks scotty and co. Your help as ever is much apprieciated!
you're welcome=)