Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Flash CSS/AS3 example of loading external swf as module under MultiCore - Help on: August 15, 2008, 11:19:09
Hi Cliff and other fellow PureMVC developers.

I have been using the Standard version of PureMVC under Flash CS3, and I've been very happy with the results.

I am really excited to make the jump to Multicore for Flash CS3, but since there are no examples, I thought I'd have a go at doing one up. In particular, I wanted to know how to take external standalone swf files (they may use the PureMVC Multicore framework or not) and be able to load one of these into a "Shell" app. My understanding was that Multicore allows for multiple instance of the PureMVC Framework to run under one shell in 1 VM, and that there is no need to bump these externally loaded apps into a separate ApplicationDomains, since multiple instances of the framework are permitted under MultiCore, which was not the case with the old Standard edition as far as I understand.

I did up a very simple SHELL that initializes with it's own key, and then I did up a simple module(external SWF if you CS3 guy/gall), which also initializes with a different key. The main app fires up, and has a button you can click that tries to load the module(external PureMVC enabled swf).

What I was expecting was for the App/Shell to load in the external swf(module) and display it, and because it has it's own key, it carries on with its startup routine, independent of the main app/shell.

What I am finding is that the app/shell tries to load in the module/swf file, but then for some reason, instead of the module running it's own starup routine, it causes the main app/shell to rerun it's startup routine. As far as I am aware, this should not happen, since both shell and module were created with different keys. It's like the module is having an identity crisis or something.

Also, When I try loading in a module/external swf with no PureMVC code in it, it loads into the shell no problem and displays as expected.

I have uploaded both the shell and the module code for people to have a look at. If anyone has as any ideas what is going on, or what I'm missing, I'd really appreciate the help. Once I have this working, I'd like to get it working with pipes, spiffy it up and submit if for an example since there are none currently for Flash CS3.

Files:
http://www.ethicalentertainment.net/AS3_Multicore_Modules_Example.zip

Also, if your curious I'm using Anthropod to view my trace/debugs. I've found it really useful for Flash and Air projects.
http://arthropod.stopp.se/

Cheers,

Richard




Pages: [1]