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 / Re: Issue communicating between a Fx Project and Fx Library Project w/o componen on: May 03, 2008, 07:12:54
I appreciate the response, know you are busy!


I'll go that route then; I also noticed the LocalConnection class for communicating between swf's. I am on mission to build some sort of traffic director between the cores in the long run, but in the short run, I appreciate your advice and I stick with that.

Look forward to anymore epiphany's that evolve from MultiCore library!

Thanks again!

-Tony
2  PureMVC Manifold / MultiCore Version / Re: Debugging the MultiCore PureMVC Universe on: May 03, 2008, 07:09:48

Thanks - it's all good now!!

I knew it was a user error but didn't find much help in my Google search endeavors...

3  PureMVC Manifold / MultiCore Version / Re: Communicating between widgets on: May 02, 2008, 02:18:18
Hi Zilet,

I tried passing a key (from the master app) into module to sent a notification but I receive a 'null' of the facade instance. I tried to debug it referring to another forum post for debugging, but apparently my version of Flex 3 doesn't have the option to view "inaccessible member vars".. at least to m knowledge.

Do you have a basic sample from a child app calling the parent app; would be greatly appreciated!

Thanks!

-Tony
4  PureMVC Manifold / MultiCore Version / Re: Debugging the MultiCore PureMVC Universe on: May 02, 2008, 12:35:05
Hi Cliff,


I have the latest version of Flex Builder 3 and don't see the option you mentioned from within the variables window or tab? Is there something I might have missed?

Thanks!

-Tony
5  PureMVC Manifold / MultiCore Version / Issue communicating between a Fx Project and Fx Library Project w/o components on: May 01, 2008, 10:40:55
Hi Cliff,


This multiCore version of PureMVC is awesome. I've successfully created a Flex Library application with it's one facade and "LibraryApplication" class (instead of app.mxml) and everything works fine internally(notifications sent/received, etc).

Here is the problem I am facing; I have a reusable section for field validation in my Fx Library that makes use of a mediator, proxy and command. I can communicate to the validation logic from the parent application via a method call, but I can't find a way to communicate from the Fx Library Project back to the parent app.

I didn't want to use an interface because I want the library to be completely agnostic of any Flex application that would want to take advantage of it.

Is there some sort of communication "bridge" or "adapter" class that I can take advantage of to communicate between cores other than utilizing an interface?

Thanks!
6  Announcements and General Discussion / General Discussion / Re: Sharing the PureMVC Facade Instance between Flex libraries on: February 11, 2008, 12:30:39
Thanks for the quick response!

Here is my problem:


I have a AIR application(the main app), let's call it 'app_A' and a flex library project called 'lib_B'.


I want to create a mediator in to be used in 'app_A' in the 'lib_B' library.


In order to get access to the facade singleton from 'app_A' in the 'lib_B' flex library i would have to add the circular reference to 'app_A' as follows:


import com.app_A.ApplicationFacade;


How do I go about getting access to the Facade singleton in the mediator in 'lib_B' without creating this circular refence. The only thing I could think of was passing an instance of the facade in the mediator constructor..

Thanks!
 
7  Announcements and General Discussion / General Discussion / Re: Sharing the PureMVC Facade Instance between Flex libraries on: February 11, 2008, 10:54:55
Hi Cliff,


I have been able to successfully use commands and proxies in external libraries, but I haven't been able to use a mediator in an external library.

I don't want to create a circular references with the parent application but I haven't found out how to access the application facade from an mediator in an external library.

For example, I have a mediator in an external library that i would like to retrieve a proxy from the application facade. Do you have an example or could you please explain how I would accomplish this?

Example:
:

import org.puremvc.interfaces.IMediator;
import org.puremvc.interfaces.INotification;
import org.puremvc.patterns.mediator.Mediator;
import org.puremvc.patterns.observer.Notification;

public class MyMediator extends Mediator implements IMediator
{


public static const NAME:String = 'MyMediator ';
                private var myProxy:MyProxy ;


public function MyMediator ( viewComponent:Object )
{
super( viewComponent );

// HOW WOULD I ACCOMPLISH THE STATEMENT DIRECTLY BELOW?
  myProxy= facade.retrieveProxy( MyProxy.NAME ) as MyProxy;
}




Thanks for your time!

-Tony
8  Announcements and General Discussion / General Discussion / Re: Sharing the PureMVC Facade Instance between Flex libraries on: February 06, 2008, 12:03:55
I appreciate the quick and detailed response!  :) 


I had started going in that direction towards that end of the day. What I did was actually create proxies and commands in the external library, register them in the main application facade and communicate with the proxies/commands through the application mediator & notifications. So, in essence, is it best to keep mediators out of external libraries?

If a mediator is created in the external library(utility), how would I a proxy from the application facade instantiated from the main app?

Thanks! 
9  Announcements and General Discussion / General Discussion / Sharing the PureMVC Facade Instance between Flex libraries on: February 05, 2008, 02:27:24
Hello all,

First off, we just recently converted our first project into the pureMVC architecture with great success. It's helping immensely with maintenance around here and everyone loves this new approach.

My question is as follows; we currently are building a flex, framework library that we can utilize for all our core business functions. What is the best a approach utilize PureMVC architecture between libraries?

At this point, for commands that i've created in the framework library, I added a parameter from to pass the facade instance in. It seems to be working with this approach, but I wanted to know if there is a better way to do this.

Thanks!

-Tony
Pages: [1]