Hi Alex,

The as class is a kind of pop-up Alert. In the early parts of the
actionscript code the first thing that happens is a RemoteObject gets called
and the as class pops up a "Getting data" message. This happens in
Main.init() and View2.init(). 

For some reason the first bit of actionScript to get built is View2.init()
which then builds AlertPopup.as and then fails because Main.init() has not
yet been built.

(View1.init may also have run but the first Alert in here is in a second
function called by View1.init)

When running the code, the Alert in View2.init does not occur until after
the user makes some selections in View1.

I'm wondering if the order code is built would differ between browsers and
processor speeds on different computers so that the order code is built is
more or less random.

Perhaps an answer would be to move all the code from Main and have it appear
in a View0 whose init would then hopefully be built before View2. It looks
as though applicationComplete is not called in JS until all the Views have
been completely built whereas in Flex initComplete was called after the
display objects were built.

Doug 







--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Reply via email to