Actionscript function when hovering

Has anyone ever tried to run an actionscript function when
hovering over the <a>Anchor tag of HTMLtext?
Here is the situation. I have an HTML text field and I want
to be able to embed definitions of key words. In turn, when the
user hovers over the world, I’d like to open a window
containing the definition.
While one can add a "Hover" effect with CSS, i wish to run a
function when an EVENT LINK is hovered over. Can anyone suggest a
way to do this or maybe a workaround?
var htmlText1:String = "<a
href='event:hoverOverMe'>Hover Here Please</a>";
this.textArea1.htmlText = htmlText1;
this.textArea1.addEventListener("MOUSE_OVER", overHandler)
public function overHandler(event:MouseEvent)
//Get mouseover information
//Possible get information from the anchor tag under the
mouse?
Any help to point me in the right direction is appreciated.
Art

Hi! This interests me as well, so I'll be following this
thread with keen interest. Although the following doesn't answer
the question, it does seem to eliminate the possibility of using an
anchor tag in the way that you have suggested, the Alert Box in the
anonymous function reveals the text and its formatting but the
anchor tag has been stripped out.
But I'm hoping as I guess would you, that the document object
model caters for the immediate objects (such as your illustrative
tag had it not been stripped out) in the event bubbling phase ...
as the Alert box reveals a rich set of tags I should think that
there is at least a little hope here.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init()"
>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public function init():void
testHTML.htmlText="<a id='anchorID' href='#'>This is
some text</a>"
testHTML.addEventListener(MouseEvent.MOUSE_MOVE,function(e:MouseEvent){Alert.show(e.targe t.htmlText.toString());});
]]>
</mx:Script>
<mx:TextArea id="testHTML" width="300" height="300">
</mx:TextArea>
</mx:Application>

Similar Messages

  • Appear text when hovering a button

    Hello everyone. I would like your assistance for a feature that I want to implement.
    I have a paragraph with my services and I want some sort of description to appear below  when hovering/clicking each service. How do I do that?
    Let me know your thoughts. Thank you in advance.

    mdermez wrote:
    This is for a website not for a newsletter or anything.
    Would a tabbed area work for you (see below)
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script>
    $(document).ready(function() {
    $("#services_1, #services_2, #services_3").hide();
    var divs = $("#services_1, #services_2, #services_3");
    $("a").click(function () {
    $(divs).hide();
    $('a').css('background-color' , 'transparent');
    $("#" + $(this).attr("class")).show();
    $(this).css('background-color' , '#CCC');
    </script>
    <style>
    #buttons {
        overflow: hidden;
        color: #fff;
        width: 900px;
        margin: 0 auto;
    #buttons ul {
        margin: 0;
        padding: 0;
        list-style: none;
    #buttons li {
        margin: 0;
        padding: 0;
        float: left;
        list-style: none;
    #buttons li a {
    display: block;
    width: 150px;
    color: #000;
    padding: 10px 8px;
    text-decoration: none;
    #servicesWrapper {
        width: 900px;
        margin: 0 auto;
    #services_1, #services_2, #services_3 {
    background-color:#CCC;
    padding: 20px;
    </style>
    </head>
    <body>
    <div id="buttons">
    <ul>
    <li><a href="#" class="services_1">SERVICES 1</a></li>
    <li><a href="#" class="services_2">SERVICES 2</a></li>
    <li><a href="#" class="services_3">SERVICES 3</a>
    </li>
    </ul>
    </div>
    <!-- end buttons -->
    <div id="servicesWrapper">
    <div id="services_1">Sed fuisset eleifend ne, doming convenire reformidans in qui, ad honestatis delicatissimi usu. Eos ex sale ludus, an facilisis urbanitas has, congue inimicus interesset sed ex. Vel eu amet illum sanctus, no eros impetus deserunt his. Altera inermis usu ne. An nam paulo bonorum, oportere appellantur per ea, ullum facer alterum duo ex. Noluisse verterem no sea.
    </div>
    <div id="services_2">Pro tale eligendi aliquando an, at eam vero dolor prompta. Eruditi admodum abhorreant eos in, te has vidit complectitur. His simul veniam ut, ne dicat propriae consulatu vis. Cu mel odio alienum, ne pri consul recteque interesset. Ea eos agam doctus assueverit, amet evertitur neglegentur ut vis. Vocent alterum recusabo eu mel. Te veri oratio per.</div>
    <div id="services_3">Has dicit cetero id. Fabellas disputationi ei has. At postea intellegebat pri, ludus menandri nec eu. In ius ullum facete, assum efficiendi id qui. Cu error vivendo efficiendi vix, vix affert intellegebat at. Veritus prodesset similique est ut, id pro sumo munere facilisi. Vel aliquid delicata patrioque at, maiorum deleniti adolescens quo id, vis habeo volutpat sadipscing ex.</div>
    </div>
    <!-- end servicesWrapper -->
    </body>
    </html>

  • "Install button" doesn't function when updating to 10.6.1 or 10.6.2

    The main problem is my "install" button simply doesnt trigger any response, it is highlighted and has the click animation but, again, heeds no effects. Nothing happens.
    I recently installed snow leopard and there were quite a few problems but I have read that most of which can by solved by simply installing the updates. This is where the aforementioned problem is such an obstacle in my plight.
    I have downloaded both DMG (6.1 and 6.2) files, repaired my start up disk and rebooted in safe mode and have tried restarted repeatedly for about 9 hours now. I have searched and havn't found any posts or topics with a problem quite like mine. I simply cannot install the updates I have already downloaded.
    It is notable to mention that I downloaded these from the actual apple website not from my "software update" listing because those buttons dont function when I attempt to download an update either. The menu toggles back and from from the option where I hit "continue" and "agree" to the terms, that is to say, that each button activates the page that preceded it to come back up. Its a never ending cycle.
    Please help.

    this may happen if you are using a custom keyboard layout. delete the file /Users/username/Library/Preferences/ByHost/com.apple.HIToolbox.* and log out/in and try installing updates again.

  • How do I stop text from changing colour when hovering over it?

    Hello, I have downloaded a template for Dream Weaver CS6 (Which is the version i am usig). When you hover over one of the boxes the top text changes colour to black instead of staying white... does any one know how i can make it so the text stays the same colour. I will post a print screen of it.
    Before clicking:
    View image: 1
    When hovering over it:
    http://postimg.org/image/wdsii9mab/
    I will post the code of the index page aswell: <!DOCTYPE html> <html lang="en"> <head> <title>Home</title> <meta ch - Pastebin.com
    Any help is appreciated. Thanks.

    Your unwanted pink hover color comes from style.css line 181 here
    .btn_{
        background: none repeat scroll 0 0 #cf3046;    border: medium none;
        border-radius: 3px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        font-family: "Open Sans",sans-serif;
        font-size: 12px;
        font-weight: bold;
        line-height: 15px;
        margin-top: 20px;
        padding: 7px 13px 8px;
        text-decoration: none;
        text-shadow: none;
        text-transform: uppercase;

  • HT1665 There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    There is a bug in the spellchecking functionality when typing in the web view or while using Blogsy App. Why? Why my IPad crashes so often?

    I have always found spell check to be "buggy" in every version of all of the iOS's that I have run on my original model iPad and my new iPad - especially when replying and typing posts in these forums. It works perfectly in every other application on my iPad but it has never worked perfectly in any web browser that I have used on my iPad - no matter what I have done to try to correct it. That is what MY experience has been with spell check on my iPads.
    As for the crashes on your iPad try these basic troubleshooting steps.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • How can I call a custom javascript function when clicking on cfgrid cell.

    I would like to call a custom javascript function when
    clicking on a cell in an cfgrid (of html format). The closest thing
    I can find is to use the HREF="" attribute, but it doesn't seem to
    work with javascript inside it.
    Simple example:
    <cfgridcolumn name="Foo" header="Foo"
    href="javascript:customFunction(#ID#);">
    Do I need to tap into the underlying Ext JS funtionality? If
    so, where can I start?
    Thanks!

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I use QVC online a lot. When hovering over a catagory headings at the top of the page, a drop down menu shows a list of subcategories. Is this feature available in Firefox 4 & 5? If so, how do I turn it on?

    I use QVC online a lot. When hovering over a category heading in IE9 a drop down menu appears with detailed subheadings for that category. Is this feature available in Firefox versions 4 and 5? Is this something that can be turned on in Firefox 4 & 5? If so, how do I turn this feature on?

    Hey Dave,
    How did you get on with this?
    Have you tried CSS position:fixed?  I have been playign around with it on my own project  (and in fact are just about to post a related question)  and can confirm that it works with a plain old DIV.
    SVG I can't be sure though..
    Certainly give it a try.
    Cheers

  • I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word"

     I am getting error when hovering on document in sharepoint online "sorry there was a problem and we can't open this document.If this happens again, try opening the document in Microsoft Word".I am sure that document is not corrupted and
    all. something it showing the preview and sometimes it throwing this error. I hope this error is intermident. When clicking on the link also it throws this error but on refreshing it working fine. I dont know why it is happening. Please helpme  to resolve
    this issue. 

    Hi Waqas
    Thanks for your help with this. I had a look at both posts, the URL works fine from the WAC server and I am not using a System account to test docs.
    Also, this is a production site that is accessible over the Internet, so we are using https therefore the WOPIZone is external-https.
    Issue #3 in the above blog link does not reflect the same error I see on my servers.
    I also had a look at the information in this link: http://technet.microsoft.com/en-us/library/ff431687.aspx#oauth
    Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.
    If you added domains to the Allow List by using the
    New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run
    the Get-OfficeWebAppsHost cmdlet. To add a domain to the Allow List, use the
    New-OfficeWebAppsHost cmdlet.
    I have not added any domains to the Allow list so this did not help either. Should I add the domain?
    Any further help with this is much appreciated.
    Thanks again.
    Yoshi

  • A function to announce or to do some other functions when a dataset is loaded successfully?

    What is the function to listen to the data and announce or do
    some other functions when the data is loaded successfully and ready
    to use?
    I've tried the getDataWasLoaded() but I must do it manually,
    or use it with the setTimeOut() function to check, this really
    unuseful.
    Thanks for all your help.

    U can use observers for that, the observer onPostLoad
    indicates that the data is ready to be processed.
    u can find the info in this document;
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html

  • Need help me in usage of below given functions when MOAC set

    Hi,
    Can somebody help me in answering for the below questions?
    In R12, I set MO:Security profile at responsibility level and the profile has three OUs. Please see the below code.
    declare
    v_orgid1 NUMBER;
    v_orgid2 NUMBER;
    v_orgid3 NUMBER;
    v_orgid4 NUMBER;
    v_orgid5 NUMBER;
    l_count NUMBER;
    l_ou_cnt NUMBER;
    v_user_id varchar2(100);
    v_resp_id varchar2(100);
    v_resp_appl_id varchar2(100);
    begin
    l_ou_cnt := mo_global.get_ou_count;
    fnd_profile.get('USER_ID', v_user_id);
    fnd_profile.get('RESP_ID', v_resp_id);
    fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
    fnd_global.apps_initialize(v_user_id, v_resp_id, v_resp_appl_id);
    MO_GLOBAL.INIT('PO');
    mo_global.set_policy_context('M',NULL);
    v_orgid1 := mo_global.get_current_org_id;
    FND_PROFILE.GET('ORG_ID', v_orgid2);
    v_orgid3 := FND_GLOBAL.ORG_ID;
    v_orgid4 := FND_PROFILE.VALUE('ORG_ID');
    v_orgid5 := po_moac_utils_pvt.get_current_org_id;
    SELECT count(1)
    into l_count
    FROM PO_HEADERS
    WHERE EXISTS (SELECT 1 FROM mo_glob_org_access_tmp oa WHERE oa.organization_id = org_id);
    end;
    Qns:
    1. FND_GLOBAL.ORG_IDFND_PROFILE.GET, FND_PROFILE.VALUE, PO_MOAC_UTILS_PVT, MO_GLOBAL functions are not returning org_id when mo security profile is initialized. the functions are returing -1 or NULL some times. Is there any specific function in R12 to return ORG_ID, if same functions when to use?(the functions are working fine when mo global is intialized for single org)
    2. Irrespctive to where clause, the select statment is returning count of records for all mo security profile enabled orgs. Then why should not I get the records directly from ALL tables by using same where clause? Is there any specific reason in using Synoniams (poheaders, ....like)?
    3. Can somebody explain usage of mo_global.get_current_org_id, po_moac_utils_pvt.get_current_org_id? If getting only for org_id in which case should i use both?
    Appreciate your help !!!
    Thanks

    Do have the answers for the questions? If so can you post those?
    Thank you!

  • How to run functions when changing states?

    Hi everybody
    I want to run function when changin states
    For example I change my state and write something on Panels title and when this state appears i want to read my title and to do smth
    How can I do it. Where is my mistake?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle"
        width="340" height="250"
        layout="absolute"
    currentStateChange="StateChangez();">
    <mx:Script>
    <![CDATA[
    public function StateChangez():void
    if (currentState=='a')
    //Alert.show('a');
    if (Panel1.title=='New')
    Alert.show('New');
    else
    Alert.show('Edit');
    else
    Alert.show('b');
    ]]>
    </mx:Script>
    <mx:states>
      <mx:State name="a">
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button2}"/>
       <mx:AddChild position="lastChild">
        <mx:Panel x="0" y="40" width="340" height="210" layout="absolute" id="Panel1">
        </mx:Panel>
       </mx:AddChild>
       <mx:RemoveChild target="{button3}"/>
      </mx:State>
      <mx:State name="b">
       <mx:RemoveChild target="{button2}"/>
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button3}"/>
       <mx:AddChild position="lastChild">
        <mx:Label x="10" y="222" text="b"/>
       </mx:AddChild>
      </mx:State>
    </mx:states>
    <mx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </mx:Script>
    <mx:Button label="New" x="10" y="10" id="button1" click="currentState='a';Panel1.title='New';"/>
    <mx:Button x="68" y="10" label="Edit" id="button2" click="currentState='a';Panel1.title='Edit';"/>
    <mx:Button x="10" y="218" label="b" click="currentState='b';" id="button3"/>
    <mx:Button x="265" y="10" label="Read" click="StateChangez()"/>
    </mx:Application> 
    Message was edited by: AtomicRussian

    Hi,
    I think your event handler "StageChangez()" is called before your Panel title is set. Try first change title, then change currentState.
    Oh yes my mistake, you are adding it when state changes. You can put your Panel's title change in StageChangez() and after that you can do some actions.
    Regards,
    Adrian
    Message was edited by: AdrianWiecek

  • How to see document file name with full path when hovering mouse over title bar?

    Using PS CS6, Windows 7 x64.
    I was under the impression that when hovering my mouse over the document title bar, I would see a tooltip showing the full file name, including the path.  This isn't happening and I'm wondering if there is a way to do this.  I know I can click File > Save As, or Ctrl+Shift-S to see the full path, but hoving over the title bar would be easier.  (What I am seeing now in the tooltip is the file name, % magnification and which layer I have selected.  Basically, the tooltip is just showing what's in the title bar without hovering.)
    Thank you!
    John

    Hm, I wonder if it's something they may have enabled only for the Cloud version (I have 13.1.2).  If so, I didn't notice the change at the time of the upgrade.
    Nope, it's not that - I have a virtual machine for testing with 13.0.1 installed...  This is what I see there:
    -Noel

  • Code to call a function when enter key is pressed

    hi all,
    In a table control program i need to call a function when i press enter key...
    but im not able to do that since the function is always called when i press a push button on the screen.... can any one help me in this.. please....

    Hi John,
          You are not getting any value in SY-UCOMM when you press "Enter",because the function code is not set for 'Enter" key in "Function Key" of the GUI-STATUS..
    First define some fucntion code say 'ENT' for the Enter button available in "Fucntion key" of the GUI status.Once you done and activate the program and test it.The function code which u defined will be coming to SY-UCOMM field when you press 'ENTER" button and you can handle the various fucntionality whichevcer you want on "ENTER" .
    Eg:
    case sy-ucomm.
    When 'ENT'.
    Endcase.
    Regards,
    Vigneswaran S

  • Call Actionscript function from Javascript

    Can anyone show me a simple example of calling an
    actionscript function from within javascript? Everything I have
    found searching online refers to using the ExternalInterface but I
    was sure I also read that Adobe Air does not support it. I am
    currently using htmlloader to load a html page containing
    javascript into an <mx:HTML>. But I cant seem to touch the
    actionscript functions from within javascript. I am specifically
    trying to work with the FCKeditor that I have integrated so if
    anyone has any examples other methods of integrating the editor I
    would love to see them as well.
    Thanks!

    Let's assume u have embeded swf object named "flashObj"
    <embed src="MYSWF.swf" quality="high"
    width="100%" height="100%" name="flashObj"
    play="true"
    loop="false"
    quality="high"
    allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="
    http://www.adobe.com/go/getflashplayer">
    </embed>
    On each time onblur is called it invoke AS function
    myActionScriptFn
    window.onblur = function() {
    if(flashObj != null){
    flashObj.myActionScriptFn(navigator.appName);
    You need to add a listener in Action Script code
    ExternalInterface.addCallback("myActionScriptFn",
    myActionScriptFn);
    public function myActionScriptFn(appName:String):void
    // Any code here
    Regards

  • IPhone 5S sounds do not function when on Bluetooth or when plugged in

    iPhone 5S 32GB version 8.1.3
    sounds do not function when on Bluetooth or when plugged in

    8.1.x to 8.1.3
    I will try tonight and see.

Maybe you are looking for

  • Enhance COPA datasource

    I need to enhance a COPA datasource but I cannot add fields in COPA structure as it is already full. So Need to write a code to populate the fields. We require partner function fields from VBPA table and populate the data. I cannot create generic del

  • Printing logo at a specified position in main window in sap script

    Hi, I need to print a logo just after the signature which is coming in the main window, So basically i need to call a var(secondary) window inside the main window just after the signature and the position of logo should be towards the right. I tried

  • Itune Help needed

    Hi admin i need help today i downloaded itune, After istalling i am getting an error saying "The procedure entry point QTCF_CFHTTPMessageSetHeaderFieldValue could not be located in dynamic link library QTFC.dll". I installed quick time and then insta

  • FAQ sticky?

    I think I've asked for this before, but it would be REALLY nice if we could have FAQ sticky thread for known solutions to problems and/or known list of hardware that is working with Logic Pro 9 (or whatever version of interest). For my specific needs

  • Very beginner POI and import question

    I am reasearching/playing around with the Jakarta POI. My boss would like to load word docs/xls into the database in binary form - he then wants to display them Read Only to the end users. He suggested that I look into using the POI. I've been reasea