<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-25205225.post8543102443924649719..comments</id><updated>2009-12-11T09:36:33.910-05:00</updated><title type='text'>Comments on Michael Imhoff: Flex tree's with a context menu</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://michael.omnicypher.com/feeds/8543102443924649719/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html'/><author><name>Michael Imhoff</name><uri>http://www.blogger.com/profile/15438909513365135704</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-25205225.post-7362503363110220125</id><published>2009-12-11T09:36:33.910-05:00</published><updated>2009-12-11T09:36:33.910-05:00</updated><title type='text'>Not that I'm aware of...</title><content type='html'>Not that I&amp;#39;m aware of...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7362503363110220125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7362503363110220125'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1260542193910#c7362503363110220125' title=''/><author><name>Michael Imhoff</name><uri>http://www.blogger.com/profile/15438909513365135704</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12131448922235976262'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-5619795982876454232</id><published>2009-12-11T05:49:39.156-05:00</published><updated>2009-12-11T05:49:39.156-05:00</updated><title type='text'>Cool example...
Is there any way of hiding the bui...</title><content type='html'>Cool example...&lt;br /&gt;Is there any way of hiding the built-in items on right-click?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Aruna</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/5619795982876454232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/5619795982876454232'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1260528579156#c5619795982876454232' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-7531766314815729063</id><published>2009-11-17T09:59:28.989-05:00</published><updated>2009-11-17T09:59:28.989-05:00</updated><title type='text'>This solution sometimes caused a endless loop. So ...</title><content type='html'>This solution sometimes caused a endless loop. So I tried following:&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;private function onContextMenuTriggered(event:ContextMenuEvent):void {&lt;br /&gt;&lt;br /&gt;      // Empty the items.&lt;br /&gt;      this.contextMenu.customItems = new Array();&lt;br /&gt;&lt;br /&gt;      var uiTextField:IUITextField = event.mouseTarget as IUITextField;&lt;br /&gt;      if ((uiTextField != null) &amp;amp;&amp;amp; (uiTextField.owner is IListItemRenderer)) {&lt;br /&gt;        var itemRenderer:IListItemRenderer = uiTextField.owner as IListItemRenderer;&lt;br /&gt;        var selectedIndex:int = this.itemRendererToIndex(itemRenderer); // this is a inherited tree&lt;br /&gt;        this.selectedIndex = selectedIndex;&lt;br /&gt;      } else {&lt;br /&gt;        // Clicked target is part of the tree, but not an item.&lt;br /&gt;        return;&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7531766314815729063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7531766314815729063'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1258469968989#c7531766314815729063' title=''/><author><name>Mario</name><uri>http://www.blogger.com/profile/07738186050342684771</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-726471594329521170</id><published>2009-08-05T06:57:04.997-04:00</published><updated>2009-08-05T06:57:04.997-04:00</updated><title type='text'>Guys, this discussion has solved my long standing ...</title><content type='html'>Guys, this discussion has solved my long standing problem of Tree component. Thanks to all of you :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/726471594329521170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/726471594329521170'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1249469824997#c726471594329521170' title=''/><author><name>Shubhra</name><uri>http://www.blogger.com/profile/11363910547795638748</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-1473704323937492443</id><published>2009-05-19T16:54:00.000-04:00</published><updated>2009-05-19T16:54:00.000-04:00</updated><title type='text'>I made a custom TreeItemRenderer that sets a conte...</title><content type='html'>I made a custom TreeItemRenderer that sets a context menu using this.contextMenu = new ContextMenu();&lt;br /&gt;&lt;br /&gt;The ContextMenuItems have event listeners for ContextMenuEvent.MENU_ITEM_SELECT:&lt;br /&gt;&lt;br /&gt;var open:ContextMenuItem - new ContextMenuItem("Open Editor");&lt;br /&gt;open.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openHandler)&lt;br /&gt;&lt;br /&gt;Then openHandler just does:&lt;br /&gt;dispatchEvent(new DataActionEvent(someName, MyWrapperClass(super.data).id);&lt;br /&gt;&lt;br /&gt;This sends the ID of the item the user selected with the event so that the application can take appropriate action depending on what the user selected when the menu was opened.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/1473704323937492443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/1473704323937492443'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1242766440000#c1473704323937492443' title=''/><author><name>Matt</name><uri>http://www.blogger.com/profile/10075021471117608451</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-602751545316879514</id><published>2009-05-07T09:10:00.000-04:00</published><updated>2009-05-07T09:10:00.000-04:00</updated><title type='text'>Hi,cool but the best is to set the ContextMenu of ...</title><content type='html'>Hi,cool but the best is to set the ContextMenu of the TreeItemRenderer component, moreover, you should select the right clicked item:&lt;br /&gt;&lt;br /&gt;public function onItemRollOver(e:ListEvent):void&lt;br /&gt;{&lt;br /&gt;TreeItemRenderer(e.itemRenderer).contextMenu = myContextMenu;&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/602751545316879514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/602751545316879514'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1241701800000#c602751545316879514' title=''/><author><name>eBuildy</name><uri>http://www.ebuildy.com</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-7229241967656968345</id><published>2008-09-22T11:11:00.000-04:00</published><updated>2008-09-22T11:11:00.000-04:00</updated><title type='text'>The Fix for Firefox is not too make sure that your...</title><content type='html'>The Fix for Firefox is not too make sure that your clone the event on:&lt;BR/&gt;&lt;BR/&gt;function contectMenuTriggered(){&lt;BR/&gt;var newListEvent : ListEvent = lastLastTreeItem.clone() as ListEvent;&lt;BR/&gt;&lt;BR/&gt;...&lt;BR/&gt;&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;This will snapshot item under the mouse at the time of right click and then not update as further rollovers accrue.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7229241967656968345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/7229241967656968345'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1222096260000#c7229241967656968345' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-5997185094493275432</id><published>2008-05-01T20:11:00.000-04:00</published><updated>2008-05-01T20:11:00.000-04:00</updated><title type='text'>Hi,This is a nice little example.  I extended it a...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;This is a nice little example.  I extended it a little bit by having the right-click also cause the tree to make the item under the mouse become selected.&lt;BR/&gt;&lt;BR/&gt;I wanted to do this because it's the behavior of most desktop applications, e.g. windows explorer, and a lot of our users were getting confused with our flex app.  I used the line:&lt;BR/&gt;&lt;BR/&gt;myTree.selectedItem = _lastTreeItem.itemRenderer.data;&lt;BR/&gt;&lt;BR/&gt;... in the contextMenuTriggered function.&lt;BR/&gt;&lt;BR/&gt;Thanks,&lt;BR/&gt;KaJun</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/5997185094493275432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/5997185094493275432'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1209687060000#c5997185094493275432' title=''/><author><name>dangerOp</name><uri>http://xanga.com/dangerOp</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-805381101247014022</id><published>2007-03-20T23:50:00.000-04:00</published><updated>2007-03-20T23:50:00.000-04:00</updated><title type='text'>The issue will happen while you use firefox.</title><content type='html'>The issue will happen while you use firefox.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/805381101247014022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/805381101247014022'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1174449000000#c805381101247014022' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-6322252686968371471</id><published>2007-02-19T09:32:00.000-05:00</published><updated>2007-02-19T09:32:00.000-05:00</updated><title type='text'>Hi JPK,I just took a look at what you mentioned an...</title><content type='html'>Hi JPK,&lt;BR/&gt;&lt;BR/&gt;I just took a look at what you mentioned and have been unable to replicate the issue you point out.  Can you provide more details of what you're running into?&lt;BR/&gt;&lt;BR/&gt;Have a good day,&lt;BR/&gt;Michael</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/6322252686968371471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/6322252686968371471'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1171895520000#c6322252686968371471' title=''/><author><name>Michael Imhoff</name><uri>http://www.blogger.com/profile/15438909513365135704</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12131448922235976262'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-25205225.post-2700845307776042244</id><published>2007-02-19T04:55:00.000-05:00</published><updated>2007-02-19T04:55:00.000-05:00</updated><title type='text'>beware ! rollover event continues to be launched a...</title><content type='html'>beware ! rollover event continues to be launched after right button pressed and during the exploration of the context menu by the mouse. The result is a shift of the selected node in your tree !! If somebody knows the solution, thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/2700845307776042244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/25205225/8543102443924649719/comments/default/2700845307776042244'/><link rel='alternate' type='text/html' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html?showComment=1171878900000#c2700845307776042244' title=''/><author><name>JPK</name><uri>http://www.blogger.com/profile/09399050476890362019</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html' ref='tag:blogger.com,1999:blog-25205225.post-8543102443924649719' source='http://www.blogger.com/feeds/25205225/posts/default/8543102443924649719' type='text/html'/></entry></feed>