RichText LinkElement ( s:a href="..." ) not clickable

Is this a known bug for the Flex 4 beta?  The linkelement within a <s:RichText> control is not clickable (does not respond).  For example:
     <s:Group>
            <s:RichText>
                <s:p>
                    <s:a href="http://www.google.com" target="_blank" color="#0066cc">Click me</s:a>
                </s:p>                   
            </s:RichText>
     </s:Group>

KenichiM,
I'm pretty sure this is not a bug. The way I understand it (not to say I'm right, this is just how I understand it), the text needs to be selectable to be clickable (this is how it worked in the old Flash Player TextField class as well).
So, your workaround would be to use a RichEditableText control instead, and just select the Boolean editable property to false (so it is still selectable, just not editable).
<s:RichEditableText editable="false">
    <s:p><s:a href="http://www.google.com" target="_blank" color="#0066cc">Click me</s:a></s:p>
</s:RichEditableText>
Peter

Similar Messages

  • LinkElement become NOT clickable when it scroll out of TextArea view

    Hi:
    I am writing a online call center product with flash builder 4.5.
    I found a tricky problem with LinkElement.
    I use the TextArea as the display stage for each incoming and outgoing message. Obviously, the messages includes image and href.
    I use LinkElement to display them.
    As conversation continues, the TextArea's view scrolls to display more and more content.
    When LinkElement scrolls out of the viewable area of TextArea, it becomes NOT clickable!!!
    If I change the size or height of TextArea, make the LinkElement shows in view of TextArea, it becomes Clickable.
    But changing the size of TextArea is not a workable way to fix this problem, espetially for a long conversation.
    The source code is too long, I have to show some snapshot.
    =============================================================================
    Following is function to generate Paragraph to be inserted into TextArea.
    private function imageToLocalParagraph(
    role:int, customerId:int, stationId:int, imageTitle:String, imageUrl:String):ArrayList{
    var selfName:String = getRoleName(role, customerId, stationId);
    var color:uint = getColor(role);
    var timeStr:String = getTimeString();
    var list:ArrayList = new ArrayList();
    var p:ParagraphElement = new ParagraphElement();
    var span:SpanElement = new SpanElement();
    span.text =
    timeStr + " " + selfName;
    span.fontSize = _fontSize;
    span.color = color;
    p.addChild(span);
    list.addItem(p);
    var p2:ParagraphElement = new ParagraphElement();
    var inf:Object = {color:0xFF0000};  
    p2.linkHoverFormat = inf;
    var link:LinkElement = new LinkElement();
    link.href = imageUrl;
    link.target = "_blank";
    link.addEventListener(FlowElementMouseEvent.CLICK, onImageClick);
    var linkSpan:SpanElement = new SpanElement();
    linkSpan.text = "点击打开" + imageTitle;
    linkSpan.fontSize = _fontSize;
    linkSpan.color = color;
    link.addChild(linkSpan);
    p2.addChild(link);
    list.addItem(p2);
    return list;
    Following is the TextArea that contains each paragraph.
    =================================================================
    <s:TextArea id="textArea"
    editable="false"
    focusEnabled="true"
    horizontalCenter="0"
    width="100%"
    height="70%">
    <s:textFlow>
    <s:TextFlow>
    <s:p><s:a href="http://adobe.com/" target="_blank"></s:a></s:p>
    </s:TextFlow>
    </s:textFlow>
    </s:TextArea>
    When sprite is created complete, event listener is set for TextArea and this. ParagraphElementEvent is new defined event to receive paragraph list.
    this.textArea.textFlow.addEventListener(
    CompositionCompleteEvent.COMPOSITION_COMPLETE, compositionCompleteHandler);
    this.addEventListener(ParagraphElementEvent.TYPE, onParagraphElementEvent);
    When receiving paragraph list event, TextArea will add it and auto scroll view to bottom.
    ========================================================================================== ============
    private function onParagraphElementEvent(event:ParagraphElementEvent):void {
    if (event.eventId == this._customer.customerId) {
    var list:ArrayList = event.paragraphElementList;
    for (var i:int = 0; i < list.length; i++) {
    var p:ParagraphElement = (ParagraphElement)(list.getItemAt(i));
    this.textArea.textFlow.addChild(p);
    // auto scrolling to bottom with 3 ways, the last one is perfect
    // (1) this.textArea.appendText("");
    // (2) this.textArea.scrollToRange(int.MAX_VALUE, int.MAX_VALUE);
    // (3) call scrollToBottom twice when textFlow.addChild and textFlow.CompositionCompleteEvent
    scrollToBottom();
    private function compositionCompleteHandler(event:CompositionCompleteEvent):void {
    scrollToBottom();
    private function scrollToBottom():void {
    this.textArea.validateNow();
    var maximum:Number = this.textArea.scroller.verticalScrollBar.maximum;
    this.textArea.scroller.verticalScrollBar.value = maximum;
    I don't think it is a problem of Flash builder 4.5.
    LinkElement is a commen component.
    Thanks
    Steven

    hi:
    the reason has been figured out:
    It results from CompositionCompleteEvent.COMPOSITION_COMPLETE.
    this.textArea.textFlow.addEventListener(CompositionCompleteEvent.COMPOSITION_COMPLETE, compositionCompleteHandler);
    If we scrolls the text area to show the LinkElement invisible,
    Click the the Link element, will trigger CompositionCompleteEvent again.
    In my implementation, CompositionCompleteEvent  will scrolls the text area to bottom immediately.
    It looks that the link not works.
    The reason is found, but another question is created:
    What is the solution for the text area, which satisfys two aspects:
    (1) auto scroll to bottom;
    (2) make the link element workable when scrolls.
    This is important for IM applications.

  • LinkElements are not clickable

    Hello,
    I am adding LinkElement to my TextFlow and it seems they are not clickable until I do a special trick.
    Here is my code :
    (OnClick of a button)
    var t:TextFlow = txtText.textFlow;
    var p:ParagraphElement = new ParagraphElement();
    var s:SpanElement = new SpanElement();
    var a:LinkElement = new LinkElement(); 
    a.href = "http://www.adobe.com";
    s.text = "Un lien"; 
    a.addChild(s);
    p.addChild(a);
    t.addChild(p); 
    txtText.textFlow = t; 
    this is my RichEditableText :
    <s:RichEditableText id="txtText" editable="false" />
    The link appears with correct format, but when I mouse hover, the cursor is the selectable one, not the hand. I am able to make it "handed" when I select some text, then I press the right-button and then I click on COPY and the link is now clickable (I really don't understand what the hell is going on behind. I tried to attach some listeners and the FlowOperationEvent.FLOW_OPERATION_* are dispatched when I do that.)
    Did I forget something to do ?
    Sorry for my english,
    Charles.

    I had this same problem, adding mouseChildren = true fixed the problem, allowing links to be clickable on a TextArea/RichEditableText instance

  • URL link not clickable on APLEX html page

    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem?
    - Denis
    Edited by: Denis Sun on Jun 5, 2012 2:45 PM

    You should wrap your code in {noformat} {noformat} tags
    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    Denis Sun wrote:
    I create a Page, type is HTML Text. I have a Region with template "Reports Region"
    In region source, I have text looks similar to :
    [td] [a herf="http://yahoo.come"] http://yahoo.com [a][td]
    ([] means less than and greater then sign )
    But after run the page, the url link is not clickable to take me to the website. How can I fix this problem? The correct syntac of an anchor tag is this, and where did you enter this HTML code?
    //notice the href typo
    <a href="http://yahoo.com">http://yahoo.com</a>

  • TS3274 my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the original one was not there.... some songs were in fact there but not clickable ( it was there only gray)..anyone kno

    my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the orignal one was not there.... some songs were in fact there but not clickable ( it was there only gray)... i was looking for help on how to get the music on the ipad

    my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the orignal one was not there.... some songs were in fact there but not clickable ( it was there only gray)... i was looking for help on how to get the music on the ipad

  • Once I add my .swf to Dreamweaver, the buttons are not clickable, how can I fix this?

    Hello there,
    I'd just like to start out by saying that this is the first time I have posted on these forums, so if I have done anything wrong, I apologize!
    Anyway, about my question, just like the title says, once I import the .swf into Dreamweaver the buttons are not clickable, however when tested outside of Dreamweaver, they work correctly.
    Basically I have an animated banner with some audio and two buttons, the buttons mute and unmute the music.
    The file consists of two layers, one of which has 2 keyframes, the first keyframe has the Audio with the settings; "Effect: None. Sync: Start, Loop" and a button leading to the next frame.
    The next keyframe (still on layer one) has much of the same but the Audio settings are different; "Effect: None. Sync: Stop, repeat x 1" and this will stop the music.
    Now on the other layer (Rocket) I have a movie clip of a space-themed background and a rocket flying across it, the movie clip is made up of a motion tween and another movie clip which is the rocket.
    I am using Flash CS6 and Dreamweaver CS6 on a Windows 7 computer. I am also using Actionscript 2.0
    I apologize for the amount of information and I'm not very briliant at explaining things, so here are some images of the flash file, hopefully they'll help;
    Layer setup - http://i.imgur.com/iZHwfAw.jpg
    The movie clip - http://i.imgur.com/ayvPJUZ.jpg
    Keyframe one sound settings - http://i.imgur.com/LWbnQhO.jpg
    Keyframe two sound settings - http://i.imgur.com/7kS9dO2.jpg
    Actionscript for the first button/first keyframe - http://i.imgur.com/x6ROqPv.jpg   - (The second button/keyframe has the same code, but obviously the instance name and frame number has been changed)
    Again, I apologise if this all seems confusing!
    Thanks in advance for any answers to this question
    Adam.

    If you did not create this swf yourself then you won't be able to do what I am suggesting.  If you did, then open the fla in Flash and go into the Publish Settings and select the option to publish an html file as an output.  That will create an html page that embeds the Flash file.  Test that file in your browser and see if it plays properly.  IF so, then copy that code in place of whatever Dreamweaver did to embed the Flash.
    Dreamweaver is not a reliable tool for embedding Flash content... why it does not do it the same way Flash does it is anyone's guess.

  • Hello, i use premiere pro cc and i would like to uplaod my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Hello, i use premiere pro cc and i would like to upload my sequence in speedgrade with direct link but it's not available. I can see the option but it's not clickable, somebody knows why ?

    Oh i'm not sure they are on same, i downloaded speedgrade this morning and i didn't upgraded premiere so it's maybe this ! thanks i will try it and let you know

  • In XML form builder data schema not clickable

    Hi ,
    I have installed JRE version 1.6.0_07. When i click on xml foms builder ,it gets opened but when i click on data schema it's not clickable but icon is displayed next to data schema.I am not able to create any node in data schema.
    Regards.
    Adity.

    Hi,
    my problem is simular to Aditys: My Java Version is JRE 1.6.0_15. When I go to Content Managment --> Formbuilder, the XML Forms Builder starts automatically but it is not possible to open Data Schema. After downgrade to Java 1.4 I can not start the Form Builder, that means, after clicking on "Form Builder" in the Portal, a pop-up opens, but the XML Form Builder does not load.
    Can you help me?
    Jannis

  • Table of Contents become not clickable when I convert Pages to PDF

    Hello,
    I created a document in Pages but the TOC becomes not clickable when I export it to PDF. I tried "Print as PDF", too but didn't work. Is there a fix or workaround? I am working on User Manual for a new system for my company and not many people will be able to use Pages document.
    Thanks!

    What version of Pages?
    Sounds like Pages 5.2.2. They are supposed to have fixed that, but seems you are still having the problem.
    If you are doing a manual you will be far better off using Pages '09.
    Pages 5.2.2 has so many features missing. and is buggy to boot.
    Peter

  • When composing an e-mail in Hotmail, if I copy and paste a URL, it is not clickable like it would be in IE

    When copying and pasting a link, it is not clickable (see below)
    http://www.google.com/

    Just above the text area that you use to enter the message text on the "Compose New Mail page" there is usually a button bar with buttons to add text formatting like Bold and Italic.<br />
    That toolbar may also have a button to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each (e.g. Insert hyperlink).<br />
    * Make Link - https://addons.mozilla.org/firefox/addon/make-link/

  • Email addresses in thunderbird emails are not clickable.

    In Thunderbird V31.6, when viewing a received email which contains an email address (in the body of the message) that email address is not shown as a mailto: link, and is not clickable, so cannot be used to create a new mail message. This happens when View/Message Body As/Original HTML or View/Message Body As/Simple HTML. Mailto: links are displayed, and work, correctly when View/Message Body As/Plain Text -- but using this setting, other HTML links no longer display the target pages! (In this and other received emails.) Other email clients are able to display/action HTML links correctly and concurrently.
    Can this be fixed, please? (I need to use View/Message Body As/Original HTML as my default setting, and not have to change it just to use an embedded mailto: link.

    Thanks for your reply, Gnospen.
    I have now realised that the received emails (with the unclickable email addresses) were from the same sender. They were created and sent from my mobile smart phone using an Android App called Type Mail (formerly know as Blue Mail) which I have recently begun using.
    In Thunderbird, when I examined the message source, of emails sent from Type Mail, I saw the following (as an example -- substituting [square brackets] for <angle brackets> so that text does not get interpreted as HTML in this post)...
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: 8bit
    [p dir="ltr"]Test new version[/p]
    [p dir="ltr"][font color ="#006970"]Sent from a Mobile Device[/font][br]
    [font color ="#006970"]Preferred Email: [/font][font color ="#006970"][b][email protected][/b][/font][font color ="#006970"][/font][/p]
    ...As you can see, there are no [HTML][HEAD], etc, [/HEAD][/HTML] tags to enclose the message text -- resulting in the message not being recognisable as an HTML message .
    I will feed this back to Type Mail to see if they can fix it. If I read emails created/sent from Type Mail within Type Mail, they look as they should (with clickable email addresses), but this seems to be because Type Mail appears to apply its own formatting -- a bit like Thunderbird's View/Message Body As/Plain Text approach.
    Thanks again for your reply and suggestion.

  • On firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Question
    on firefox clickable buttons are not clickable for me eg the + to open new tab ,the sign in . register and other applications buttons on this page wont click yet the 2 blue change buttons are fine

    Top of Firefox window non-responsive, toolbars non responsive -- also see [http://kb.mozillazine.org/Problematic_extensions Problematic extensions]
    *caused by Yahoo Toolbar -- https://support.mozilla.com/questions/890908
    *caused by Babylon Toolbar -- https://support.mozilla.com/questions/890670

  • The hyperlink and number not clickable

    The hyperlink and number not clickable in iPhone 4 text massage

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • My FaceTime icon in settings is not clickable and the application on the home screen responds with "Account Restriction This phone is restricted from creating FaceTime accounts (I have used FT for 3 yrars and had a in order account before 8.02, this

    In settings, the FaceTime icon is not clickable and in home screen the FaceTime icon (application) responds with: "Account Restriction This iPhone is restricted from making FaceTime accounts". I have had a FaceTime account in good order for 2 years now and have not abused or excessively used it. Apple doesn't respond multiple messages, ISP is of no use.

    I have tried this and can see that FaceTime is ALLOWED in RESTRICTIONS
    I have tried also, in restrictions, other items regarding applications, iTunes App Store without results.

  • Trying to print notation in GarageBand, the print button is not 'clickable'

    I just picked up a M-Audio Keystation, plugged it in, Garageband recognized immediately, played some music, saved file, then when I try to print notation, the *print button is all gray* and not 'clickable'. I check in other programs and the print button works fine... ANY IDEAS? Printing notation was my main purpose of buying this keyboard and using GB.

    Okay, figured it out... Click on the track, then the track editor. Change the track editor view from graphic view to notation view, then the print button works... WHEW! What a workout just to print notation view!

Maybe you are looking for