[flexcoders] Re: Application container failed to capture KeyboardEvent

2007-11-26 Thread zhongtie
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of zhongtie > Sent: Saturday, November 24, 2007 6:22 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Application container failed to capture > KeyboardEven

[flexcoders] Application container failed to capture KeyboardEvent

2007-11-24 Thread zhongtie
My simple flex app somehow doesn't respond to key event, but mouse events work fine. Any ideas? Thanks, Tie --- src code --- http://www.adobe.com/2006/mxml"; layout="absolute" keyDown="onEvent(event)" mouseDown="onEvent(event)">

[flexcoders] LocalConnection Bug?

2007-02-28 Thread zhongtie
I tried to send an XML object over LocalConnection, and noticed if this XML doesn't have any child node, the other side will only see an empty one. For example: lc.send("lc_id", "fn", new XML("")) lc_id.fn() will see an "". However if we send , things work well. Is this a LocalConnection bug? An

[flexcoders] Re: TitleWindow missing all focus events??

2007-02-02 Thread zhongtie
usEvent) : void { > if (event.relatedObject == null || !contains(event.relatedObject)) { > // event came from "outside" not from one of the children > } > super.focusOutHandler(event); > } > > R. > > On 2/2/07, zhongtie <[EMAIL PROTECTED

[flexcoders] TitleWindow missing all focus events??

2007-02-01 Thread zhongtie
I pop up TitleWindows using PopupManager, and I change the titlebar colors based on if the titleWindow is active (topmost) or not. The problem is, I am NOT able to capture the focus event for TitleWindow (other controls, like TextArea, has no problems), nor does onFocusIn/onFocusOut overwrite wor

[flexcoders] Container focus question

2007-02-01 Thread zhongtie
I tried to capture the TitleWindow focus, which I did, but somehow I can no longer focus in its RichEdit component. Attached is my code. Could anyone shred some light on it? Thanks! /*== Main application ===

[flexcoders] I have an image inside a canvas container, and when I resize the canvas, the ima

2005-08-08 Thread zhongtie
I have an image in a canvas container, and when I resize the canvas, the image resizes as I expect. However, the image position doesn't change at all, unlike in a Flash applicaiton. For example, on a 300x300 canvas, I load an image of 100x100 at (100, 100). If I double the size of the canvas to 60

[flexcoders] Re: mouseUp misfire??? and why so many warnings in log file?

2005-08-04 Thread zhongtie
that? --- In flexcoders@yahoogroups.com, Manish Jethani <[EMAIL PROTECTED]> wrote: > On 8/4/05, zhongtie <[EMAIL PROTECTED]> wrote: > > I have two JPG images on convas, and want to draw a border around the > > image when I click it. I extended mx:Image to handle the

[flexcoders] mouseUp misfire??? and why so many warnings in log file?

2005-08-04 Thread zhongtie
I have two JPG images on convas, and want to draw a border around the image when I click it. I extended mx:Image to handle the mouseUp event. However, when I clicked on image1, image2 also had the border drawn around it. Why did both images received the mouseUp event? Attached please find the simpl

[flexcoders] Re: Writing a Custom Data Provider

2005-07-21 Thread zhongtie
der, I > think the livedocs might have been updated to reflect it. > > > > I believe there is an example of a custom tree data provider out there > but I couldn't speak of it for sure. > > > > Matt > > > > ____ >

[flexcoders] Re: dynamically creating children suggestions?

2005-07-21 Thread zhongtie
That way for each different XML, backend Flex server needs to compile it into a new swf, which, in my experience, has been a not so fast process. Robert's screen is going to hang either way. But frankly, I don't have a solution :( tim --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTE

[flexcoders] Writing a Custom Data Provider

2005-07-21 Thread zhongtie
Hi, I am trying to write a custome data provider for my list control. My data is not an array, so I am trying to rewrite all those APIs. Here are some questions: 1. is "modelChanged" event subscription handled by the flex framework? In another word, do I need to do any thing besides calling dispa