How to underline text in a rollover

Hi,
I would like to underline text (it's also a hyperlink)  that's inside mx:Text when the user does a rollover on the text.  The problem I'm having is that this mx:Text is part of an mx:List and inside of an itemRenderer.  I was trying to do a rollover inside the mx:Text and call a function inside that class, but there's seems to be a scope issue. How do I
1.) underline upon rollover
2.) access the mx:Text that's inside an itemRenderer
3.) return to the normal text upon rollout
TIA,
K4Flex

1.) underline upon rollover - set the htmlText property of the Text so the text is inside <ul></ul>
2.) access the mx:Text that's inside an itemRenderer - access the dataProvider
3.) return to the normal text upon rollout - set the htmlText property of the Text so the text is NOT inside <ul></ul>
BTW, you may need to use a TextArea, and set the border thickness to 0, and focus thickness to 0, and set selectable and editable to false, and set the size, because a Text control cannot respond to user input.
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services

Similar Messages

  • Scrolling credits - How to underline text?

    Hi there friends,
    I am currently making credit for the end of a FCE project.
    Whilst in the "Controls" tab, writing out my credits, is there a possibility of underlining some text?
    Regards,
    Chris

    I don't think there's a way to underline using that generator. If you use one of the Boris ones it's extremely simple.
    You could always copy all your text from the current generator and paste it into the Boris Crawl one if you need a quick way to underline.

  • How do I underline text in Flash?

    There doesn't seem to be any clearcut instructions on how to underline text in Flash.  I did a search and there seems to be many solutions by adding code, etc.  I tried using the Line Tool to underline some text and it shows up fine on the stage but when I preview it, the line does not show up.  Any idea why?
    Is there a simple solution on how to underline text for someone new to Flash?

    Ok I finally saw it, but that text doesn't correspond to the text that I originally typed in the text field.  I guess the code will override whatever you type on the stage, eh?  (yes) I might as well just delete what's on the stage and just use the code (yes)
    The text field had room for 4 lines.  But the code you mentioned appears to be only for 1 line.  So if I type something long, the text gets cut off (ie/ it doesn't wrap to the next line of the field).  What is the code to put a second line of text beneath the first?
    1.  make sure you're using a multiline textfield with wordwrap.  you can then use <br> to manually insert a line break or let flash wrap text that doesn't fit on one line.
    Would the only option be creating a new text field beneath the first?
    no

  • When I want to add items to the bookmarks toolbar, for example: -Zoom toolbar. The zoom Toolbar appears on the bookmarks toolbar, but it shows the favicons aswell the underlined text. I only want the favicons. How to do this, please help!!

    I want to add items to the bookmarks toolbar. for example: the Zoom Toolbar addon. This works, but not only the favicons appear on the bookmarks toolbar, aswell as the underlined text. How to avoid this?
    I only want the favicons from an addon to appear on the bookmarks toolbar, not with the underlined text. How to do this?
    This problem doesn't happen with any other toolbar. And this problem didn't happen with an earlier version of firefox. Please Help!
    Thanx, BassMann.

    If you only want the favicons and not the names of the bookmarks on the bookmarks toolbar, you can do that with the [https://addons.mozilla.org/en-US/firefox/addon/4072/ Smart Bookmarks Bar] add-on.

  • How to get the Underlined text in JTextPane

    I have a JtextPane with text say "i _like java_ it is a _good language_".
    in the above text i have made "like java" and "good language" underlined. And i have added a mouse listener to this JTextpane. the whole idea is to create a hyperlink so that when the user clicks anywhere on "like java" then i want to get the complete text("like java") where i clicked and using this text i want to do some operation. How can i get the underlined text?
    thanks.

    it was the same i question what i had posted. i didn't get reply there so i posted the same question in a new topic.

  • How to underline the text when the mouse is over the text

    I want to underline text when I move a mouse over it? Is this possible with JavaFX event listener?

    Create some text, set style-class and add it to the scene.
    Text text = new Text("Hello World!");
    text.getStyleClass().add("text");
    In a stylesheet (e.g., my_styles.css file)
    .text:hover { -fx-underline: true; }
    Add the stylesheet to the scene:
    scene.getStylesheets().add("my_styles.css");
    Or, add a listener to the hoverProperty.
            text.hoverProperty().addListener(new ChangeListener<Boolean>() {
                @Override
                public void changed(ObservableValue<? extends Boolean> observableValue, Boolean oldVal, Boolean newVal) {
                        text.setUnderline(newVal);
    Or bind the underlineProperty to the hoverProperty
        text.underlineProperty().bind(text.hoverProperty());

  • Dashed/Dotted Line instead of underlined Text

    Hi All,
    I am trying to build a component in which I need to show dashed or dotted line instead of underline for <mx:Text/> control.
    Say if I have underlined text in various places in a <mx:Text/> I want the that text should be underlined with a dashed/dotted line but not complete solid line.
    How can I acheive this...? Anyone having any ideas on this ...?
    Thanks in advance,
    Bhasker Chari

    Hi GordonSmith,
    Thank you very much for replying...I also had this thought in mind but it would be very difficult it seems because inorder to find the coordinates of each character where the underline is there and push the coordinates into an Array by traversing the whole text and after that we need to draw the lines onto th e UI using the drawing API.
    And one more thing I have observed is using the drawing API(by drawing using sprite) we need to add the sprite to the stage so we need to draw for each and every  underlined character using sprite and we need to add it to the stage.
    Say if the <mx:Text /> control is in a canvas container then we need to add sprite instance drawing dotted underline for each word and add it to the Canvas container...but this will make the positioning of the dotted line very difficult.
    Hope this makes sense....
    Thanks in advance,
    Bhasker Chari

  • Can't bold or underline text iphone 5 version 7

    How can I bold, italic,or underline text in text messages or email

    You can't format text in SMS. The stock email app doesn't support formated text either. There may be other mail apps that do. Keep in mind that, because people read email on a wide variety of devices, adding special formatting increases the chance that the email will be difficult to read somewhere along the line.
    Best of luck.

  • Underlining text in photoshop CS4

    Hello,
    I am trying to underline text using a vertical text layer.
    However, the underline button does not appear in the character panel.
    Does anyone know why?
    Thank you.

    I am not sure how you expect to underline verticle text, but the option is there in the Character Styles panel.  Look at the Faux text options towards the bottom of the panel.  Underline is second from the right before strike-through.

  • Can I move highlighted text to the comments but not underlined text?

    So I just upgraded to Acrobat from Reader yesterday so I could take notes on books for school.  I found out how to export the comments from a PDF to a new document using a JS, and have enjoyed using the following:
    // Get the comments in this document, and sort by author
    this.syncAnnotScan();
    annots = this.getAnnots({nSortBy: ANSB_Author});
    // Open a new report
    var rep = new Report();
    rep.size = 1.2;
    rep.color = color.blue;
    if (annots) {
    rep.writeText("Summary of Comments: By Author");
    rep.color = color.black;
    rep.writeText(" ");
    rep.writeText("Number of Comments: " + annots.length);
    rep.writeText(" ");
    var msg = "\200 page %s: \"%s\"";
    var theAuthor = annots[0].author;
    rep.writeText(theAuthor);
    rep.indent(20);
    for (var i=0; i < annots.length; i++) {
    if (theAuthor != annots[i].author) {
    theAuthor = annots[i].author;
    rep.writeText(" ");
    rep.outdent(20);
    rep.writeText(theAuthor);
    rep.indent(20);
    rep.writeText(
    util.printf(msg, 1 + annots[i].page, annots[i].contents));
    } else {
    var msg = "No annotations found in this document, %s.";
    rep.writeText(util.printf(msg, this.documentFileName));
    // Now open the report
    var docRep = rep.open("myreport.pdf");
    docRep.info.Title = "Comments for " + this.docuentFileName;
      docRep.info.Subject = "Comments";
    What I'm curious about is if there is a way around having both highlighted and underlined text go instantly to comments.  If it's possible to get just one or the other to automatically enter the comments that might save me a ton of time manually copying and making decisions like "is this really worth the extra size of the output file."  Those kinds of decisions really slow down my reading process.  Rigth now I've been exporting pages of stuff, and even though I can search what I export it's going to become unmanageable.
    The only thing I can think is to only copy things that I specifically wanted exported to the comments, and to just do this manually so I don't end up with too much highlighted/underlined text.
    (Also, and this one isn't that important...is there a way to save the JS I have been using to all the PDFs that I have?  Right now I have just been copy pasting it to each PDF that I make.)
    Thanks in advance,
    Matt

    The forums have mangled the script (which looks strangely familiar ) but if you want to only list annotations with a specific type, add a new line in between these two:
    for (var i=0; i < annots.length; i++) {
    if (annots[i].type == "Highlight") {
    if (theAuthor != annots[i].author) {
    and add another closing brace at the end of this one
    } else {
    'type' has several defined strings, all documented in the SDK. You'd be using "Highlight" or "Underline" to filter.
    If you want to run the script repeatedly, you can put it into an Action (using the 'run a javaScript' step). Bear in mind that you can't run it against several files at the same time, as the reports aren't saved, so set the Action's properties to apply only to the currently-open document.

  • Comment note icon doesn't appear on underlined texts

    Hi, I have been using Abobe Acrobat 9 Pro for some years now. Whenever I try to add a text note to underlined text there used to be a small icon appear on the top of underlined text indicating that underlined text has a comment attached to it.
    Now ever since I have installed Adobe Acrobat XI Pro on Windows 8, the small comment note icon on underlined text doesn't appear anymore and this means that all the documents that I have created in Adobe Acrobat Pro 9 won't show that in XI edition of Acrobat.
    Instead, Acrobat XI Pro shows the comment note icon on highlighted text but not on the underlined line. So, How can I know if the underlined text has a comment if the icon doesn't appear over it? What can I do to solve this issue to continue using the product with the older document on which I have worked in Acrobat 9 Pro?

    It doesn't help with comment icon so I'll try to be more clear as possible on issue:
    As you can see, the yellow comment icon appears on the top of the highlighted line on the left but on the right where I underlined the text and added a comment, it doesn't show any icon indication so there's no way I can know if it has a comment on it unless I hover mouse cursor over it.

  • How to print text vertically in smart forms

    hi,
    Can any one tell how to print text vertically in smartforms
    ADVANCE THANKS
    GUHAPRIYAN

    HI,
    Chk out  this thread.Maybe it proves helpful.
    Re: vertical writing in smartforms
    Regards,
    Gayathri

  • How to wrap text around a table

    I'm new to Pages. The first thing I tried to do was play with tables, because they are the biggest headache in Microsoft Word. However, I ran into a problem right away--I cannot figure out how to wrap text tightly around a table so that the table is surrounded by text on all four sides.
    Does anyone know how to do this? Seems very basic. There is even a button that shows what I want (Text Wrap drop-down --> Around), but when I click on it, nothing happens.

    Peter,
    I can recreate the appearance with five hard returns after the first paragraph, or instead, changing the After Paragraph spacing to 116 pt. Did this with Baskerville Regular 12 pt with line spacing set at 1. Same Arrange settings as shown by OP.

  • How to extract text from a PDF file?

    Hello Suners,
    i need to know how to extract text from a pdf file?
    does anyone know what is the character encoding in pdf file, when i use an input stream to read the file it gives encrypted characters not the original text in the file.
    is there any procedures i should do while reading a pdf file,
    File f=new File("D:/File.pdf");
                   FileReader fr=new FileReader(f);
                   BufferedReader br=new BufferedReader(fr);
                   String s=br.readLine();any help will be deeply appreciated.

    jverd wrote:
    First, you set i once, and then loop without ever changing it. So your loop body will execute either 0 times or infinitely many times, writing the same byte every time. Actually, maybe it'll execute once and then throw an ArrayIndexOutOfBoundsException. That's basic java looping, and you're going to need a firm grip on that before you try to do anything as advanced as PDF reading. the case.oops you are absolutely right that was a silly mistake to forget that,
    Second, what do the docs for getPageContent say? Do they say that it simply gives you the text on the page as if the thing were a simple text doc? I'd be surprised if that's the case.getPageContent return array of bytes so the question will be:
    how to get text from this array? i was thinking of :
        private void jButton1_actionPerformed(ActionEvent e) {
            PdfReader read;
            StringBuffer buff=new StringBuffer();
            try {
                read = new PdfReader("d:/getjobid2727.pdf");
                read.getMetaData();
                byte[] data=read.getPageContent(1);
                int i=0;
                while(i>-1){ 
                    buff.append(data);
    i++;
    String str=buff.toString();
    FileOutputStream fos = new FileOutputStream("D:/test.txt");
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    read.close();
    } catch (Exception f) {
    f.printStackTrace();
    "D:/test.txt"  hasn't been created!! when i ran the program,
    is my steps right?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

Maybe you are looking for

  • Append report text adds

    My data is being saved with a block at the end of the data. It appears to becoming in with a star due to using Array to Spreadsheet String VI. Not sure what to do to get rid of the block. The complete VI that is giving me trouble is attached. Attachm

  • IOS XR - How to remove a comment line?

    Hello I've got the following comment lines in my Router config.  Would anyone advise how I can remove those lines? router static address-family ipv4 unicast   !* 203.117.111.65/32 GigabitEthernet0/0/0/0 116.0.67.133 !* 218.213.224.16/28 GigabitEthern

  • Business Management

    Business Management Hello I am doing a course in Business Management and have been assigned to ask a few questions on management functions such as planning, organizing, controlling and leading in an analysis of workplace situations. Anyone with manag

  • Digital Signature on form 16

    hi Gurus i want to implement digital signature functionality on form 16. plz tell me the whole process. we are on ECc6 sysytem. currently our user has to manually sign the whole documents and this is a very time consuming process. plz give ur valuabl

  • Illustrator CS6 application window resizing itself to bottom half of display

    All of the sudden when opening AI or even PS on my external display (Dell U2414Q) the application 'resizes' itself to take up the bottom 1/2 of the screen. Dragging the application to the top or maximizing the window results in the application resizi