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  Announcements and General Discussion / General Discussion / Re: loading exernal views in a flash application on: December 13, 2007, 11:06:27
I have implemented the new idiom, and started testing the concept outlined above but it's generating an issue...

To make it had to declare "instance" in ApplicationFacade as a private static var. Is this still respecting the singleton pattern ?

And

In my ApplicationMediator which is holding the reference to the "root" of my application and is being created by ViewPrepCommand i am placing a preloaderMC on the stage:

:
var preloaderMC:Preloader = new Preloader();
facade.registerMediator( new PreloaderMediator(preloaderMC));
application.addChild(preloaderMC);


but when i place this code
:
import com.me.myapp.ApplicationFacade;
ApplicationFacade.getInstance().registerLoadedClip(this);

on the time line of the swf to load and publish, it runs through all the ApplicationFacade code gets to the ApplicationMediator and returns an error because it can't find the loadingBarMC being reference in the Preloader class because the preloaderMC is not in the swf library...

so if i comment out the instantiation of the preloader in the ApplicationMediator and then publish the swf it works fine... then i enable the instantiation on the preloader in the ApplicationMediator publish and my application works.

Basically the reference to view components in the ApplicationMediator is generating errors when you publish the swf that don't have these view components in there libraries...

Thanks ;)
2  Announcements and General Discussion / General Discussion / Re: loading exernal views in a flash application on: December 13, 2007, 03:18:37
Thank you Sir
3  Announcements and General Discussion / General Discussion / loading exernal views in a flash application on: December 11, 2007, 05:46:45
Hi everyone,

I am trying to build an application in flash using the pureMVC, the question is:

I want to load an external swf ( incorporating a view components on its stage ) in my application and i would like this new view components to be able to send notification to the facade....   I cannot register a mediator for that view components in the ViewPrepCommand cause at the initialization of the application that view components is not loaded yet and will only be loaded when a user click on the button that loads that swf.

Basically i am wondering what's the steps to follow to use a new view components at runtime ?
Should the registration Mediator code:
:
facade.registerMediator(new MyViewMediator(myViewCompMC))
of the new view components be on the external swf ? 

I hope all this is making sense, any feedback will be appreciated,

Thanks ! 
4  PureMVC Manifold / Bug Report / Re: HelloFlash not working, with PureMVC 1.6 !?! on: November 19, 2007, 02:36:22
I just removed the swc and its all working now thanks Cliff, Pure MVC here i come !!! 
5  PureMVC Manifold / Bug Report / Re: HelloFlash not working, with PureMVC 1.6 !?! on: November 18, 2007, 10:31:53
done some more test, rebooted etc... ;( but still not working. i found that my paths are correct though because if i rename Facade.as to Facade1.as and extend Facade1 it then suddenly finds it... i don't get it, it couldn't find Facade but it finds Facade1 !?!?!!? what is going on ??? anyone has any clue ???
6  PureMVC Manifold / Bug Report / [ DEFUSED ] HelloFlash not working, with PureMVC 1.6 !?! on: November 18, 2007, 08:33:25
Hi, i have just downloaded the PureMVC 1.6.zip and the HelloFlash.zip
unzipped both and pointed my publish settings actionscrip 3 path to: PureMVC and HelloFlash respectively and i get: Facade could not be found.... i have tried to resolve this issue over the past hours and i can't figure it out... can somebody help me....   :'(
 
Pages: [1]