[flexcoders] Re:This component won't populate with data

2009-04-21 Thread Pilby
DOH! (slaps himself on the head) I really should avoid continuing to work when I'm already dead tired. :( Thanks guys.

[flexcoders] Re: Datagrid question

2009-04-20 Thread Pilby
Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML

[flexcoders] Re: Datagrid question

2009-04-20 Thread Pilby
.iterate through each row. You absolutely *cannot* do that, because all the DG rows do not exist, only the rows currently visible exist. You need to have your renderer update the dataProvider with the generated value, then iterate through the dataProvider. This should not be difficult. Tracy

[flexcoders] Re:How do I detect 'enter' key on a textInput control?

2009-04-20 Thread Pilby
Here is one way to do it. Let's say this is your mxml: mx:TextInput id=txt width=200 keyDown=txtKeyDownHandler(event)/ Then your keydown handler would be: // Waiting for return key private function txtKeyDownHandler(event:KeyboardEvent):void { if (event.keyCode == 13) { // do

[flexcoders] Re: Another on try-catch-finally ...

2009-03-04 Thread Pilby
There is a possible benefit to having a try/catch with an empty catch block -- that your application won't stop execution. If the problem that occurred in the try block does cause a subsequent problem down the road, that's a different story.

[flexcoders] RE: Passing array to component

2005-04-19 Thread Pilby
In the application where the component resides, I have a 3-element array of strings called "myArray"that needs to be passed to my component. So my code is: myComponent xmlns="*" arrObj="{ myArray}"/ where "myComponent" is my custom component, and "myArray" is the 3-element array of

htmlText property doesn't support table tag?

2005-03-02 Thread Pilby
I have a mx:Text control where i'm equating its htmlText property with a full-fledged html document. The results didn't come out too well. I'd like to say it doesn't support the table tag, but in the final rendering, it seems that boldfaced and italicized text are coming out right, and I

Getting mouse coordinates at a drop operation

2005-03-02 Thread Pilby
How can Iget the mouse xy-coordinates? I'm trying to drop an object into a Canvas, and I'd like the object to position itself where it is dropped, and I can't do that unless I knew what the mouse xy-coordinatse are at the time. Thanks.

How do I get references to children of a container?

2005-03-02 Thread Pilby
If I had a mx:Canvas id="cvs" which had 3 buttons, how can I access references to these 3 buttons programmatically? I have tried : for (var p in cvs) alert(p); But I seeno property I can use to iterate through the children, nor do I see the "id" of these 3 buttons. Thanks.

How do I create a listener WITH parameters for a button dynamically?

2005-02-25 Thread Pilby
Here is an example where I am creating a button using mxml: mx:Button id="btnOK" label="OK" click="btnOKClicked(event, 'hello', 'blue', 'bird');" / Notice mythat the click event refers to a function, btnOKClicked, passing 4 parameters to it. Here is an example of me creating the same

RE: Mouse cursor change question

2005-02-15 Thread Pilby
How can Ichange the mouse cursor to a hand, just like the hand cursor we get when the mouse is hovered over a mx:Link control? And how do I change it back to the normal cursor? Thanks.

Drag-and-drop question

2005-02-12 Thread Pilby
Does Flex's drag-and-drop support dropping of mx:Button or mx:Text objects into a container like a mx:VBox? Or am I limited to dragging only items from a Tree, a List,or a datagrid? When I try to drag a mx:Text control onto a mx:VBox, everything seems to go find until the DragDrop event

RE: htmlText question

2005-02-11 Thread Pilby
I am posed with a requirement where a display of mixed fontweights and fonts is needed. For that reason, I chose to use a mx:Text control via its htmlText property, applying the appropriate HTML to accomplish this. More specifically, the mx:Text box was supposed to contain a company name on