Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
March 26, 2017, 12:13:15 AM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.
  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / FlexJS version of MultiCore PureMVC on: March 20, 2017, 01:48:23 PM
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 / General Discussion / Re: Advantages of PureMVC over Robotlegs 2 on: January 06, 2014, 04:49:24 AM
Hi naghekyan.

Have you checked also https://code.google.com/p/fabrication/ utility witch is add many intresting features to PureMVC.

Piotr
3  Announcements and General Discussion / Fabrication / Re: Fabrication releases and updates on: October 23, 2013, 07:15:56 AM
0.8.7
Changelog: https://code.google.com/p/fabrication/wiki/ChangeLog
4  Announcements and General Discussion / Fabrication / Re: Fabrication releases and updates on: January 13, 2013, 10:40:09 AM
0.8.6

Changelog: http://code.google.com/p/fabrication/wiki/ChangeLog
5  Announcements and General Discussion / Fabrication / Questions about Facade (Issue 25) on: September 30, 2010, 03:02:12 AM
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.

Code: (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:

Code: (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:

Code:
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. Wink

Pages: [1]