a new problem rises. It seems compiling a module strips it's dependencies of
the property alias. Which in turn is causing my module to not be able to
speak with our backend.

a small test case

*****main.mxml*****
public function loadModule():void {
    ml.url = "common/testModule"
    ml.visible = true;
    ml.includeInLayout = true;
}

public function test():void {
    var obj :Object = window["common"]["testModule"]; //current WA because
module will not instantiate
    addChild(obj as IUIComponent);
**********

*****testModule.mxml*****
creationComplete="onCC()"

import testVO
private var tVO :testVO = new testVO;

public function onCC():void {
    trace(tVO) //will not have alias. If you have private var testvo :testVO
in main.mxml it will have alias
}
**********

*****testVO.as*****
package {
    [RemoteClass(alias="com.some.path.as.testVO")]
    [Bindable]
    public class testVO {
        public function testVO {
            trace("testVO created");
        }
    }
}
**********

Where should I start looking now to resolve this issue? Any help would be
greatly appreciated.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Reply via email to