PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: Sammi on January 01, 2009, 08:53:29



Title: Hybrid CDROM
Post by: Sammi on January 01, 2009, 08:53:29
Hi,

I am creating a hybrid CD-ROM from a project that was creating with PureMVC - and having some problems.

I have my Application.swf that is a PureMVC application.  Then for the CD-ROM I created a Start.exe and Start.app that loads in Application.swf.

But it seems like it doesn't work.  Maybe I can't load a PureMVC application into a swf and expect it to work?  What happens is that the Application is loaded but no notifications seem to work.

Is that normal?  I think so - but hope not ;)

Best,
Sammi






Title: Re: Hybrid CDROM
Post by: puremvc on January 01, 2009, 09:30:14
Are you using as3/multicore? How are you kicking off the loaded swf?

-=Cliff>


Title: Re: Hybrid CDROM
Post by: Sammi on January 02, 2009, 04:16:43
Hi,

I am using single core. I was afraid that multicore would be required for this and I haven't looked into the multicore version.

I just load the min app with Loader.  The main app has:

:
addEventListener( Event.ADDED_TO_STAGE, startup );
and inside startup I do the usual :

:
_facade = ApplicationFacade.getInstance( );
_facade.startup( this );

and finally in the ApplicationFacade I do:

:
sendNotification( STARTUP, viewComponent );
that should start the whole thing.

Best,
Sammi


Title: Re: Hybrid CDROM
Post by: puremvc on January 02, 2009, 01:19:03
If the main app has a facade and the loaded app has a facade, you need MultiCore.

-=Cliff>


Title: Re: Hybrid CDROM
Post by: Sammi on January 02, 2009, 07:35:47
Ok,

so if the loader swf, which is basically nothing but a Loader, does not have a facade, then it should work?

Then I must be having some other problem. I will look into that.

Best,
Sammi


Title: Re: Hybrid CDROM
Post by: puremvc on January 03, 2009, 07:48:07
Seems like the above should work, then. Is your startup method firing? Are you sure the loaded app is added to the stage?

-=Cliff>