Adobe Dreamweaver Forums



Last 10 THreads :         PLACING NEW LAYER BELOW THE ORIGINAL (Last Post : dave_milbut@adobeforums.com - Replies : 3 - Views : 4 )           »          Re: CS4 bug: brush cursor display is incomplete (Last Post : sam_shand@adobeforums.com - Replies : 0 - Views : 1 )           »          PS CS4 "Save As ..." format choices appear in duplicate (Last Post : dave_milbut@adobeforums.com - Replies : 5 - Views : 6 )           »          CreateODBCDate and cfqueryparam with cf_sql_date (Last Post : Dan Bracuk - Replies : 2 - Views : 3 )           »          Strip EXIF camera data from PSD files? (Last Post : Ho - Replies : 1 - Views : 2 )           »          Is Adobe really turning its back on me? (Last Post : dave_milbut@adobeforums.com - Replies : 8 - Views : 9 )           »          Objects "Framed" when moving layer (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 1 - Views : 2 )           »          How does this configurator module work? (Last Post : Marvinzzz - Replies : 0 - Views : 1 )           »          Apache Connector failures on RHEL5 (Last Post : macbookrocco - Replies : 0 - Views : 1 )           »          Canvas ID that generate by Repeater (Last Post : Wirawannaga - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
maretron
 
Posts: n/a
Diggs:
Default detecting click event in DataGrid body

dg.addEventListener( "headerRelease", OnHeaderRelease );
dg.addEventListener( "cellPress", OnSelect );
dg.onPress = function(event) : Void
{
trace( "onPress - itemIndex = " + event );
};

I have a DataGrid (dg) with working event listeners on populated cells
(cellPress) and Headers (headerRelease). The DataGrid is populated dymanically,
and normally has a large unpopulated area. I need to be able to detect a mouse
click / mouse up / mouse down in the unpopulated area. The best that I've been
able to get to work is the code above, but replacing the dg.OnPress function
takes over the cellPress and headerRelease events as well. dg.onPress has no
parameters (event=undefined) so I cannot write code to re-direct to the other
handlers within onPress.

Any ideas?




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
-Hob
 
Posts: n/a
Diggs:
Default Re: detecting click event in DataGrid body

You can't just listen for DataGrid's itemClick event?

http://livedocs.adobe.com/flex/3/lan...vent:itemClick
Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:37 AM
maretron
 
Posts: n/a
Diggs:
Default Re: detecting click event in DataGrid body

I don't see that event. But I have just realized that I am working Flash not Flex in this project, so let me repeat the question on the correct discussion group.

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk