Flex panel titleTextField.htmlText href link handler

I am creating a custom panel in which, I want the titleTextField to have HTML text in which a word is clickable. I have below attached a mxml
component code with the HTML text for the title. I don't know how  to provide for a link handler for the link event. I would have thought that the titleTextField or titleBar would have provided for a link handler, but it does not appear to be so. I appreciate any help. 
Thanks, Ramesh
<?xml version="1.0" encoding="utf-8"?>
<TextInputPanel xmlns="soapbox.util.*" xmlns:mx="http://www.adobe.com/
2006/mxml"
         width="300" height="200"
         title="Registered classes"
         borderThicknessLeft="6" borderThicknessRight="6"
borderColor="#395182" creationComplete="init()">
         <mx:Script>
                 <![CDATA[
                         private function init():void {
                                 this.titleTextField.htmlText = "I  want to <font color='#0000FF'><a
href='event:learn'>learn</a></font> | <font  color='#0000FF'><a
href='event:teach'>Teach</a></font>";
                 ]]>
         </mx:Script>
</TextInputPanel>

I found the answer in adding an EventListener listenign for the TextEvent.LINK event. The code is below.
<?xml version="1.0" encoding="utf-8"?>
<TextInputPanel xmlns="soapbox.util.*" xmlns:mx="http://www.adobe.com/2006/mxml"
    width="300" height="200"
    title="I want to learn"
    borderThicknessLeft="6" borderThicknessRight="6" borderColor="#395182" creationComplete="init()">
    <mx:Script>
        <![CDATA[
            private function init():void {
                this.titleTextField.htmlText = "I want to <font color='#0000FF'><a href='event:learn'>learn</a></font> | <font color='#0000FF'><a href='event:teach'>Teach</a></font>";
                this.titleTextField.addEventListener(TextEvent.LINK, learnHandler);
            private function learnHandler(event:TextEvent):void {
                trace("link clicked");
        ]]>
    </mx:Script>
</TextInputPanel>

Similar Messages

  • Sending a href link through data services

    Hi Ive been tring to send a href link in my chat but it just
    appears in the plain text and not clickable. Does anyone know how
    to do this or if its possible.
    private function sendMessage():void
    var message:AsyncMessage = new AsyncMessage();
    message.body = {userId: userId.text, recipientId:
    dg.selectedItem.userId, text:lbl.htmlText};
    producer.subtopic = dg.selectedItem.userId;
    producer.send(message);
    <mx:Label id="lbl" selectable="true" >
    <mx:htmlText>
    <![CDATA[<a href='event:
    http://www.adobe.com'>Navigate
    to Adobe.com.</a>]]>
    </mx:htmlText>
    </mx:Label>

    Hi,
    If I am correct, as far as the messaging is concerned it is
    just a text which you are passing. If you want the text (Anchor in
    your case) to be work as an anchor, then I think you need to handle
    that when you are displaying the text.
    Hope this helps.

  • How do I create a HREF link to javascript-created ages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Adobe does NOT make the iPad, Apple does.
    This forum is not for general iPad questions. For that head to the forums at the Apple website: www.apple.com.
    You can download the documentation for your iPad in PDF form at the Apple website, and ask questions there.

  • How do I create a HREF link to javascript-created pages?

    Hello,
    I'm not sure where else to turn with this question, so I
    apologize if it's not forum-related.
    I'm using DreamWeaver MX to edit and tweak pages that are
    created with Extensis Portfolio 8 and their NetPublish plug in. I
    am attemping to add a link to my Search, Results and Details pages
    that would open each of these pages in a new window in order to
    make them "printer-friendly" (these pages are currently nested
    within a few frames). The catalog that I've created features
    keyworded photos, and since the users will all get different search
    results based on what they're looking for, the address will always
    vary (especially for the Results page). An example of this address
    would be:
    http://ourwebadress/netpub/server.np?find=&catalog=catalog&site=catalognamehere&template=
    results.np&field=Keywords&op=matches&value=Dallas&value=brownstone&field2=Keywords&op2=
    matches&search=View+Your+Search+Results
    This address shows images based on my search for "Dallas" and
    "brownstone," and because this address would change with every new
    search it's useless as a permanent link.
    My questions is, is there an HREF link command (or perhaps
    something else) that would simply open the existing page in a new
    window, no matter what the page's current HTTP address is? Any
    insight with this would be very appreciated!
    Many Thanks!

    Thank you.  After renaming the ePub file extension to ZIP, I updated the html files to replace the "http://tel" with "tel", rezipped the files, renamed to ePub -- and this corrected the issue.

  • Href links in slideshow not working

    hi,
    I have created a non-flash slideshow with WOW Slider which I find to be a very good program and is jquery based.
    the actual slideshow runs fine on iPad, my PC - and Android devices,
    but:
    the six slides have links embedded to other websites, that I have set up to run in a new window, and work fine on PC & Andoid
    but on the iPad the outbound links do not work - yet an href link will work on the iPad if called from a static image.
    I'm at my wits end with this, and any help would be really appreciated.
    thanks,
    Kevin UK
    nb: the problem page is:  http://www.kevbro.co.uk/slides.htm
    the wow slider code is:
    <!-- Start WOWSlider.com BODY section --> <!-- add to the <body> of your page -->
    <div id="wowslider-container1">
    <div class="ws_images">
    <ul>
    <li><a href="http://www.farnworthsom.co.uk/" target="_blank"><img src="data1/images/010.jpg" alt="my latest work" title="my latest work" id="wows1_0"/></a>Driving Instructor training, help with the ADI Standards Check etc</li>
    <li><a href="http://www.kevbro.co.uk/chris/index.htm" target="_blank"><img src="data1/images/007.jpg" alt="small business site" title="small business site" id="wows1_1"/></a>Hanging Baskets and Landscaping </li>
    <li><a href="http://www.kevbro.co.uk/magellanfoods/index.html" target="_blank"><img src="data1/images/009.jpg" alt="local Food Company" title="local Food Company" id="wows1_2"/></a>a large site with an online ordering system</li>
    <li><a href="http://www.carols-pastels.co.uk" target="_blank"><img src="data1/images/001.jpg" alt="Carol's pastels" title="Carol's pastels" id="wows1_3"/></a>the lovely artwork of my talented wife </li>
    <li><a href="http://www.carols-pastels.co.uk/books/" target="_blank"><img src="data1/images/002.jpg" alt="Carol's first book" title="Carol's first book" id="wows1_4"/></a>a charming fantasy tale for children. </li>
    <li><a href="http://www.kevbro.co.uk/canyon/index.htm" target="_blank"><img src="data1/images/005.jpg" alt="Grand Canyon" title="Grand Canyon" id="wows1_5"/></a>my tribute to 9 brave men in replica boats</li>                 
    </ul>
    </div>
    <div class="ws_bullets"> <div>
    <a href="#" title="my latest work">1</a>
    <a href="#" title="small business site">2</a>
    <a href="#" title="local Food Company">3</a>
    <a href="#" title="Carol's pastels">4</a>
    <a href="#" title="Carol's first book">5</a>
    <a href="#" title="Grand Canyon">6</a>
    </div>
    </div>
    <span class="wsl"><a href="http://wowslider.com/vu">image carousel</a> by WOWSlider.com v7.3</span>
    <div class="ws_shadow"></div>
    </div>   
    <script type="text/javascript" src="engine1/wowslider.js"></script>
    <script type="text/javascript" src="engine1/script.js"></script>
    <!-- End WOWSlider.com BODY section -->

    I have tried many of them Frank ...
    jquery ones like Wowslider, Virtual lightbox, Juicebox, Nivo slider, and css based one's like CSS slider et al.
    and believe me when I say that I have found none of them to be totally reliable across all the varied devices.
    whilst what I have resorted to is quite basic, it gets the job done - particularly given my age and what I am hoping to achieve with my site.
    as a kind of thank you to Michael and yourself, there are links below to two small pages I did ages ago that may give you a bit of a chuckle.
    they are not mentioned on my site, and I'm not sure if they work on iPads.
    http://www.kevbro.co.uk/galway/bay.htm
    http://www.carols-pastels.co.uk/Nigerianphone/phone.htm
    all the best,
    Kevin

  • Drop an URL on a InDesign document from a Flex panel

    Hi Everyone,
    I have a Flex panel, in InDesign, from which I drag an URL. If I drop this URL on a text editor or a web browser, it works. But when I try to drop it on my InDesign document, it's a little bit harder.
    I have implemented a subclass of CDragDropTargetFlavorHelper. The drop works perfectly on Windows. But on mac, I have problems in the method CouldAcceptTypes :
    DragDrop::TargetResponse
    AutocatDNDCustomFlavorHelper::CouldAcceptTypes(const IDragDropTarget* target, DataObjectIterator* dataIter, const IDragDropSource* fromSource, const IDragDropController* controller) const
                   if (0 != dataIter && 0 != target)
                DataExchangeResponse response = dataIter->FlavorExistsWithPriorityInAllObjects(kURLDExternalFlavor);
                                  if (response.CanDo())
    The problem is that response.canDo() answers kTrue on Windows, but kFalse on Mac. I tried to explore the content of dataIter, but a call on dataIter->First() returns nil. I tried a controller->GetItemCount(), which returns 1. But if I try a controller->GetDragItem(1), I get a nil pointer. I have the impress there is no item.  Though, the drop works on another app than InDesign, as I said.
    Is it a problem of internalization ? Or something else ? It let me dry.
    Thanks in advance

    Hi,
    I solved this problem, but discovered another one. The flavor sent by the flex panel has been changed, so that it's a text flavor instead of an URL flavor. My method couldAcceptType works now :
    DragDrop::TargetResponse
    AutocatDNDCustomFlavorHelper::CouldAcceptTypes(const IDragDropTarget* target, DataObjectIterator* dataIter, const IDragDropSource* fromSource, const IDragDropController* controller) const
         if (0 != dataIter && 0 != target)
              // Check for URL Flavor in the drag
              DataExchangeResponse response = dataIter->FlavorExistsWithPriorityInAllObjects(kTEXTExternalFlavor);
                   if (response.CanDo())
                        return DragDrop::TargetResponse(response, DragDrop::kDropWillCopy);
         return DragDrop::kWontAcceptTargetResponse;
    The problem is now in the ProcessDragDropCommand method. Here is the code :
    ErrorCode AutocatDNDCustomFlavorHelper::ProcessDragDropCommand(IDragDropTarget*                               target, IDragDropController* controller, DragDrop::eCommandType                    action)
           // retrieve drop data
                   IPMDataObject* dragDataObject = controller->GetDragItem(1);
                   uint32 dataSize = dragDataObject->GetSizeOfFlavorData(kTEXTExternalFlavor) ;
    The problem is the IMPDataObject I get is nil. There is no item in the controller. However, there were items in the CouldAcceptTypes method, in the DataObjectIterator. So, where are my items ?
    I tried using a custom CDataExchangeHandlerFor, but could not really understand what its usage was for. It didn't work anyway.
    Has anyone an idea ?
    Regards,
    Rémi

  • Flex panel not shown as disabled.

    I am creating a flex panel and a C++ plugin for Photoshop CS5 and CS6 on both Win and Mac. My C++ plugin captures events like layer selection change, document view change etc and dispatch events to flex. In flex I register these events and appropriate functions get called. All this works perfectly.
    For example, when user selects another layer from Layer Palette of Photoshop my plugin dispatches an event. This event is captured in flex and a method is called. Inside this method i need to disable my panel, do some processing and then again enable my panel. This works fine on Win XP and on Photoshop CS5 but not on Mac and Win 7. And if I do a mouse over on my panel when some processing is going on then my panel is displayed as disable otherwise it is displayed as enabled. I am using the following code:
    In C++ the layer selection change event is dispatched. In flex it is captured and a function "LayerChange" is called.
    public function LayerChange(event:CSXSEvent):void { this.enabled = false; CursorManager.setBusyCursor(); //do some processing
    this.enabled = true; CursorManager.removeBusyCursor(); }
    Can someone tell me why the panel is not shown as disabled until and unless mouse moves over the panel?
    Thanks

    Paul,
    In the future, simplying your use case will improve your chances of getting an answer. I ran your app and ran into an infinite loop here:
                    while (true) {
                        trace("Calling draw()");
                        draw();
                        trace("Calling updateUniverse()");
                        updateUniverse();
    The Flash Player is single-threaded. So it will not render anything while it is in the middle of a function stack. You need to truigger your updating logic with a Timer in order to see anything rendered.
    Jason

  • Confused: relative HREF links

    The following file:
    project/WEB-INF/subfolder/myLink.jsp
    has an HREF link to
    project/myTarget.jsp
    The link in myLink.jsp is:
    The above link works, but I do not know why. Why wouldn't the following work? After all, relative to myLink.jsp, the target page is two folders above in the hierarchy? How do these relative links work?
    I'm trying to learn Struts so does that have something to do with it? The page from which I am clicking the link is something like:
    http://localhost/project/blah.do
    Is there any other info I can provide to clarify my question? Explanation of this issue would be appreciated. Thanks.

    ../../ is equivalent to moving to previous folder twice
    ie similar to performing cd.. twice in cmd prompt
    suppose if your folder structure is
    project/web-inf/myfolder/myjsp.jsp
    if u have proj.jsp in project forlder
    then you got to specify in href as ../../proj.jsp
    what it does is the controller skips web-inf and myfolder folders and comes to project folder and searches for the req jsp
    basically ../../ deals with folder structure.
    bye

  • Displaying the layer image in a Flex panel

    Hi,
    I need to display the contents (image) of the active layer in a Flex panel. Was thinking along the lines of saving the layer as a temporary image and then loading it into an Image control. But is there a better/less messy way than this?

    I want to know this too.

  • Placing/Embeding an eps/Ai file in flex panel

    Hi All,
    I want to display the preview of ai/eps file in flex panel
    Does there exiost a way using which I can do this?
    I have tried with Image control but it can embed only jpg/gif/png/swf format
    Please help me
    Thanks in advance
    Alam

    Tell whomever is emailing the file to zip it first.

  • Using flex Panel in Photoshop CS4

    Hello,
    I need to create a flex panel which will be shown in Windows->Extension menu in PS.I have created the flex panel and it shows in the correct menu in PS CS4 but when i click on the menu to open the panel,I get a blank panel. No items on the panel are shown.
    Is it possible to use a flex panel  in PS CS4?? If yes then please giude me!
    thanks in advance!!

    Hi Steve
    Thanks for the reply. I'll look into PS CS4 panels giude. Thanks once again for your help.

  • Flex Panel in Photoshop CS4

    Hello,
    I need to create a flex panel which will be shown in Windows->Extension menu in PS.I have created the flex panel and it shows in the correct menu in PS CS4 but when i click on the menu to open the panel,I get a blank panel. No items on the panel are shown.
    Is it possible to use a flex panel  in PS CS4?? If yes then please giude me!
    thanks in advance!!

    Hi Steve
    Thanks for the reply. I'll look into PS CS4 panels giude. Thanks once again for your help.

  • Hide href link Sharepoint page

    How can I hide a href link in my sharepoint page depending on permission ?

    Hi,
    string groupName = "Team Site Visitors";
    SPUser userName = SPContext.Current.Web.CurrentUser;
    string strconcat=string.Empty;
    using (SPSite spSite = new SPSite("http://sp-test/"))
                    using (SPWeb spWeb = spSite.OpenWeb())
                        SPUser user = spWeb.EnsureUser(userName.LoginName);
                        strconcat = "<a ";
                        if (user.Groups.Cast<SPGroup>().Any(g => g.Name.Equals(groupName)))
                            strconcat += "href="+"'http://www.google.com'";
                        strconcat += ">First</a>";
                        links.InnerHtml = strconcat;
    Thank You, Somnath Matere

  • Href link problem in portlet

    Hi guys,
    I created a map in a page flow and generated a portlet for the "page flow". Moreover the portlet is just one of my portlets in a portal.
    When I click a href link in the map's page,I want the link page shown in the portlet.But in recent situation,the link page will appear in a independent page.Namely,the link page appear out of my portal environment.
    I hope that the link page can appear in my portlet.Does anyone have some idea about it?

    Thanks for your reply. In my application, I want to make a map like the codes below,but I think "netui tag library" doesn't support it.So..is there anyway to transform the <area> tag to a netui tag? And I want all these pages in a portlet,namely,I want each portlet to be a function unit.
    <map name="estoremap">
    <area alt="China" coords="446,123,554,206" href="/portalproj/china.jsp" shape="RECT" />
    </map>
    <img border="0" usemap="#estoremap" src="/portalproj/img/worldmap.gif"/>

  • Href links in theme_6 (centered blue)

    Running hosted Apex 4.0.1.00.03
    I use theme_6 in my apex application. The problem I would like to solve is the href links. This theme sets the text-decoration to "none" (/i/themes/theme_6/css/theme_4_0.css). Is there anyway I can change this behavior from withing Apex. I want my links underlined as it is common standard in web pages.
    Again I run this application on hosted box so no possible to change the css itself.

    Tomek,
    On a page, you would edit the page
    <script type="text/css">
    a:link {
    text-decoration:underline;
    </script>
    For an application, you would replace the page template:
    1. Create a MYCSS.css [where MYCSS is your CSS file - any name would do]
    2. Go to Shared Components and click on Static Files. Click on Create, choose the application, and select MYCSS.css as the Filename, and click on [Upload]
    3. Copy your current page template to mypagetemplate.
    4. Modify mypagetemplate:
        Before th #HEAD#, you would place the following statement
       <SCRIPT type="text/javascript" src="#WORKSPACE_IMAGES#MYCSS.css" ></SCRIPT>
    5. Edit your theme - Click Themes in Shared Components, Click on Theme 6, click on Edit Theme 6 under Tasks, and replace page in Component Defaults to  mypagetemplate.** Note: Please click on Helpful and/or Correct to give credit to the helper **
    Robert
    http://apexjscss.blogspot.com

Maybe you are looking for

  • How can I get the underlying object from the ObjectReference

    Dear friends, I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ... I would like to get the underlying object for which the ObjectReference is a mirr

  • Create a TS Variable in MDT 2013 to set Computer Name to Wifi Mac Address

    Hello, I'm currently using the following rule to pick up the MAC address of the computer: OSDComputername=#Right(Replace("X%macaddress001%",":",""),15)# I have created an image for the Linx Tablets, which don't have an ethernet MAC Address, so I'd li

  • Suitcase Fusion 5 making Adobe CC apps slow?

    Hi. New Macbook Pro Retina. Just moved back to Suitcase Fusion 5, after really liking Fontcase for several years. It seems the Extensis plugins are really decreasing the startup time for Photoshop, etc. I don't even have any fonts loaded or activeted

  • How to Select Multiple Pages at Once

    Perhaps a basic question, but I have 6 HTML pages up in the Dreamweaver 8.0 edit window. The side bar of each pages is identical. I want to make the same change in all six pages and would like to do it all at once. I went to simply ctrl+click (pc) to

  • Why wont java go off my pc and uninstall

    Hi i have tried everthing to get java off my computer and unistall it but it wont work how can i get it off?