On 7/2/16, 8:47 AM, "Yishay Weiss" <[email protected]> wrote:

>
>So in mx.controls.Alert (regular Flex SDK) they defaulted to
>FlexGlobals.topLevelApplication.
>
>Is there an equivalent reference in FlexJS?

Not yet. IMO, in the regular Flex SDK, it had some drawbacks, especially
for multi-window AIR apps where defaulting to the main window wasn't a
good idea, so the basic set of components does not currently make such
assumptions.  You can create your own Singleton/Global class or maybe we
should have a static on the various Application classes, not sure.  We'll
see what others want to use and eventually include it in FlexJS, but we
are trying to make sure we don't create too many unnecessary
interdependencies.  Some NotSoSimpleAlert or
AlertThatAssumesApplicationMainWindow class can make those assumptions
instead.

HTH,
-Alex

Reply via email to