Where is getInfo called from?
I'd need to see the actual code, I guess.
-rg
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of lar.drolet
Sent: Thursday, January 18, 2007 3:23 PM
To: [email protected]
Subject: [flexcoders] Loading Modules issue/confusion
Playing with the whole Module loading thing and discovered a few
things that seem odd, or maybe I just don't get Modules like I
thought
I did.
I created an Application with a ModuleLoader including two
listeners:
Setup and Ready.
Inside of my Module.swf (swf to load into the ModuleLoader) I
have a
simple Canvas object, within the Module tag I also include a
creationComplete which calls initMod. Also inside the Module.swf
I
have a function called getInfo that does a simple trace.
When I compile my Application I expected to see some traces in
the
following order:
Loading Module...
Module Setup...
Loaded Module created...
Module Ready...
getInfo called...
or
Loading Module...
Module Setup...
Module Ready...
Loaded Module created...
getInfo called...
My thinking was that as I load the Module.swf I would see the
Setup
called when it begins to load, then when the Module.swf is
loaded the
creationComplete would fire, followed by the Ready with my
getInfo
call firing last. The Ready and the creationComplete may be flip
flopped I was not sure which would fire first.
What did trace out surprised me.
Loading Module...
Module Setup...
Module Ready...
getInfo called...
Loaded Module created...
So what stumped me is that the getInfo call actually worked
before the
creationComplete fired. Why did this happen in this order?
Also having issues with the idea of passing data on the Query
string
but that is for another post still playing with the code.
Thanks.
LD