How to change the color of text to an swf file

Hello:
In a menu of four options (each option is only text) I would
like to change
the color of the text that is clicked., the menu is a group.
Can you hep me
please?
thank you

Anne wrote:
> Hello:
> In a menu of four options (each option is only text) I
would like to change
> the color of the text that is clicked., the menu is a
group. Can you hep me
> please?
> thank you
>
>
Assuming each option is an individual text member in its own
sprite...
on mouseEnter me
cursor 280
sprite(the currentSpriteNum).color = rgb(255,0,0)
end
on mouseLeave me
cursor -1
sprite(the currentSpriteNum).color = rgb(0,0,102)
end
on mouseDown me
sprite(the currentSpriteNum).color = rgb(0,0,0)
end
on mouseUp me
cursor -1
sprite(the currentSpriteNum).color = rgb(0,0,102)
go to frame "StartMovie" of movie "Chapter1" -- or whatever
you want
to do here
end

Similar Messages

  • May I know how to change the color of texts inside the indicator box?

    Can anyone tell me how to change the color of texts inside the indicator box? I have tried to use property node but not really know how it functions.
    In fact, I am writing a program for which the number inside indicator on front panel will show red color if the measured value can't reach the requirement. I am using LabView 6.1 Professional
    Thank You for your attention!!!!!!

    Simply use a property node with "NumText.TextColor" and wire the correct color depending on your test result.
    The attached simple example (LV 6.1) lets you change it from the front panel. In your case, you would use your test output instead of a FP switch, of course. Message Edited by altenbach on 05-25-2005 09:05 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    TextColor.vi ‏18 KB

  • How to change the color of text but only when that text is highlighted

    I am NOT asking how to change the highlight color OR how to change the text color generally, but rather, how to change the text color as it shows onscreen while it is highlighted. Here's where I'm going:
    Text is ordinarily black (assume) such as when the Finder is open or when viewing a list of all emails in an inbox.
    Let's say I change the highlight color systemwide, in prefs > appearance > highlight color, to a custom color ("other") of black (for example).
    In certain programs (mail, billings, iBank, addressbook, even the Finder), when I highlight a line of something, (like when I one-click on an email or a file name just to select it but not open it), the line will highlight in black, but the text of that line will automatically change to white so it can be seen.
    However, when I highlight actual text (click and drag or double click), such as when editing a document in Pages and selecting a word, line, paragraph, editing an email, etc., the highlight is black, and the text remains black also, which means it cannot be seen (black on black).
    So, how do I change it so that when I highlight the actual text the text color changes to white, then when it is de-selected, it goes back to black.
    I'm not afraid to do a little terminal/command line, but only if it’s a little. Hope this gives enough detail.
    Thanks.

    You can use span HTML tag.
    For example, if your label is "Product Name", and you want it to appear in red, you can type this:
    <span style="color:red">Product Name</span>Hope it helps.
    Ravi

  • I have tried everything! How to change the color of text based on value Acrobat 9

    How can I change the color of the text to red if the value is "Unacceptable" and leave it green for all other rating values? Where can I put it for it to work? Also, Unacceptable is set to an export value of 0.
    var n = +this.getField("NumericSummaryRating").value;
    var a = +this.getField("Rating1.0").value;
    var b = +this.getField("Rating1.1").value;
    var c = +this.getField("Rating1.2").value;
    var d = +this.getField("Rating1.3").value;
    var e = +this.getField("Rating1.4").value;
    if (n == 0) {
        event.value = "Not Rated";
    } else {
    if (a==0 || b==0 || c==0 || d==0 || e==0) {
        event.value = "Unacceptable";
    else {
        if (n>0 && n < 3.0){
            event.value = "Unacceptable";
        else if (n >= 3.0 && n < 3.6) {
            event.value = "Successful";
        else if (n >= 3.6 && n < 4.6) {
            event.value = "Excellent";
        else if (n >= 4.6) {
            event.value = "Outstanding";

    You can add this at the end of the code:
    if (event.value=="Unacceptable") event.target.textColor = color.red;
    else event.target.textColor = color.green;

  • How to change the color of text in Teat Area

    Pls tell me how can i print two different lines in two different colors inside the same text area.
    Because whenever i set the color it sets the color for the complete text area.
    I want to print "Hello..." with color red and "Hi..." with color green in the same text area.
    Pls help me out...

    hi,
    u should use swing component JTextPane instead of textarea to change the color of the text.
    for eg:
    JTextPane textPane;
    JScrollPane panescrollpane;
    textPane=new JTextPane();
    panescrollpane=new JScrollPane(textPane);
    panescrollpane.setVisible(true);
    String[] initString =
    request+newline
    String[] initStyles =
    { "regular"
    Style def = StyleContext.getDefaultStyleContext().
    getStyle(StyleContext.DEFAULT_STYLE);
    Style regular = myClient.textPane.addStyle("regular", def);
    StyleConstants.setFontFamily(def, "SansSerif");
    StyleConstants.setForeground(regular,Color.orange);
    Document doc = textPane.getDocument();
    try {
    for (int i=0; i < initString.length; i++) {
    doc.insertString(doc.getLength(), initString,
    textPane.getStyle(initStyles[i]));
    } catch (BadLocationException ble) {
    // System.err.println("Couldn't insert initial text.");
    Hope this helps..
    regards,
    Kalpana.

  • Tabular Forms - how to change the color of text when the field is disabled

    Hi,
    I have a tabular form and some of it's columns are disabled showing text in grey color...
    is there a way to change the color to black and bold the text...?
    thanks

    Okay, i've taken a look at your example.
    The column formatting does not work on the input fields. The help on the item says that it generates a span with a style attribute. This would work for a display field, not for an input field.
    Css like i've written should be in the style tags, put up in the header section of the page (page -> edit -> header region).
    You've already put script tags there, the style tags go there aswell. You shouldn't even need to put your script tags in the header region. Just put your code up in the javascript functions region (without the script tags).
    However, i tested in firefox and here color works on an input field, changing the font color. In IE it does not do this. Cross browser implementations and such, not much to do about it here. See http://stackoverflow.com/questions/602070/changing-font-colour-in-textboxes-in-ie-which-are-disabled.
    I did notice that you build your form with a bunch of input fields, which you disable through javascript in the footer of the region. Then on submit, you set the disabled to false again for all those fields! If you want those fields to always be submitted to the server, why wouldn't you use the readonly attribute? Readonly fields are always submitted, and can't be edited by the user. Plus, readonly fields CAN be styled however you want! You can get rid of the javascript code in your header then.
    Even the javascript in the footer is not necessary. If you just add 'readonly="true"' (without single quotes) to the element attributes of your items (edit column -> column attributes region) = no javascript at all (less maintenance).

  • How to change the color of text highlight

    I'm trying to select and highlight certain text in the PDF. Here's my sample code. I want to change the color of the highlighted text. Something similar to what the Highlight Text tool does in acrobat.
    HiliteEntry hilite;
    hilite.offset = 10;  //Highlight the tenth word
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView(currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
    PDColorValueRec red;
    red.space = PDDeviceRGB;
    red.value[0] = ASInt32ToFixed(1);
    red.value[1] = 0;
    red.value[2] = 0;
    // highlight
    AVPageViewSetColor(currentPageView, &red);
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDTextSelect textSelection = PDTextSelectCreateWordHilite(pdPage,&hilite, 1);
    AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"),(void *)textSelection, true);
    AVPageViewDrawNow(currentPageView);
    AVDocShowSelection (currentAVDoc);
    PDPageRelease (pdPage);
    If this is not possible, at least can I change the font color or underline the text?
    Appreciate any help!

    Thanks a lot for the help so far. So I was successfully able to crate a highlight annotation from text selection. Here's my code, if anyone else get similar questions.
    Only one more question. in my highlight annotation, I get two rounded half circles from the left and right sides. Not sure why?
    HiliteEntry hilite;
    hilite.offset = 50; // highlight starting 50th word
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView(currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
    PDEElement pdeElement;
    ASFixedRect boundingRect;
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDAnnot pdAnnot;
    PDColorValueRec red;
    red.space = PDDeviceRGB;
    red.value[0] = ASInt32ToFixed(1);
    red.value[1] = 0;
    red.value[2] = 0;
    // highlight
    AVPageViewSetColor(currentPageView, &red);
    PDTextSelect textSelection = PDTextSelectCreateWordHilite(pdPage,&hilite, 1);
    AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"),(void *)textSelection, true);
    AVPageViewDrawNow(currentPageView);
    AVDocShowSelection (currentAVDoc);
    // make text selection and get the bbox of the selection.
    PDTextSelect selectedText = static_cast<PDTextSelect>(AVDocGetSelection(currentAVDoc));
    PDTextSelectGetBoundingRect(selectedText,&boundingRect);
    // use the bbox to create a highight annotation QuadPoints
    CosObj ArrayObj, RecObj;
    CosDoc cd = PDDocGetCosDoc(currentPDDoc);
    CosObj cosPage = PDPageGetCosObj(pdPage);
    ArrayObj = CosNewArray(cd,false,8);
    CosArrayPut(ArrayObj,0,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(ArrayObj,1,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(ArrayObj,2,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(ArrayObj,3,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(ArrayObj,4,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(ArrayObj,5,CosNewFixed(cd,false, boundingRect.top));
    CosArrayPut(ArrayObj,6,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(ArrayObj,7,CosNewFixed(cd,false, boundingRect.top));
    // for the Rect. Highlight annotations don't require, but API call to create annotation requires this key
    RecObj = CosNewArray(cd,false,4);
    CosArrayPut(RecObj,0,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(RecObj,1,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(RecObj,2,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(RecObj,3,CosNewFixed(cd,false, boundingRect.top));
    CosObj cosDict = CosNewDict(cd, true, 4);
    CosDictPutKeyString(cosDict, "Subtype", CosNewNameFromString(cd, false, "Highlight"));
    CosDictPutKeyString(cosDict, "QuadPoints",ArrayObj);
    CosDictPutKeyString(cosDict, "Rect", RecObj);
    pdAnnot = PDAnnotFromCosObj(cosDict);
    PDPageAddAnnot(pdPage,-2,pdAnnot);
    PDPageNotifyContentsDidChange(pdPage);
    PDAnnotSetColor(pdAnnot, &red);
    AVPageViewDrawNow (currentPageView);
    PDPageRelease (pdPage);

  • How to change the color in text box item.

    Hi,
    There is a text box where i am returing the value using item source SQL and Always replacing.
    I have a condition like this if value is > 10 value must appear in red else white.
    Eg:
    select
    case
    when TO_NUMBER(:P122_PRJ_SV_PROJECT_USL) > TO_NUMBER(:P122_GSD_SV_PROJECT_USL) then
    '<span style="background-color:RED">'|| PO.EV_UCL || '</span>'
    else
    '<span style="background-color:WHITE">'|| PO.EV_UCL || '</span>'
    end
    from projects po
    this is not working please suggest me how to change.
    Thanks
    Sudhir.

    Sudhir
    Please repost your source code with {noformat}{noformat} (with the curly brackets and in lower case) above and below it.
    Cheers
    Ben                                                                                                                                                                                                                                                                                                                   

  • KdeGraphics-Okular - How to change the color of Text Selection tool

    Hello All
    I'm trying to know how to change/fix the color of the Text Selection Tool (Ctrl + 4). Because when I highlight the text, it's only one color (Dark Blue) that make me could not read clear.
    ---- My OS Configuration
    OS : Arch
    DE: LXDE
    WM: OpenBox

    The highlight color is determined by the system-wide color scheme that you're using. There's no way to change it only for okular.

  • How do I change the color of text in Messages?

    How do I change the color of text in Messages? It was easy to do before, but I can't seem to find it after the upgrade.. is it a hidden menu option?  The gray text is really annoying.

    Two possible ways are available
    Set the text with and html text string like "<html><font color-red>" + text + "</font></html>"
    or get the cellrenderer, cast to the DefaultCellRenderer and call setForeground or background or implement or your own cellrenderer to do the custom coloring (this could maybe depend on indexes)
    ICE

  • How to change the color of the text field of form

    Hi ,
    Is there any way to change the color of the text field of the form........
    Thnx in advance .......
    Cheers,
    Eman

    Hi Bob. I'm new to these forums and I'm not sure of protocol and exactly how this is supposed to work, so If I'm doing this wrong then please excuse me and let me know.
    I liked you solution on 'How to change the color of an Item on a form' using <blink>.
    I'm new to this application and coding as well so its kind of foreign to me.
    Working on a Report Page,
    I would like to have item, :P1_JOB_NO blink when the difference between sysdate and :P1_DATE_DUE < 7 days.
    I can identify the job_no which should blink by using the sql statement:
    SQL> select job_no from oax_projects07 where
    2 (sysdate - date_due < 7) and
    3 emp_name = 'GARY PILKENTON';
    JOB_NO
    20060627 050
    But I dont know the proper syntax to make it blink,
    or when to plug the syntax into.
    ie, is it a process, a validation, etc.
    Do you have any advice for me?

  • How do you change the color of text messages?

    Can you change the color of text messages?  If so, how?

    Two colors. Blue and green.
    Green is for text message. Blue is for iMessage. You can't change these, though.

  • How to change the color for HTML words in JEditorPane?

    Hi Sir,
    In the JTextPane , we could change the word's color by using:
    Style style = doc.addStyle("test",null);
    StyleConstants.setForeground(style, Color.red);
    doc.setCharacterAttributes(10,20,syle,true);
    we can change the text into red color,which range is from 10 to 30.
    But how to change the color for HTML words in JEditorPane?

    Hi,
    you can use an AttributeSet to apply the foreground color. Let's say, doc is a HTMLDocument, then SimpleAttributeSet set = new SimpleAttributeSet();
    doc.getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D"); would apply a color to a given AttributeSet. The AttributeSet with your color then can be applied to a selected range of text in a JEditorPane by   /**
       * set the attributes for a given editor. If a range of
       * text is selected, the attributes are applied to the selection.
       * If nothing is selected, the input attributes of the given
       * editor are set thus applying the given attributes to future
       * inputs.
       * @param editor  the editor pane to apply the attributes to
       * @param a  the set of attributes to apply
      public void applyAttributes(JEditorPane editor, AttributeSet a) {
        ((HTMLDocument) editor.getDocument()).getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D");
        editor.requestFocus();
        int start = editor.getSelectionStart();
        int end = editor.getSelectionEnd();
        if(end != start) {
          doc.setCharacterAttributes(start, end - start, a, false);
        else {
          MutableAttributeSet inputAttributes =
            ((SHTMLEditorKit) editor.getEditorKit()).getInputAttributes();
          inputAttributes.addAttributes(a);
      } Ulrich

  • Change the color of text item after execute query

    Dear friends
    I would like to know how can I make a tabular form like grid and chang the color of text item when (for exp in emp table) the value of sal column between 2000$ and 4000$.
    I used the SE_IEM_PROPERTY command but it change all of the text items of sal column.
    please help me
    thanks a lot

    Highlight the Existing Record in Forms
    (Compatible with 4.x, 5.x, 6.x & 9i)
    Step 1: Create a New Visual Attribute(BLUE_VA) (Color of highlighted record)
              Font – Arial
              Size – 8
              Style – Plain
              Font width - Normal
              Font Weight - Bold
              Foreground Color – Black
              Background Color – Blue
              Fill Pattern – Transparent
    Step 2: Create another Visual Attribute (WHITE_VA) (Default Color of the record)
              Font – Arial
              Size – 8
              Style – Plain
              Font width - Normal
              Font Weight - Bold
    Foreground Color – Black
              Background Color – White
              Fill Pattern – Transparent
    Step 3: Add Following code to Block-level Trigger WHEN-NEW-RECORD- INSTANCE, POST-BLOCK
    (Add to the block, which has these records)
    -- Following code will only highlight an item
    DISPLAY_ITEM(<block_name>.<item_name>,'BLUE_VA');
    -- Following code will highlight complete Record (ref: DISPLAY_ITEM example)
    DECLARE
              cur_itm VARCHAR2(80);
              cur_block VARCHAR2(80) := :System.Cursor_Block;
    BEGIN
    cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
    WHILE ( cur_itm IS NOT NULL ) LOOP
    cur_itm := cur_block||'.'||cur_itm;
    Display_Item( cur_itm, 'BLUE_VA');
    cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
    END LOOP;
    END;
    Step 4: Add Following code to Block-level Trigger PRE-RECORD, PRE-BLOCK
    (Add to the block, which has these records)
    -- Following code will only highlight an item
    DISPLAY_ITEM(<block_name>.<item_name>,'WHITE_VA');
    -- Following code will highlight complete Record (ref: DISPLAY_ITEM example)
    DECLARE
              cur_itm VARCHAR2(80);
              cur_block VARCHAR2(80) := :System.Cursor_Block;
    BEGIN
    cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
    WHILE ( cur_itm IS NOT NULL ) LOOP
    cur_itm := cur_block||'.'||cur_itm;
    Display_Item( cur_itm, 'WHITE_VA');
    cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
    END LOOP;
    END;
    I am using the above code in one of my forms and I so far haven't seen any problem

  • How to change the color of a font/sentence ?

    what is a quick and easy method to change the colour of a sentence?
    thanks!!!

    what are you asking here?
    i'm confused because your questions is so simple
    the answer is to set the color of the text before you render it out
    if you're asking how to change the color AFTER it's in an image, well you can't, not by using the API anyway, you'll have to do some magic

Maybe you are looking for

  • How to download all columns in analytics

    Hi, We are  using obiee 10g. In criteria we are having 10 columns. but in results we are displaying only 8 columns. Out requirement is when we download excel/cvs, we need to  get all the 10 columns. Please let us know. Thanks

  • Add button to SNC screen

    Dear Experts, I have a requirement in SNC system. Requirement: Add a new button on screen Due List for Purchasing Documents, if we click on the button it has to open a new screen where we should have a file browse filed, browse and upload buttons to

  • IPhone 3GS to iPhone4

    Hi, I know it might sound a little stupid, but is there a chance that I can replace my iPhone 3GS with iPhone4. I purchased 3GS a month ago, and now I feel I should have waited for iPhone4. Is there going to be some offer in which I could give back m

  • Blob-error

    What might be wrong if I get this exception while saving a gif image in a blob field. Can somebody give me a sample code. ORA-01461 can bind a Long value only for insert into a long Col. Thanks

  • Recording mic problems!!!!!

    I dont know if anyone has experienced this yet, but it really bothers me. So i like to record some rough acoustic guitar tracks through garage band just using the internal mic on my MBP. It actually doesn't sound to bad normally. But when i was doing