I must turn a Flex code into an Apache Royale one but in my research, there is on attribute for which i dont find the equivalent.
In Flex, to call an actionScipt function from a parent mxml, I have:
<mx:Button label="Login" click="parentDocument.myfunction()"/>
I found parentComponent during my research, but i have Access of possibly undefined property parentComponent error.
I also tried just 'parent' and the error became Call to a possibly undefined method verif_sharedobject through a reference with static type IParent.
I did some research about IParent, Container and Group (From jewel) but for the moment I have no success