Groups > Multimedia > Macromedia Authorware > Re: Changing Text Color Through Scripting?




Re: Changing Text Color Through Scripting?

Re: Changing Text Color Through Scripting?
Thu, 28 Feb 2008 09:03:34 -060
"Mike P" <webforumsuser@macromedia.com> wrote in message 
news:fq5vdj$8jt$1@forums.macromedia.com...
> Is it possible to change the color of a text field within a display icon
> through scripting ?
>
> Basically using a calc icon I want to display text within a display icon 
> and
> change the text color as well. Ideally I would like to use authorware's 
> RGB
> function to change the text colour.

No.  You have two choices.  The first is something like this:



the  text would be red
 would be blue
 would be green.

Then:
varRed := "This is some text"
varBlue := varGreen := ""

Your text would be red if Update Displayed Variables was checked on the 
icon.

You can also use RTF Objects, which will allow you to set font color using 
named colors or hexadecimals.

HTH;

Amy 

Post Reply
Changing Text Color Through Scripting?
Thu, 28 Feb 2008 09:37:55 +000
Is it possible to change the color of a text field within a display icon 
through scripting ?

 Basically using a calc icon I want to display text within a display icon and 
change the text color as well. Ideally I would like to use authorware's RGB 
function to change the text colour.

 Any help greatly appreciated. Thanks in advance.


Post Reply
Re: Changing Text Color Through Scripting?
Thu, 28 Feb 2008 10:48:49 -050
This looks interesting

Post Reply
Re: Changing Text Color Through Scripting?
Thu, 28 Feb 2008 20:06:57 +000
I have been working on my own display engine that allows you to dynamically 
display text with various fonts, styles, colors and even opacity. As Dave 
mentioned you can find it at http://www.writewell.ca/index.php/atre . Fell free

to try it out and message me offline if you need any help or have any questions

about it.

 Jason Stewart
Post Reply
about | contact