I have 2 swf-s, main.swf and another.swf.
main.swf will load another.swf at run-time.
Corresponding classes for them are Main
and Another
.
Both of them import
a common class Constant
.
The problem is:
If I make changes to class Constant
, like define a new constant for class Another
, then I surely wants to compile another.swf.
Then, I run main.swf and load another.swf, BUT the changes of Constant
are not applied!
In the contrary, I have to re-compile main.swf to make the changes applied to another.swf.
It looks like since another.swf is loaded by main.swf, so the import
also relies on main.swf.
When you run main.swf first, class Main
import
the Constant
class first, so any upcoming import
is hidden (or ignored?), is this true?
Is the import
only executed once, and is executed by the first played .swf?
The .swf load is done by flash.display.Loader
class.