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 / FlexJS version of MultiCore PureMVC on: March 20, 2017, 01:48:23
Hi Cliff,

My names is Piotr Zarzycki and I am one of the PMC member of Apache Flex project. With the Team we are working on next generation Flex framework FlexJS. [1] One of our users Prashant created interesting demo when he was able to use MultiCore version of PureMVC to build application. He basically creates from sources of MultiCore PureMVC swc using FlexJS compiler. [2] (swc is in bin folder)

I like his demo cause it's simply showing that we are able to use PureMVC to build FlexJS applications. I would like to put this demo in our examples - make it available for each user who would like to use FlexJS.

We are building our examples and framework itself using Ant or Maven. I would like to prepare Prashant's demo to be buildable by Maven and make FlexJS version of PureMVC downloadable from Maven central.

- Would it be possible to put our FlexJS version of PureMVC.swc in maven central ?

[1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS
[2] https://www.dropbox.com/s/2h2cdfyje5lojlh/PureMVC.zip

Thank you in advance,
Piotr
2  Announcements and General Discussion / Fabrication / Questions about Facade (Issue 25) on: September 30, 2010, 03:02:12
If you whant register on forum you must write email with reason of registration.
Link to contact form: http://futurescale.com/v3/company/contact-us --> Select "Request Access to Futurescale-operated Forums"

To solve your problem you can use Custom dependencies mechanism -> http://code.google.com/p/fabrication/wiki/CustomDependencies.

: (mxml)
<fabrication:DependenciesProvider xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:fabrication="http://puremvc.org/utilities/fabrication/2010">
    <fx:Object id="userVo"
               userVo=""/>
</fabrication:DependenciesProvider>

In Main application override properties:

: (as)
override public function get dependencyProviders():Array
{
    return super.dependencyProviders.concat([LoggedUserProvider]);
}

When user login to your application by proxy class (I assume you use proxy to login user) you can modify dependency provider object:

:
public class LoginProxy extends FabricationProxy
{
//---------------------------------------------------------------
// <------ PUBLIC CONSTS ------>
//---------------------------------------------------------------
//{
public static const NAME:String = "LoginProxy";
//}
//---------------------------------------------------------------
// <------ CTOR ------>
//{
public function LoginProxy(data:Object=null)
{
super(NAME, data);
}
//}
//---------------------------------------------------------------
// <------ PUBLIC & PRIVATE PROPERTIES ------>
//{
[Inject("userVo")]
public var userObj:Object;
//}
//---------------------------------------------------------------
// <------ PUBLIC METHODS/OVERRIDE ------>
//{
public function loginUser(email:String, password:String):void
{
var userVo:UserVo = new UserVo("Piotr", "Z", email);
//modify provider
userObj.userVo = userVo;
}
//}
}

Whenever you whant use logged user in your fabrication actors Command, Mediator or Proxy you just create property:

[Inject("userVo")]
public var userVo:Object;

I hope it help. ;)

Pages: [1]