Labels

Monday, December 7, 2009

Flex: Difference between invalidatelist and invalidatedisplaylist

visit:

http://stackoverflow.com/questions/74269/what-is-the-difference-between-invalidatelist-and-invalidatedisplaylist


invalidateList tells the component that the data has changed, and it needs to reload it and re-render it.

invalidateDisplayList tells the component that it needs to redraw itself (but not necessarily reload its data).

Flex: ComboBox Prompt Property

visit:

http://kb2.adobe.com/cps/000/1fecccba.html

Flex: Difference between rollOver and mouseOver

visit:

http://polygeek.com/1519_flex_the-difference-between-rollover-and-mouseover

http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/


The basic difference is that rollOut checks to see if the mouse is over the component that is listening for the event or a child of the component. mouseOut doesn’t do that so it fires causing the style to change before it can be corrected by mouseOver firing again.

Sunday, December 6, 2009

Good website for design and measurement related tools.

http://www.iconico.com/

Flex: HBox implementation in reverse order

Implement below given code and see the magic. Your HBox will display its children in reverse order. Same can be done for VBox and other containers.

package com
{
import flash.display.DisplayObject;

import mx.containers.HBox;

public class MyHBox extends HBox
{
public function MyHBox()
{
super();
}

public override function addChild
(child:DisplayObject):DisplayObject
{
this.addChildAt(child,0);
return child
}

}

}