Wednesday 31 March 2010

[Flex] -Swiz framework [Inject] method

How using the [Inject] Method

There are Two fies - AppDeviceGAL.as , DeviceGAL.mxml

try to move the parameter value from AppDeviceGAL to DeviceGAL (AppDeviceGAL -> DeviceGAL)

---- AppDeviceGAL.as ----
public var aaa:AAAMethod;
.....
aaa.param1= 0;
....

----- AAAMethod ----
[Outject(name="param1")]
[Bindable]
public function set param1(value:int):void
{
_param1 = value;
}
public function get param1():int
{
return _param1;
}

---- DeviceGAL ----
[Inject("aaa")]
public var bbb:AAAMethod;
.....
Alert.show(bbb.param1);

Thursday 4 March 2010

[Error] Address already in use: JVM_Bind

- Error message

java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)

- Solution
1. open command
2. c:\>netstat -a -n -o
3. check 8080 PID
4. kill the process