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);
Wednesday, 31 March 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment