You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by MikeH <mi...@googlemail.com.INVALID> on 2020/05/22 15:27:23 UTC

Variable Reference

Hi I am looking at converting a Flex application over to Royale. In Flex I
can use FlexGlobals.topLevelApplication.myVar to reference data set in the
main application. Does Royale have an equivalent th this?

Thanks
MikeH



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/

RE: Variable Reference

Posted by MikeH <mi...@googlemail.com.INVALID>.
HI thanks Yishay. I was having problems with FlexGlobals.topLevelApplication
not included. I think its ok now.

Thanks



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/

RE: Variable Reference

Posted by Yishay Weiss <yi...@hotmail.com>.
I had a look and FlexGlobals.topLevelApplication is an Object in Royale, so you’re not obliged to cast it.

From: Yishay Weiss<ma...@hotmail.com>
Sent: Sunday, May 24, 2020 12:02 PM
To: dev@flex.apache.org<ma...@flex.apache.org>
Subject: RE: Variable Reference

Hi Mike,

That should work. I don’t remember if Flex required you to cast FlexGlobals.topLevelApplication to your specific app class, but I think you would need to do that in Royale.

Yishay


From: MikeH <mi...@googlemail.com.INVALID>
Sent: Friday, May 22, 2020 6:27:23 PM
To: dev@flex.apache.org <de...@flex.apache.org>
Subject: Variable Reference

Hi I am looking at converting a Flex application over to Royale. In Flex I
can use FlexGlobals.topLevelApplication.myVar to reference data set in the
main application. Does Royale have an equivalent th this?

Thanks
MikeH



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/
From: MikeH<ma...@googlemail.com.INVALID>
Sent: Sunday, May 24, 2020 10:01 AM
To: dev@flex.apache.org<ma...@flex.apache.org>
Subject: Variable Reference

Hi I am looking at converting a Flex application over to Royale. In Flex I
can use FlexGlobals.topLevelApplication.myVar to reference data set in the
main application. Does Royale have an equivalent th this?

Thanks
MikeH



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/



RE: Variable Reference

Posted by Yishay Weiss <yi...@hotmail.com>.
Hi Mike,

That should work. I don’t remember if Flex required you to cast FlexGlobals.topLevelApplication to your specific app class, but I think you would need to do that in Royale.

Yishay


From: MikeH <mi...@googlemail.com.INVALID>
Sent: Friday, May 22, 2020 6:27:23 PM
To: dev@flex.apache.org <de...@flex.apache.org>
Subject: Variable Reference

Hi I am looking at converting a Flex application over to Royale. In Flex I
can use FlexGlobals.topLevelApplication.myVar to reference data set in the
main application. Does Royale have an equivalent th this?

Thanks
MikeH



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/
From: MikeH<ma...@googlemail.com.INVALID>
Sent: Sunday, May 24, 2020 10:01 AM
To: dev@flex.apache.org<ma...@flex.apache.org>
Subject: Variable Reference

Hi I am looking at converting a Flex application over to Royale. In Flex I
can use FlexGlobals.topLevelApplication.myVar to reference data set in the
main application. Does Royale have an equivalent th this?

Thanks
MikeH



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/