[flexcoders] Question about 'copyLocale'

2010-01-11 Thread tungchau81
Usage: copylocale srcLocale dstLocale copyLocale is a command to generate framework resource for each locale. I wonder whether srcLocale should be a default locale for dstLocale. In other words, should srcLocale be a locale that is as close as possible to dstLocale. For example, would the foll

[flexcoders] Re: Equivalent ant command for "copylocale en_US fr_FR"

2010-01-08 Thread tungchau81
Nevermind, I was missing the jvmarg. Here is the solution: --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > I tried the following ant command, but it did not work > > maxmemory="512m" > failonerror="true"> > > &g

[flexcoders] Equivalent ant command for "copylocale en_US fr_FR"

2010-01-08 Thread tungchau81
I tried the following ant command, but it did not work I keep getting the following error: [echo] running copylocale en_US da [java] Exception in thread "main" java.lang.NullPointerException [java] at java.io.File.(File.java:222) [java] at flex2.tools.CopyLocale.ch

[flexcoders] Compiling Resource Modules-Is there any way to avoid running 'copylocale'

2010-01-08 Thread tungchau81
Is there anyway to automate the process of running 'copylocale' so that new developer does not have to manually run the command in their $FLEX_HOME? Any advice is greatly appreciated, Tung Chau

[flexcoders] Re: Is there any way to update Resource bundle dynamically?

2009-11-30 Thread tungchau81
Chau --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > Hi, > In a new project, I am required to create customizable UI using Flex. The > application should allow each log-in user or customer to configure their own > labels, messages and icons. I have two que

[flexcoders] Is there any way to update Resource bundle dynamically?

2009-11-24 Thread tungchau81
Hi, In a new project, I am required to create customizable UI using Flex. The application should allow each log-in user or customer to configure their own labels, messages and icons. I have two questions: 1) I plan to load different ResourceModule for each log-in user. For example, user1 will h

[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart

2009-02-20 Thread tungchau81
, "sunild99" wrote: > > --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > > > > > I have two problems: > > Problem#1: > > I know how to create right-click menu using ContextMenu and > > ContextMenuItem. However, I do not know how

[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart

2009-02-11 Thread tungchau81
Anyway, overriding mouseClickHandler function in ChartBase is not a right solution since right click is not handled by this function. --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > I want to override the following function in ChartBase class, but it > is p

[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart

2009-02-10 Thread tungchau81
I want to override the following function in ChartBase class, but it is private. I wonder if there is any other alternative solution. private function mouseClickHandler(event:MouseEvent):void Thanks in advance, Tung Chau --- In flexcoders@yahoogroups.com, "tungchau81" wrote: &g

[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart

2009-02-10 Thread tungchau81
Any help out there? I am really stuck on this... --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > Hi, > When a user **right-click on a wedge in a PieChart or a column in a > ColumnChart control, I need to drill down into the data for that > wedge or colu

[flexcoders] How to implement right click drill down for either PieChart or ColumnChart

2009-02-06 Thread tungchau81
Hi, When a user **right-click on a wedge in a PieChart or a column in a ColumnChart control, I need to drill down into the data for that wedge or column and display new charts based on the selected menu item on the right-click menu. This should work similar to a normal left-click drill down ava

[flexcoders] Re: Custom CheckBox icon?

2008-12-09 Thread tungchau81
Do you have an answer for this yet? I am running into the same problem. Regards, Tung Chau --- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote: > > Does anyone know how to set the default 'check' icon of a CheckBox to > a different image? I would like to use an 'x' instead of the

[flexcoders] Re: How to tell AdvancedDataGrid to not display child nodes

2008-10-16 Thread tungchau81
Please ignore my question. It should work. --- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> wrote: > > Hi, > I have an ArrayCollection its members might have "children" property > set to a list of child members. I want to use AdvancedD

[flexcoders] How to tell AdvancedDataGrid to not display child nodes

2008-10-16 Thread tungchau81
Hi, I have an ArrayCollection its members might have "children" property set to a list of child members. I want to use AdvancedDataGrid for a convenient filtering capability, but I want to display data as a list without child nodes. Is there anyway I can tell my AdvancedDataGrid to display top

[flexcoders] Re: How to make only certain rows in an AdvancedDataGrid selectable?

2008-09-25 Thread tungchau81
> > --- In flexcoders@yahoogroups.com, "tungchau81" wrote: > > > > Thanks, Amy. > > I tried setting mouseChildren to false for parent nodes and it > worked, > > but I no longer was able to click on the default arrow icon to expand > > and collapse a

[flexcoders] Re: How to make only certain rows in an AdvancedDataGrid selectable?

2008-09-24 Thread tungchau81
containing row of the node should not selectable. This means no highlighting color shows up when users attempt to select those rows in a table. Regards, Tung Chau --- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote: > > --- In flexcoders@yahoogroups.com, "tun

[flexcoders] How to make only certain rows in an AdvancedDataGrid selectable?

2008-09-23 Thread tungchau81
Hi, I have an AdvancedDataGrid and I only want to me rows of leaf nodes selectable. Rows of parent nodes should not be selectable. However, AdvancedDataGrid only has a global "selectable" property. Any advice on how to do this is greatly appreciated. Regards, Tung Chau

[flexcoders] Re: What Flex method can I use to close the main window of a Flex application?

2008-09-23 Thread tungchau81
/VadexFX.com> > http://Sherifabdou.com <http://Sherifabdou.com> > > - Original Message - > > From: tungchau81 <mailto:[EMAIL PROTECTED]> > > To: flexcoders@yahoogroups.com > <mailto:flexcoders@yahoogroups.com> > &

[flexcoders] What Flex method can I use to close the main window of a Flex application?

2008-09-18 Thread tungchau81
Hi, I have a J2EE application using Flex on the client side. Whenever there is a severe system error such as unable to establish connection with the server or session timed out, I need to pop up a dialog with a "Close Browser" button which allows users to close the Flex application. In my origi

[flexcoders] AdvancedDataGrid::showRoot=false does not when the root node has no children

2008-08-29 Thread tungchau81
Hi everybody, I found out that setting HierarchicalCollectionView.showRoot = false does not work when my root node has not child node. I used AdvancedDataGrid. Does any body know how to work around this? Any help is greatly appreciated. Regards, Tung Chau

[flexcoders] Re: Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-15 Thread tungchau81
In case you are interested, somebody else in this group encountered the same "not scrolling when dragging an item" issue at the following thread: http://tech.groups.yahoo.com/group/flexcomponents/message/3076

[flexcoders] Re: Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-15 Thread tungchau81
Still, I don't know how to work around this error since dragScrollingInterval is a private variable.

[flexcoders] Re: Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-15 Thread tungchau81
I found out that AdvancedListBase.dragScrollingInterval is always 0 when dragEnabled=true. Therefore AdvancedListBase.dragScroll() function always returns early since it has the following condition: // sometimes, we'll get called even if interval has been cleared if (dragScrollingInter

[flexcoders] Re: Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-15 Thread tungchau81
My simple ADGTest.mxml http://www.adobe.com/2006/mxml";>

[flexcoders] Re: Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-15 Thread tungchau81
In summary, I meant it was impossible to scroll while dragging an item upward or downward in an AdvancedDataGrid component.

[flexcoders] Flex 3.0 ADG : vertical scroll bar does not scroll up when dragging

2008-08-14 Thread tungchau81
Hi, I remember this worked in Flex 3 beta 3. Is this a possible bug in Flex 3 release or is there any configuration that I am missing? In my AdvancedDataGrid (ADG), dragMoveEnabled=true and verticalScrollBar appears since the data tree in my ADG is too long. I tried to drag and drop an item fro

[flexcoders] Re: How to associate a double click with item editting in AdvancedDataGrid

2008-03-13 Thread tungchau81
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of tungchau81 > Sent: Thursday, March 13, 2008 11:21 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: How to associate a double click with item > editting in AdvancedDataGrid > > > &

[flexcoders] Re: How to associate a double click with item editting in AdvancedDataGrid

2008-03-13 Thread tungchau81
override protected function mouseUpHandler(event:MouseEvent):void { if (!tween) { if (!collection || !collection.length) return; var advancedDataGridEvent:AdvancedDataGridEvent;

[flexcoders] Re: How to associate a double click with item editting in AdvancedDataGrid

2008-03-13 Thread tungchau81
override protected function mouseUpHandler(event:MouseEvent):void { if (!tween) { if (!collection || !collection.length) return; var advancedDataGridEvent:AdvancedDataGridEvent;

[flexcoders] Re: How to associate a double click with item editting in AdvancedDataGrid

2008-03-13 Thread tungchau81
, "tungchau81" <[EMAIL PROTECTED]> wrote: > > Hi everybody, > In my AdvancedDataGrid which has grouping, I set "editable" property to > be either "true" or "item" in order to make it editable. I also > set "editable" property to be &

[flexcoders] Limitation in AdvancedDataGridItemRenderer

2008-02-08 Thread tungchau81
Hi, In the first column of my custom AdvancedDataGrid, I want to display two 16x16 images right before the name of the item. However, extending AdvancedDataGridItemRenderer class does not allow me to do that since this class's API does not expose any method called "createChildren". The class si

[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
Nevermind, I found the toolTipShowHandler function in AdvancedDataGridItemRenderer. --- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> wrote: > > In the API for AdvancedDataGridItemRenderer, there was > no "tooltipshow" event defined. >

[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of tungchau81 > Sent: Wednesday, December 05, 2007 5:42 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: dataTipFunction position in datagrid > > > > Hi Alex, > I tried to listen t

[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of tungchau81 > Sent: Wednesday, December 05, 2007 5:42 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: dataTipFunction position in datagrid > > > > Hi Alex, > I tried to listen t

[flexcoders] Flex 3::AdvancedDataGrid::groupItemRenderer is for group or branch node only?

2007-12-05 Thread tungchau81
Hi, My AdvancedDataGrid has grouping collection set up during intialization.I tried to change the label's color of all group or branch nodes, but the color got applied to the labels of child nodes also. Is this a bug?

[flexcoders] Re: dataTipFunction position in datagrid

2007-12-05 Thread tungchau81
Hi Alex, I tried to listen to the "tooltipshow" event in AdvancedDataGrid(Flex 3), but I was not able to catch the event at all. private function changeToolTipPosition(event:ToolTipEvent):void { trace("TungChau::x=" + ToolTipManager.currentToolTip.x); trace("TungChau::y=" + ToolTi

[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
> to display html formatted strings as toolTips. > > -Sreenivas > > --- In flexcoders@yahoogroups.com, "tungchau81" > wrote: > > > > Hi, > > I wrote my own custom dataTipFunction that return an HTML formatted > > text, but it does not wo

[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
Thanks alot for your suggestion. I will check it out. Regards, Tung Chau. --- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> wrote: > > The full code is : > > private function myDataTip(data:Object):String { > return "Tung C

[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-05 Thread tungchau81
The full code is : private function myDataTip(data:Object):String { return "Tung Chau"; } Please help. --- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> wrote: > > Hi, > I wrote my own cu

[flexcoders] AdvancedDataGrid::toolTip formatting

2007-12-04 Thread tungchau81
Hi, I wrote my own custom dataTipFunction that return an HTML formatted text, but it does not work. Please help! private function myDataTip(data:Object):String { return "Tung Chau"; } The result I saw was a raw "Tung Chau" instead of the bold text format I want. Please help. Tung Chau

[flexcoders] Re: Grouping in AdvancedDataGrid and MS OutLook's Arrange By Date

2007-12-04 Thread tungchau81
Never mind. I think I found a solution. I simply need to create an additional field in my data model which returns a String of either "Today", "Yesterday", "Last Week" based on a result from Date comparison. Regards, Tung Chau --- In flexcoders@yahoogroups.com,

[flexcoders] Flex 3 : : showDataTips in AdvancedDataGrid does not work any more after groupin

2007-12-04 Thread tungchau81
Hi, I set showDataTips = true in one of an AdvancedDataGridColumn and it works without grouping. As long as I use grouping and call refresh() function on a GroupingCollection instance, showDataTips does not work any more. I tried to set showDataTips = true after calling refresh() on a Groupi

[flexcoders] Grouping in AdvancedDataGrid and MS OutLook's Arrange By Date

2007-12-04 Thread tungchau81
Hi, I need to use Grouping in AdvancedDataGrid to group data based on Date. However, the result showed the grouping in terms of day, hour, minute, second and this is not what I need. How do I group data that will appear exactly how MS OutLook does for Arrange By Date feature ? Any advice is gre

[flexcoders] Converting AS3 class into XML

2007-03-19 Thread tungchau81
Hi, I need to convert an AS3 class into XML based on all the public/private properties that the AS3 class has. However, I have not been able to find a way or any API that allow me traverse through all properties that a class has. This should be a generic way that can be applied to any AS3 class

[flexcoders] HSlider and in-line Item Editor(Renderer)

2007-03-15 Thread tungchau81
Hi everybody, I wonder if it is possible to extend HSlider class and make it work as in-line Item Editor(Renderer). I love to use DataGrid and HSlider together, but currently HSlider does not implement IDataRenderer, IListItemRenderer, and IDropInListItemRenderer interfaces. It seems to me that