Incompatible classes when loading SWF

Posted by Bart van Heukelom on Stack Overflow See other posts from Stack Overflow or by Bart van Heukelom
Published on 2010-04-02T09:20:03Z Indexed on 2010/04/02 9:23 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

I have two ActionScript 3 projects, game(.swf) and minigame(.swf). At runtime the main game loads the minigame via Loader. I also have a shared library (SWC) of event classes, included by both, which minigame will need to dispatch and game will need to listen to.

First: Is this possible this way?

Second: What will happen if I compile the minigame, then change the event classes so they're incompatible, then compile the main game. Will Flash crash when trying to load the minigame SWF? (I hope so)

Third: And what will happen if I change the event classes, but in a way that preserves interface-level compatibility?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about swc