HtmlText color change

I have a text field (expertAnswer) inside a swf. It is not
dynamically generated. In the doc class, expertAnswer is given a
value via :
expertAnswer.htmlText = "some interesting text";
Now, I've looked at the livedocs for incorporating html
changes to the text, and the code for changing the color of, say,
the word 'interesting', should be: "some < font
[color='#ff0000]>interesting</font> text.";
What actually happens is the text cuts off after "some". I do
not know why this is happening. I can get an underline to work just
fine, but the color eludes me.
My relevant imports are TextField and TextFormat. I do NOT
have import fl.controls.TextArea; but I am not sure this is
necessary. And, when I did import fl.controls.TextArea; the whole
swf went on a reload loop binge for some reason.
Ahy idea why the font color code is not working? Thanks!
-dE

quote:
Originally posted by:
Jamesabth
Why have you wrapped color='#ff0000' in square brackets and
not closed the quotation marks? Have you also done this in your
code?
Well, to that I can only say that's the format presented to
me in the livedocs, which I found here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808
So yes, they are in brackets. Is this not generally done? I
tried using the code without the brackets as well, and that did not
work.
Ah, sorry, they are indeed closed in the code. So it would
be:
expertAnswer.htmlText="Some <font
[color='#ffd800']>interesting</font> text.";

Similar Messages

  • Disabled color change...

    Hello everybody,
    this is my first comment here because for all other problems I found solution without registration
    Anyway I was looking how to disabled color change (just some part of sentence) which should be highlighted, example is right here (it's part of topics in rpg game):
    Tell me some rumours
    I killed the dragon (quest)
    Goodbye
    In the init. state text "I killed the dragon" is black and text "(quest)" is yellow. Highlight color is red :
    mc_Topics.mc_topic0.tField.textColor = 0xb21d22; // init. state highlight first topic
    Now if I want highlight sentence with "(quest)" it's make this (simple) :
    mc_Topics["mc_topic" + Index].tField.textColor = 0xb21d22;
    but it will highlight of course all sentence by red color even if I want to quest word stay yellow.
    I know I can make it somehow like this for highlight :
    mc_Topics["mc_topic" + index].tField.html = true;
    mc_Topics["mc_topic" + index].tField.htmlText = lowerCase + "<FONT COLOR = '#695f49'><FONT SIZE = '24'>" + quest + "</FONT></FONT>";
    But problem is that in function where I'm setting highlight I dont know variables for text (lowerCase) and quest (there can different text).
    Thanks for any suggestion : )
    Adam

    Yes you right I didn't realize that I can still get them from array. It's little complicated as it is time-input from game anyway it seems that it's solution. Thanks

  • ICal Calendar Colors Changing On Their Own; iCloud Connection

    AGGRAVATING PROBLEM:
    Many in this forum have written recently about a problem ongoing for people with multiple iCal calendars where iCal calendar colors change "automatically" when you haven't selected those colors, or even "change back" before your eyes to some color your DIDN'T select after you select a new one.  If you log into iCloud on the Web and try to change the color of certain calendars, they refuse to change.  Try as you might, the color you want for your calendar won't "stick" and it is forced to be the wrong color on all your devices.  In some cases, even the names of some of the calendars cannot be changed.  On other calendars in your list, the colors and names will change fine. 
    Related symptoms:  Calendars you have deleted "come back."   Or, calendars you did not create yourself show up in your calendars list, such as "Calendar" or "Home" or even "Untitled."  Note that the problem seems to be most prevalent with calendars with names "Home," "Work," OR either of these words in the NAME of the calendar.  For instance, "Bob's Work" might get snagged (it can't be deleted without coming back or its color is stuck and "comes back"). 
    I spent a long time on the phone with a helpful Apple senior advanced specialist on this problem today.  We conducted a very large number of "experiments". Our family has two iPads, 2 iPhones, and 2 iMacs, so it was easy to rule things in or out.  I will present some information that may help.
    SOME OF WHAT APPEARS TO BE GOING ON:
    First, Apple has not resolved this.  But the problem appears to be related to iCloud, and NOT to individual devices.  After de-linking all of my individual devices from iCloud, I could change any of the colors or names at will on any given device, create new calendars and then change their colors to whatever I wish, delete calendars, change names...no problem.  However, after re-linking calendars to iCloud, all the problems mentioned above returned.  The chances that my iMacs, iPhones, and iPads are all causing the problem independently is very low. They also have slightly different OS versions on them, so it is not likely an a particular device OS, though that could be indirectly related.  Also, the colors "change back" within about the same time (usually a few seconds to up to 30 seconds) that it takes to do a "refresh" (i.e. an update) to the iCloud servers.  This when iCloud is turned on, and the absence of it when iCloud is turned off (for calendars), strongly suggests that it is the iCloud server and its interaction with your devices that the fundamental cause of the problem.
    Apple has said that they are aware of this problem and their engineers are working on a fix.  Historically, this can mean just a few days, or it could be a few months, years, or "whenever."  They don't give estimates of when it will be fixed.  Exactly WHY this is happening is unclear, but my guess is that it is a modification to the iCloud server code that Apple implemented without testing it thoroughly enough to discover this problem.  Apple does not admit to that, of course and I don't know if I am correct.
    A WORKAROUND SOLUTION THAT WORKED FOR ME:
    Please note this is a workaround and not a full fix.  Apple needs to run a patch on their iCloud server code.  Until then, I did the following which seems to have worked for me for now.  Read the whole list before deciding whether to proceed.  I don't guarantee it will work in all situations.
    Note...I found I was stuck for now with the color of ONE of my calendars.  If you are like me, you want to keep that one and work around it....
    Backup first... Make sure that your iCloud copy of your calendar data has the calendar event information you want to save - even if the color is wrong.  Log in at www.icloud.com and do a refresh to sync to the Cloud.  Check over your calendars online to make sure the event data appears to be there for all of your calendars (even if their color or name is not what you want).
    Steps:
    1.     Go to every device that you have linked to iCloud separately. Go into Settings, iCloud, and then uncheck the "Calendars" option.  This delinks your calendars for that device to iCloud.  As you do this on each device, when prompted, select "Keep On My" ..iPAD...iPhone...iMac... etc.  This will preserve the calendar information on the device so it won't be deleted.  I think this is safer, but you can click on "Delete" if you want, too.  Note - if one of your devices is an iMac, with OSX Lion and before, you may be forced (I was) to delete the iCloud calendars from the iMac.  So again, make sure they are backed up to the Cloud first (or somewhere else).
    3.     With the iCloud Calendars Option on all your devices still turned off, go to the WEB and log into iCloud.com.  You need to figure our which calendar iCloud won't let you change the color for.  You probably already know.  On iCloud.com, click on "Calendars," then click open your calendar list and select "EDIT" at the bottom of the dialog box.  One at a time, click on the color dots next to each calendar name and try to change the color (you can put any back after the test if you want). You will probably see a certain one that just goes right back to what you don't want.  This is the one for which the color is stuck, but you may be able to change the name of it now that your devices are unlinked from iCloud.
    4.     Still in iCloud.com, change the names and colors of any of the other calendars you wish to change.  Delete any empty calendars that mysteriously appeared without your wanting them.  Take note of all the calendars, names, and colors that are on the final list of calendars.
    5.     On EVERY device, BEFORE turning iCloud back on on ANY of them: Change the colors and/or names of calendars, delete calendars, etc. so that the calendar names and colors on the device are exactly the same as what you left in iCloud.com in the last step.
    6.   One at a time on each device, go back to Settings and then "iCloud" and check again the box for "Calendars."  You will be asked whether you want to "MERGE" your data with iCloud.  I selected MERGE to ensure I didn't lose anything.  Link each device again into iCloud one at a time.
    7.  When each device is back, go back to iCloud on the Web, or go into iCAL on one of your devices.  Set to view ALL calendars.  Look for duplicates of some of your events.  I found quite several as an artifact of "merging", but in my case it only took me about 5 minutes to go through quickly and delete the duplicates.  It deleted the duplicates on all of the devices at once, so I only needed to delete dups on one device.  I did not find that I lost any events as long as I kept one valid copy.
    Again, no guarantees...hope this works for others.  Good luck.

    I'm getting the same thing and it's really bugging me! Keeps changing colour to one I do not want and I have tried everything to get it to stay the colour I have chosen!!

  • Report row color change based on condition

    I have follow this forum steps Re: Color Row In Report
    Column Template 1
    <td #ALIGNMENT# class="t1data" style="background-color:#ADD8E6;">#COLUMN_VALUE#</td>
    PL/SQL expression condition
    '#2#' = 'BOOKED'
    Column Template 2
    <td #ALIGNMENT# class="t2data" style="background-color:#FFE87C;">#COLUMN_VALUE#</td>
    PL/SQL expression condition
    '#2#' = 'ENTERED'
    http://img29.imageshack.us/img29/2792/apexcolor.png
    This does color change but for some rows the colors are highlighted wrong and when i mouse over the rows , it changes to wrong color.

    Hi,
    t1Data and t2Data sound like standard theme css class names.
    In my example, the colouring is done by the style attribute on the TD tag. For "normal" rows:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data"&gt;#COLUMN_VALUE#&lt;/td&gt;for highlighted rows:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red;"&gt;#COLUMN_VALUE#&lt;/td&gt;Have you defined "t1Data" and "t2Data" in STYLE tags on your page?
    Andy

  • Why have colors change in new update?  And won't allow me to permanently change back - as they revert on their own?

    My iCal calendar colors changed by themself.  I have gone to "edit" and "get info" and have changed the colors back.  Within minutes, they change back to the wrong color.  It has now made these same changes on my iPhone 5 and iPad mini.  What's going on?  How do I permanently change these colors?

    Here are two screen shots to show you what I am seeing.  The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as).  The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue).  However when I click on the user "Orion" nothing happens.  It will not change to highlight that user.

  • Colors changing on my calendar

    What is Apple doing about supporting its clients with information on fixing the problem of colors changing on iCal?
    Is this even on their radar?

    This is actually not about the colors changing.  The colors change but it's because the appointments are being assigned randomly (it seems) to another calender like, Home, Work, Birthday.  If you uncheck the calender it will cause the events to disappear.  Check the calender again and the events reappear.
    I don't know how the other calenders got turned on and how they linked to only some events.  If you click on Calender in the upper right you'll see what is checked.  try unchecking and see if your appointments disappear.  So for Apple, please correct this issue.

  • Ical calendar colors changing birthday calendar color

    Okay, I've been using iCal for well perhaps ever ever since it started shipping in the OS. I'd like to be able to change the colors codes of calendars on an iPad 2 running the app. So far haven't found a place to do that. Suspecting it might be a mobileme thing. I've even tried that, nope no good.  Seems like the iCal app on the iPad pulls colors from somewhere as some match others don't. I looking for a consistent look for all calendars across different devices, i.e. Ipad/iPhone/Laptop desktop version of iCal.  Going to repost this same question on the iCal discussion group. Should I get a response I'll repost it here.
    Thanks,

    Mikael,
    I also used to sync to my Palm handheld. I used The Missing Sync. I still had the problem of colors changing. But, they just changed. The colors on my iPod touch calendar don't relate at all to the colors in iCal.
    Since it occasionally happened with my Palm, I don't mind having to adjust the calendars. What I don't like is that there is no way, on the iPod, to change the colors. And a few of the frequently-used calendars have ended up with the same color on my touch.
    -fred
    I expect that will come with time.

  • Outlook 2010 Calendar Category Colors Changing

    We have a user who is using Oulook 2010. He assings colors to calendar items he creates. When someone sends him a calendar appointment, he assigns it a color as well. Anywhere from immediately to about 5 minutes, the color changes on its own to a lighter
    version of the assigned color. For example, he assigns an appointment to red and it's changed to the lighter red color.
    His colors do not change when he creates appointments for himself. The colors do change when someone else sends him a calendar invite, from both inside and outside the organization.

    Hi,
    I have a few questions for you regarding your issue:
    1. Can you reproduce this issue with all of your users or just this one user?
    2. Does this happen with all colors (for example does blue change to light blue and so on)?
    3. When the color changes does the category change also?
    I look forward to your response.
    Regards,
    HARVEYY - MSFT

  • Does anyone know what to do about iCal colors changing.

    Does anyone know what to do about iCal colors changing.   Ever since ios7 came out I have many problems.  I kind of feel like Apple has become Microsoft at twice the price??  Anyway, today all my calendars (iPhone, iPad, iCloud and on my Mac) all changed colors from the customer colors I had set.  I have about 5 calendars.
    I was able to change them back on my Mac, my iphone and my ipad, but not in iCloud.   Once each of the ones I changed updates / syncs it reverts to the incorrect colors again.  I have tested back and forth, and it is definetly coming out of the iCloud.com.  The web site will not let me chance colors, so once it updates / sync, all my other devices and calendars sync to the purple in iCloud.
    I could go on and on about my frustrations with the apparent lack to testing, and the irony around Microsoft and their "bugs".  It is more important that I find a cure, as this is really annoying.
    Has anyone else seen this today

    Don't spend a lot of time trying to change it. It's an iCloud problem that's happened before, and when it happened in August it went back to the correct colors in a few days. Just be careful when you add new items to the calendar to use the right calendar (even if the color is wrong), otherwise you'll have things out of synch when the correct colors come back.

  • HT201471 I updated my iPad 2 (model A1395) to IOS 8 and all the colors changed and the photos are like negatives.  why? and how do I fix it?

    I updated my iPad 2 (model A1395) to IOS 8 and all the colors changed and the photos are like negatives.  why? and how do I fix it?

    Looks like someone changed setting in iOS8.
    Change this setting.
    Settings -> General -> Accessibility -> Grayscale or Invert Colors

  • Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    I'd take it into my local APple store and have them look at it. There may be something wrong inside your device.

  • Master slide color change?

    I'm changing the background color of a Theme, but would like that color change to apply to all master slides. I've changed one of the master slides in the theme I chose, but don't know how to apply this same color change to all of the master slides for this theme. I shouldn't have to change each master slide, right? I should be able to apply this color change to all master slides automatically?

    Select all the sides...click+shift on each slide. Or pick one slide then select all...Apple key+A. Then change your theme/master.

  • Color changes when creating PDF in Acrobat X Standard

    I'm printing to PDF from Word 2010 by using Acrobat X Standard.  Here are the two issues:
    I have overlaid two text boxes (different colors) on top of each other.  The overall image should be blue on top and bottom with tan in the middle.  When I print to PDF in Word, the PDF is perfect; however, when I print to the printer, the blue on the bottom changes to purple, while the blue on top is correct.  Again, this is the same blue text box, so I don't know why the color changes.
    Also, the tan is a darker shade than what the PDF shows.
    Is this a printer issue or PDF settings issue?
    I'm new to using Acrobat, so any step-by-step help is very much appreciated!
    Thank you.

    Create Adobe PDF is a (by default) a LOSSLESS operation where Acrobat processes the Word graphics data directly into PDF.   Printing is a LOSSY operation that first has Word convert Word->”printer spool”, then the printer driver (Adobe PDF) converts that “printer spool” into Postscript, and then Distiller converts the Postscript into PDF.   As you might imagine, you get MUCH higher quality and fidelity results from the former.
    Have you verified that you are using the same color management settings in the printer from both Word and Acrobat?  Is the Konica configured for Postscript, PCL, other?  There are SO MANY possible options that could be impacting your configuration…

  • Is it possible to do a GLOBAL color change for both text and graphics in ACrobat XI?

    I used to do this using the Pitstop Pro plugin but now Pitstop is almost $900 and this is the only thing that I would use it for, not worth the investment
    I can change text color by selecting individual text items, but I want to change all of the red text into white text
    I also need to change all of the red graphics into white graphics and I can't figure out how to do that either
    I have a trial version of XI on a Mac and will buy it if it can do what I am trying to do, i.e. global color changes to both text and graphics
    thanks!!

    I have version 6, but it is way out of date, doesn't work on my current system, I downloaded a trial version of the new one, version 12 I think, now I have to decide if I can afford to buy it, it is not cheap!
    oops, sorry, I didn't read your entire message, aargh!
    I'll check with them if I can upgrade from this early version, thanks for the suggestion!
    (edited because I didn't read properly!)

  • Trying to make a simple background color change.

    I double clicked the foreground/background black and white squares as usual. This brought up the color selector and I changed to the color I wanted. When I clicked ok the foreground color changed to a medium gray instead of the color I had selected?

    Are you in Greyscale mode by any chance? Image > Mode > Select RGB.

Maybe you are looking for