Sunday 31 January 2010

[Eclipse] Run Configuration - Arguments

- Program arguments
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console -clean

- VM arguments
-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dosgi.clean=true -Dorg.osgi.service.http.port=7777

Wednesday 13 January 2010

include action script file

[mx:Script source="Box.as"/]

Monday 11 January 2010

[Flex] Create Custom Component tutorial

- Custom component
http://tutorials.jenkov.com/flex-components/index.html : chart sample

http://www.brooksandrus.com/blog/2008/05/26/adding-styles-to-custom-flex-components/

http://tutorials.jenkov.com/flex-components/component-basics.html

http://tutorials.jenkov.com/flex-components/component-with-data-provider.html

http://www.brooksandrus.com/blog/2008/05/26/adding-styles-to-custom-flex-components/

[Flex] - Number ","

public function convTxt():void
{
data=numFormat.format(data);
}

......
.......
........
[mx:NumberFormatter id="numFormat" useThousandsSeparator="true" /]

Wednesday 6 January 2010

[Flex] Event Handling 2

a.mxml -> parent
b.mxml -> sub

============== b.mxml ==================
[mx:Metadata]
[Event(name="settingOver", type="flash.events.Event")]
[/mx:Metadata]
..
..
..

var e:Event = new Event("settingOver");
this.dispatchEvent(e);
..
..
============== a.mxml =====================
var _b:b;
_b.addEventListener("settingOver", settingOverFunction);
..
..
public function settingOverFunction(e:Event):void
{
// do something
}

[Flex] - Event Handling

http://cafe.naver.com/javacircle.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=38710