Access Keys:
Skip to content (Access Key - 0)

remove event Listner

Added by samir khechine , last edited by samir khechine on Nov 30, 2009 23:59

hello, I m using treemap comminity edition. I want to desable the mouse over  event when the mouse is over the Treemap nodes. I used the removeEventListner for the treeMap and the TreemapLgent instance but nothing is changed.

is this listner used inline directly  the mxml code without the addEventListner?

have youany idea how to do this feature?

Best Regards,

Join the Lab

  • Access to our free components
  • Give your feedback, your needs
  • Participate to our roadmap

Account


Forgot password ?

Latest Updates: 2010/07/12

Releases on:

Top News

Kap2Flex & Klovis new releases
(2010/06/08)
Kap2Flex A new release of our Flex code generator.
Klovis A set of free and open-source libraries.

Read the news »
ConfluenceFx release 1.0!
(2010/06/08)

After a year of beta program and lots of user feedbacks, we are glad to announce the 1st commercial release of CFx!

Need Information?

  1. Mar 08

    Fadi Mansour says:

    Hello Samir, Im not sure I understand what you are trying to do. Correct me if ...

    Hello Samir,

    Im not sure I understand what you are trying to do.
    Correct me if I am wrong. You are trying to hide the tooltip that appears on the TreeMapLegend when you roll over a node in the TreeMap? If so, here is the solution:

    <mx:Application preloader="fr.kapit.skin.classes.GenericPreloader"
    				xmlns:mx="http://www.adobe.com/2006/mxml"
    				layout="absolute"
    				width="100%"
    				height="100%"
    				xmlns:treemap="fr.kapit.components.treemap.*">
    <mx:Script>
    	<![CDATA[
                    import fr.kapit.components.treemap.treemap_internal;
    		use namespace fr.kapit.components.treemap.treemap_internal;
    			
    		private function onNodeRollOver(event:TreeMapEvent):void
    		{
    			tree.treemap_internal::selectedItem = null;
    		}
    	]]>
    </mx:Script>
    <mx:HBox id="componentContainer"
    	width="100%"
    	height="100%"
    	paddingLeft="0"
    	paddingRight="0">
    	<treemap:TreeMap id="tree"
    		width="100%"
    		height="100%"
    		nodeRollOver="onNodeRollOver(event)"/>
    </mx:HBox>
    <mx:VBox width="100%"
    	height="65"
    	>
            <treemap:TreeMapLegend width="100%"
    			height="100%"
    			treeMap="{tree}"
    			/>
    </mx:VBox>
    

    This is a solution but you must be careful when you use it because in future release this solution may affect other new functionalities.

    Regards,

    Fadi Mansour

Log in to reply

Why Kap Lab ?

Kap Lab exists because innovation is our passion. Enjoy our products and help us to give you the best.

Cyril Daloz
CEO Kap IT

Adaptavist Theme Builder (3.3.5-conf210) Powered by Atlassian Confluence 2.10.3, the Enterprise Wiki.