[flexcoders] Re: Source not found error when debugging

2007-01-18 Thread Yan Bilik
--- In flexcoders@yahoogroups.com, rumpleminzeflickr
[EMAIL PROTECTED] wrote:

 Hi there,
 
 When I run a project in debug mode I get an error, source not found 
 error.
 
 Any ideas of what may be causing this?
 
 Many thanks,
 
 Brett


Maybe this is related to MX components or classes for which source
files are not available ? I got the same error sometimes because only
a subset of MX classes source files comes with the SDK.

Yan



[flexcoders] How to retrieve a default icon ?

2007-01-10 Thread Yan Bilik
Hello,

I wanted to retrieve and use the checkmark icon used in front of
selected menu items.
I read many documents about Embed metadata and so on, but I found no
way to simply get the default asset - the one coming with the
default theme.
The only way I found to do so is to create a dummy Menu object to
retrieve the icon :

public var imgChk:Class;
var men:Menu = new Menu();
men.regenerateStyleCache(false);
imgChk = men.getStyle(checkIcon);

Is there a simplier way to get this checkIcon ?



[flexcoders] Re: Prevent DataGrid itemClick event from launching with header click

2007-01-10 Thread Yan Bilik
I had the same problem, and solved it by testing the event rowIndex.
The rowIndex #0 is for the header, so I just skip my job :
(_itemClick is my handler)

private function _itemClick(evt:ListEvent) : void
{
  if (evt.rowIndex == 0)
return;
  // do sth
}

Yan


--- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote:

 I have a dataGrid that I have set an itemClick event to launch a popup
 canvas as an editor for the line item clicked. The dataGrid is set to
 editable  but each column is set to noneditable to prevent the cell
 from being edited directly.
 
 Everything works well for the editing the line items however if I
 click on a column header to sort it also launchs my itemClick event
 (editor). How can I prevent this ??
 
 Not having much luck trapping the event source since both header
 clicks and line item clicks return the same event.target.