Discussion Area

ask questions, discuss topics, solve problems

This is a public Discussion Area  publicRSS

Thread

    • <a href=""...
      Thread posted Jul 09 by juanSolano
      559 Views, 8 Comments
      Title:
      <a href="" onmouseover="function()"> onmouseover event
      Content:

      Hi Guys,

      Straightforward my friends. Somebody know how use the onmouseover event of <a href, tag in flash, I mean, can flash detect this event ?, if not !! How can add this event to the texfield ?

      Remember, my intencion is call a function onmouseover with the <a href>  tag.

      Can be posible ?

    Comments

    • Sorry, I.m working with AS3 !!!

    • Well, what you are doing looks like javascript. Are you trying for the as3 equivalent or reach out to javascript with as3? If it is the first, each component has mouse events and there you can get the "mouse over" "mouse out" events. If it is the second it is a bit more complicated and very doable with external interface. Good luck!

    • Hey Jon,

      Umm, well, not exatly javascript, rather HTML tag:

      <a href='event:param' onmouseover='event:param'>

      I need execute the event onRollOver instead of click. I mean, went you load a html tags into textfield, this render the text as html, right !!, hyperlink.

      More clear ????

      how do I activate the onmouseover='event:param' in the <a> tag.

    • What you are wanting to do is something like, fyi, I can't find the squigly braces on this italian keyboard:

       

      private function onMouseOver(event:MouseEvent):void

      (

      // your logic

      )

      ...

      <mx:TextField mouseOver="onMouseOver(event)"/>

    • Hey Jon, yes, FLEX have this method, BUT i need this for AS3. !!!! no FLEX.

    • Everything past the InteractiveObject (which is a flash object) has the mouse events.

      http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/

    • Hi Jon

      One friends of mine found this link:

      http://www.kirupa.com/forum/showpost.php?p=1959997&postcount=233

      I think that answers OUR QUESTION.

      thanks again

    • If you are wanting text within the textarea to have this functionality then this should work for you. If not, any components you create should extend the interactive object for the mouse events.