topleft topright

Welcome, Guest. Please login or register.
June 19, 2013, 05:18:30 AM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.

Pages: [1] 2 3 ... 10
 1 
 on: June 11, 2013, 05:13:33 PM 
Started by bluntcoder - Last post by puremvc
Quote
Almost no one out in the HTML5 community seems to know of this API.
That's because the only demo other than the ones in our big GitHub tree of everything is here: http://todomvc.com.

We need more demos and of PureMVC working with various other frameworks. Fortunately, it looks like I'm going to be joining a project soon where I'll be knee deep in JS frameworks and hope be able to more readily contribute to the JS port myself. (I've been primarily a Flex guy for the last 9 years or so).

Quote
Is this just a matter of the PureMVC guys having no skill in marketing / awareness?

Yes, sort of.

It's partly because there has been no full-bore champion of it in the JS world as there was in Flex.

But  part of it is due to relegating it to a slot in this site that is 'so last decade'.

In fact Mike Britton and I have been chatting about building a site devoted to the JS framework, designed and built with HTML5 tools including PureMVC JS. Something along the lines of the Bootstrap site.

Cheers,
-=Cliff>

 2 
 on: June 11, 2013, 11:21:17 AM 
Started by bluntcoder - Last post by bluntcoder
Hello,

I've been using PureMVC for my as3 projects and it's awesome. My next client is insisting that the project though is going to be HTML5 - and it is quite a doozy. All the form factors will be supported (smartphone / tablet / PC) so using an MVC framework is a no brainer. I would love to continue to use PureMVC however I am nervous given the lack of popularity of the port of it to Javascript compared to other libraries such as backbone.js, ember.js and knockout. Almost no one out in the HTML5 community seems to know of this API.

Is this just a matter of the PureMVC guys having no skill in marketing / awareness or is there something fundamentally wrong with the software? I understand it's difficult to get into - and perhaps that's all what it is, but I wanted to ask this question here to see what people's thoughts are.

Thanks,
  BC

 3 
 on: May 10, 2013, 07:04:41 AM 
Started by Bonky - Last post by puremvc
With the State Machine utility, state is a running thing that is announced. Actors don't generally 'check' the state, but instead respond to state changes as they are sent. If you are persisting the application state represented by the state machine in a proxy, then you should rethink your design. Things should never be confused about the application state, but instead always be organized to represent the current state.

To your point with canceling the tabs, you could likely capture the event, cancel it, and dispatch a different event that your mediator hears and sends off the notification to the state machine. That would trigger the guard logic that may cancel the action. Or it might let the action go through and a CHANGED note goes out that the mediator hears and it changes the tab.

-=Cliff>


 4 
 on: May 09, 2013, 03:48:32 PM 
Started by Bonky - Last post by Bonky
I think if I check the active state right before I do the return it will work. Didn't know this would be that easy. Smiley I already have an ApplicationStateProxy I am using.

 5 
 on: May 09, 2013, 03:23:47 PM 
Started by Bonky - Last post by Bonky
Background:
I am using Haxe PureMVC with State Machine to build a web application (deployed to JavaScript). I am integrating it with a government-mandated UI framework that uses a JQuery-powered tabbed interface. The application has 4 tabs and I have created an application state for each of these tabs. The tab interface (EasyTabs) has a built-in event system which helps the integration. Clicking a tab fires an event, and if the handler for the event (in my Haxe app) returns true, only then will the tab view change.

Problem:
I want that handler to send a StateMachine.CHANGE notification and let the "Entering" command for the next tab state to do the necessary checks that ultimately cancel or approve the state transition. I'm just not sure how to send the notification and use the results of that action to return true or false so that EasyTabs gets the Boolean it requires.

Here's my current code:
Code:
var tabs=new JQuery("#theTabs");
tabs.bind("easytabs:before",tabHooksHandler); //setup the handler for the tab event

private function tabHooksHandler(e:Dynamic,clicked:Dynamic,targetPanel:Dynamic,settings:Dynamic):Bool{
switch(targetPanel.selector){
case"#tab1":
                    sendNotification ( StateMachine.ACTION, null, Main.ACTION_GOTO_FILE );
case"#tab2":
                    sendNotification ( StateMachine.ACTION, null, Main.ACTION_GOTO_TREES );
case"#tab3":
                    sendNotification ( StateMachine.ACTION, null, Main.ACTION_GOTO_MAP );
case"#tab4":
                    sendNotification ( StateMachine.ACTION, null, Main.ACTION_GOTO_CALCULATOR );
}
return true; //this lets EasyTabs complete the switch of tabs. If the StateMachine does a cancel, I would want this to return false.
}
So, could I use a callback somehow? Suggestions would be appreciated, thanks!

 6 
 on: May 06, 2013, 07:41:06 AM 
Started by Elephant - Last post by puremvc
A project I've been working on for a couple of years now has:

- Web creation tool
- Web viewer
- Desktop Viewer
- iPad Viewer
- Android tablet viewer

The libs break down like this:

- LibInhouse - everything that is sharable between all the above projects
- LibAir - everything that is sharable only between desktop and mobile projects
- LibMobile - everything that is sharable only between the mobile projects

PureMVC is everywhere in these libs and application projects.

-=Cliff>

 7 
 on: May 03, 2013, 11:41:40 AM 
Started by Elephant - Last post by Elephant
I could use some advice on managing my class structure.  My project is quite complex -- it has five projects (all using Flex):

Desktop
Mobile
Web
CommonLib
AIRLib

About 90% of the current application functionality is in the CommonLib, with AIR API calls happening in AIRLib.  The three "display" projects kick off the STARTUP notification by doing:

Code:
CommonFacade.getInstance().startup(this);

Some of our Proxy classes use flash.filesystem.File functionality if available:

Code:
private var localData:LocalDelegate = ReflectionManager.createLocalDelegate();
private var appVO:AppVO;
public function loadAppData():void {
  if (localData) {
    appVO = localData.loadData();
  } else {
    appVO = remoteData.loadData();
  }
etc...

Currently, the Desktop and Mobile projects call something like 
Code:
ReflectionManager.setLocalDelegateClass(LocalFileDelegate);

This pattern has worked reasonably well so far, but I'm wondering if there isn't a better way.  I notice that we don't have *any* PureMVC-aware code in our AIRLib project, and my current task might go more smoothly if we did.

I'm getting some data from a native extension for iOS and Android that needs to be shown on a view in CommonLib.  It would be nice and simple to have that data come in on a Notification, but it doesn't cleanly fit into any existing classes in the application.

 8 
 on: March 21, 2013, 02:08:45 PM 
Started by fsilvestrim - Last post by puremvc
Also, since workers are not supported on mobile AIR platforms[1], you wouldn't want the framework tied to them. Otherwise, you'd write an app for web and desktop but then not be able to use it on mobile. While UI's usually change between these platforms, business and domain logic is generally reusable if best practices are followed.

-=Cliff>

1) Worker AS3 Doc
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Worker.html
Quote
"Note: The use of workers for concurrency is only supported in Flash Player and in AIR on desktop platforms. Concurrency is not supported on mobile AIR platforms. You can use the static isSupported property to check whether concurrency is supported before attempting to use it."

 9 
 on: March 21, 2013, 01:38:06 PM 
Started by fsilvestrim - Last post by puremvc
Why should a separate version of the framework be required? Seems as if you could create separate multicore modules, and run them as workers. You may have to mediate each worker in the shell. I confess I haven't tried it, but I don't imagine the framework itself has to change.

Feedback?

-=Cliff>

 10 
 on: March 21, 2013, 01:27:00 PM 
Started by fsilvestrim - Last post by fsilvestrim
Hello,

I have looked all over the internet and I didn't find a version of the as3 multicore framework that supports multi thread via AS3 Workers and Mutex mechanism.
 
Has somebody seen this?

Thanks in advance

Pages: [1] 2 3 ... 10


Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC
Copyright © 2006-2008 Futurescale, Inc.