[flexcoders] Panel as itemrenderer

2008-09-10 Thread tsiesser
Hi - I'm trying to use a subclass of a Panel component as an item renderer in a List control. Works great - except the panel border is appearing in the same color as the background. Doesn't matter what values I set for borderColor or borderAlpha. Is there some way to get a colored border? Or is

[flexcoders] Enumerable classes

2008-01-10 Thread tsiesser
Is it possible to write a collection class in AS3 that is directly enumerable by a for-each statement? For example: var myCollection:MyCollection = new MyCollection(); myCollection.addItem(red); myCollection.addItem(green); myCollection.addItem(blue); for each (var item:Object in myCollection) {

[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread tsiesser
[mailto:[EMAIL PROTECTED] On Behalf Of tsiesser Sent: Friday, June 01, 2007 4:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Context menu mouseTarget vs. itemRenderer with Image control I'm hoping someone's had experience with this one... I have a TileList control

[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control

2007-06-02 Thread tsiesser
item renderers they have the mouse disabled in the constructor so this needs to be fixed. --- In flexcoders@yahoogroups.com, tsiesser tsiesser@ wrote: I'm hoping someone's had experience with this one... I have a TileList control with a custom itemRenderer. The renderer consists

[flexcoders] Context menu mouseTarget vs. itemRenderer with Image control

2007-06-01 Thread tsiesser
I'm hoping someone's had experience with this one... I have a TileList control with a custom itemRenderer. The renderer consists of an Image control and a few Label controls. I've also attached a custom context menu to the TileList. In the MENU_SELECT event, I want to set the TileList's

[flexcoders] Two-way data binding

2007-05-30 Thread tsiesser
Flex is a lovely thing. I've managed to do some quite advanced tricks using item renderers, datagrid extensions, and rotating images, and yet I find myself confused by something very basic. Perhaps data binding just doesn't do what I expect! Or hopefully, I'm just doing it wrong and some kind

[flexcoders] Disallowing selection of certain items in datagrid vs. shift-click multi-select

2007-04-26 Thread tsiesser
I have a datagrid where allowMutipleSelection is true. I'm trying to disallow selection of certain rows in the grid. I tried hooking into the ListEvent.CHANGE event and removing disallowed items from the selectedItems array: addEventListener(ListEvent.CHANGE, selectionChangeHandler);

[flexcoders] Re: DataGrid variableRowHeight problem

2007-04-20 Thread tsiesser
. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tsiesser Sent: Thursday, April 19, 2007 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid variableRowHeight problem Hi all - I am using a custom item renderer with a datagrid

[flexcoders] DataGrid variableRowHeight problem

2007-04-19 Thread tsiesser
Hi all - I am using a custom item renderer with a datagrid where variableRowHeight is set to true. The item renderer extends from UIComponent and contains a single UITextField. In renderer.commitProperties I explicitly set the UITextField and the item renderer to have the same height, which is

[flexcoders] Re: Italics in datagrid cell

2007-04-15 Thread tsiesser
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht ml From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tsiesser Sent: Friday, April 13, 2007 1:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders

[flexcoders] Italics in datagrid cell

2007-04-13 Thread tsiesser
Hi - I'm trying to display italics in a datagrid cell based on certain row criteria. I've created a custom itemRenderer in AS3 that derives from UIComponent and that contains a UITextField as a child. (This might seem a little over-complex for what I'm describing, but I have other use for doing it