Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2005, 09:04 PM
Authorized User
 
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic text

I used the text tool (selected Dynamic text) and open a dynamic text box. I don't want to type my text directly into the text box. I want to add the following code to the first frame which will place the text in the dynamic text box, but you can't see it there until you play the movie. Here is the code:

Code:
myTextField.html = true;
myTextField.multiline = true;
myTextField.htmlText = "Lots of text goes here<li>Absense</li><li>Absense2</li>and more text goes here";
This works just fine, but I don't know how to code it when I want to change the color of a piece of text, such as the bullet points or any other text. I tried blah, blah but that doesn't work and gives an error message. Any ideas?

Rudy
__________________
Rudy
 
Old January 4th, 2007, 12:56 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hai,
Try with this code, this will work fine for you.

myTextField.html = true;
myTextField.multiline = true;
myTextField.htmlText = "Lots of text goes here<li>Absense</li><li>Absense2</li>and more text goes here";


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic text Lofa PHP How-To 3 October 20th, 2006 12:34 AM
Dynamic Text in Label funnylearning .NET Framework 2.0 2 September 18th, 2006 12:59 PM
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
Dynamic text... need help Varg_88 JSP Basics 3 August 30th, 2004 06:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.