Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the dynamic text field font style to italic

Status
Not open for further replies.

ColdFusionKing

Programmer
Dec 5, 2002
145
GB
Hi all, I have a dynamic textfield in a movie clip. The flash movie loads a text file and displays the contents of a html file in a dynamic text field. I want to change the font style to Italic (<i></i>), meaning I want to display the content read into the dynamic text field in the italic style. I can't get it to display it in italics even if I click on the italic tooglebar in the textfield properties menu. Does anybody know why this might happenn. Can somebody show me how to do this in action script. I've given the dynamic text field the name &quot;article_body&quot;, but have not given it a instance name.
 
Can you post a link to your .fla along with your text file, or at least a mockup, recreating the set up?

Regards,

cubalibre2.gif
 
I found it on this site.


Someone posted a question in another forum and attached the above link.

Open the fla, open the movie clip called &quot;content&quot; (right click on &quot;loading content&quot; and select &quot;Edit in new Window&quot;, you'll see a movie clip on frame 2, I opened the movie clip in another window and selected the italic toogle bar under properties for the dynamic text field, but I text displayed is not displayed in italics. Hope this helps
 
Disable the html tab (<>) and set the italic tab (I).

Regards,

cubalibre2.gif
 
Hi I did what you asked me to, now it does display the text in Italics. However there is a problem. In the html file (the file containing the content), I have a number of <br> tags

&article_content1=Some sample text <br> Some more sample test&
&article_content2=Article 2 sample text <br> This is a news article&
&no_of_feeds=2&

When I publish the flash, I see <br>'s displayed on my page, How do I get round this problem? If I remove the <br> tags and use the enter key, I see an additional line break. This is how the above text is displayed

1)
Some sample text
<!-- I don't want this additional line break -->
Some more sample test

2)
Article 2 sample text

This is a news article

I want to display it like this

1)
Some sample text
Some more sample test

2)
Article 2 sample text
This is a news article

Can you think of something?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top