[flexcoders] Resize effect when I expand a Panel

2009-02-26 Thread faserone
I can't find any way to apply a resize effect when I expand a Panel
inside a DividedBox.
I tried using transition and applying a resize effect directly to
Panel resizeEffect, but without any effective result. In some cases
the behaviour is weird and I presume the cause could be that the
effect doesn't work well when using percentage dimension.

Here is my test code:
http://www.faser.net/public/tmp/flextest/testtrans.html

Anyway, do you think it's better to use transition or I can continue
to try to use the Panel resizeEffect event?




[flexcoders] Re: Flashing new row in a datagrid

2009-02-26 Thread faserone
--- In flexcoders@yahoogroups.com, jer_ela g...@... wrote:

 If the new rows have a timestamp of when they were added, you can use
 the AdvancedDataGrid styleFunction to change the style of a cell based
 on that timestamp.  Both AdvancedDataGrid and AdvancedDataGridColumn
 have the property.
 
 Here is a style function I used that made the text bright red for new
 records and then faded to black as the record aged.
 
 
 protected function styleElapsedTime(data:Object,  
col:AdvancedDataGridColumn):Object
 {  var color:uint = 0xff;
var ts:Date = new Date(data.timeStamp);
var now:Date = new Date();
var elapsedTime:int = (now.time - ts.time) / 6 ;
color = ColorUtil.adjustBrightness(color, - (elapsedTime * 4));
return {color: color};
 }



If I don't need the AdvancedDataGrid do you think it's ok to use it
only for this effect or there is an overhead?
I tried your solution, but I think that the problem is that I need to 
refresh the datagrid for changing color.
I don't think this is a viable solution because I have thousand of
rows, I would only blink the new rows for one second.



[flexcoders] Flashing new row in a datagrid

2009-02-25 Thread faserone
I would like to highlight the new rows added to a datagrid when the
dataprovider change.
Any hint?
Thanks.



[flexcoders] Padding in status message

2009-01-16 Thread faserone
Hi,
is there a way to apply a padding-right to the status message in a
Panel container?
I have a custom Panel with an icon at the right corner and I want a
padding to the status message.
I tried using:

mx:Panel status=Test test test statusStyleName=statusResult

.statusResult {
   padding-right:50;
}

but the the status text is always aligned to the right edge
overlapping my icon.

In case it doesn't work how can I emulate nbsp; in Flex?
Thanks.