Flex :: Architecture - Application Framework - PureMVC Portability Vs Swiz?

Dec 9, 2009

My company is building a Flex application that we may need to port to other platforms:

[Code]...

Currently, I'm looking into application frameworks to build upon and I'm torn between pureMVC and Swiz. I LOVE swiz for its simplicity and how it just gives you a way to hook things up and then apply your own patterns. From a flex-only perspective, this is my 1st choice. But, PureMVC is platform-independent and has already been ported over to most of the platforms that are mentioned above. How valuable is this portability? Will it really make our lives significantly easier when it comes to porting and developing/maintaining multiple applications? If so, then it seems like PureMVC is the way to go.

Alternatively, since Silverlight has the most definite business case for porting of our application, maybe we could port Swiz to Silverlight? I'm not too familiar with which AS3 language and Flex framework features Swiz depends on and whether they are available in C#/Silvelright.

View 2 Replies


Similar Posts:


Flex :: Swiz Framework With AIR - Using ViewAdded/ViewRemoved On Child Windows?

Sep 9, 2011

I'm trying to implement a popup window (NativeWindowType.UTILITY) in an AIR 2.7 application that uses Swiz for dependency injection.I have followed the Swiz guidelines that I've been able to find, and implemented ISwizAware on the class that creates the window, and I am calling _swiz.registerWindow() before opening the window, and dependency injection works fine on the window itself after this.

However, the problem I am running into is that I have a child view within that window, and I have a mediator that uses the [ViewAdded] and [ViewRemoved] tags. Neither the view added nor view removed functions are triggering. I'm thinking the issue is either:

The child view is not correctly registering with Swiz.The swiz instance doesn't know about the beans (I have tried manually adding the bean however, which didn't have any effect).The ViewAdded and ViewRemoved metadata tags simply aren't working because each NativeWindow object has its own stage instance.

View 1 Replies

ActionScript 3.0 :: PureMVC Or Gaia Framework?

Apr 19, 2010

Which framework is the best one to execute Website projects? I was researching around Flash website blogs and articles talking about the great advantage at daily production with these frameworks.In my case i'm used to get basic/intermediate projects that consists in Animations, Transitions between swf pages and at the most important point: liquid layouts.Gaia Framework seems to help a lot at organization and singular work time reduction spent.

View 4 Replies

Flex :: Unit Testing Puremvc Based Application?

Jul 10, 2010

I have a flex application written using PureMVC framework.Now,I want to write tests.We are using FlashBuilder 4.Is FlexUnit sufficient for testing? Are there any issues you have faced while writing tests?

View 1 Replies

Flex :: Creating RobotLegs Module Within A PureMVC Shell Application

Oct 19, 2010

I'm working on an existing modular project that was built in PureMVC. Instead of converting everything over to RobotLegs, I want to create a new module using RobotLegs and plug it into the pureMVC shell. Currently, when the module loads, I get the following flash error: ReferenceError: Error #1065: Variable IMediatorMap is not defined.

Inititally, I thought it was because my module needed a pureMVC Mediator to call the pureMVC StartupCommand to get things "hooked up" and THEN create the RobotLegs' Context. However, that didn't work and I'm still getting the error.

View 2 Replies

Multi Process Architecture For Flex AIR Based Application?

Nov 11, 2010

I developing an AIR application in Flex that would be dealing with playing different SWFs. I am finding some issues as these SWFs that I am playing are heavy. I find that the animation is not smooth and is causing the graph of CPU usage to go high (my be because single thread architecture of Flex). I am therefore planning to have a multi process architecture for my application. Something like Google Chrome. I have one main application as one process and other SWFs would be playing in separate process but should be seen inside the main application window. How to make it possible in Flex?

View 4 Replies

Flex :: Flash - Adobe Air (Html) Application Architecture?

Feb 15, 2006

have no experience in Adobe Air/Flex and wanna know, Are there some principles(design patterns) for develop Adobe Air/Flex applicati

View 4 Replies

.net :: 3-tier Architecture Be Applied In A Rich Internet Application (Flash/Flex)?

Oct 27, 2009

how would the 3-tier architecture be applied in a Rich Internet Application?I thougt that flex was presentation, .net web services where busines and informix was data. But then when I started I feel that I must be wrong.

View 1 Replies

Actionscript 3 :: Structuring System Architecture In A Flex Web Application On A Budget (w/o Java)

May 28, 2010

I started a project a while back using the following architecture from Adobe Developer Article talking about Creating marketing platforms in Flex. I did my first set of coding locally forgetting that my server did not handle Tomcat. So I said okay, and cut some corners and then some other limitation came up and I cut some more corners. Eventually for a good week or two, it was trying to get the project working with making the ends meet. Layers started to merge.

In the end I used a

PureMVC (Presentation/Client) -> ZendAMF (Communication) -> MySql (Data) Layout.

It worked but I never felt as though I had some layer just to take care of all the SQL calls to the data.It just felt hacked together

So should I keep the above setup and just start from the presentation layer and move downwards like they said in the article or is there a better layering (based on a hosting plan that does not handle Java) I could accomplish ?

UPDATE: My current hosting plan - [URL]

View 1 Replies

Flash :: Use Parsley Framework In Flex Application

Dec 13, 2011

I am trying to use parsley framework in my flex application. Messaging System is one of the best feature that I see while using parsley, But I had a doubt, Does using Parsley framework in your application means that

[Code]....

View 2 Replies

Flex :: Connecting Flex Application To Tomcat + Spring 3.0 Framework With BlazeDS?

Apr 9, 2011

I'm developing a web application (client in Flash Builder 4, server in Eclipse 3.6 + Tomcat 7 + Spring 3 Framework). How do I make the Flex client automatically deploy in the Tomcat server and use BlazeDS messaging and remoting more seamlessly?

View 14 Replies

Flash :: What Client Architecture For An LCD Wall Application

Dec 23, 2010

I have been asked to design an LCD wall application for a display like the one in this ad. Requirements are that the wall can display full screen video or partition the wall in different sections to display multiple video or images and video. I would like to understand what platform can be used to drive such beasts (what OS? what video card?). I wonder what software platform can drive multimedia on such a scale. Html5 + JavaScript would be OK on a single monitor, but on that scale would it slow down? Flash also is an interesting platform, as it is Air, but, once again, can it scale like that?

I am also considering the server architecture that is needed to drive a set of walls in the same location and the slideshow designer to create storyboards, but this is dependent on what client architecture will be embraced.

View 1 Replies

Flex :: Swiz Mandates Weak Encapsulation?

Feb 4, 2010

I just started using Swiz, and, it seems like Swiz forces you to create classes with weak encapsulation. Swiz requires all event handlers to be public in order to mediate events.

Assume that component 'A' dispatches a few events, which I want to listen to in component 'B'. Traditionally, I'll just add event listeners on 'A' in 'B' and all the event handlers in 'B' can be kept private. However, if, I am using Swiz, I need to make all the handlers, mediating events, public.

View 4 Replies

Javascript :: Best HTML/JavaScript Framework For A Flex Application?

Oct 23, 2009

We're currently building a Flex application using the PureMVC framework with a shell.swf which loads/unloads modules dynamically. We're experiencing issues with memory and we're looking to replace the shell.swf with a JavaScript-based loader.Two questions:What would be a good framework to dynamically load the Flex components and allow the modules to communicate between each other?Would dynamically loading/unloading the modules via JavaScript take care of the typical memory problems associated with Flex/Flash applications?

View 1 Replies

Flex :: Flexbuilder - Swiz .6.2 Undefined Method Loadbeans

Oct 2, 2009

I'm trying to set up the swiz framework in flex but cant seem to get it to compile. Im using swiz 0.6.2 and flex 3.0.2. The swc is in the libs directory of my flex project. Im following the tutorial here:[URL] and my code looks like:

[Code]....

when i try to compile i get the error unidentified method loadBeans through a reference with static type Class.

View 1 Replies

Flex :: Injecting Data And Mediating Events In Modules With Swiz

Feb 2, 2012

Since my application is getting bigger, I decided to fragment my project into several modules, but the documentation from Swiz on Modules is very poor [URL]. I tried out the Swiz Examples [URL] but I couldn't inject any data into my module or even catch an event. The module is loaded properly however.

Ideally I will end up having multiple Flex-Projects, each containing one module and each .swf file is deployed into the application deploy folder. However if you aren't familiar with a structure like that, but instead you know how to inject data/event mediating into a module inside the same Flex project.

View 1 Replies

Actionscript 3 :: Comparison Between Mate Swiz And Robotlegs Frameworks For Flex Development

Jul 5, 2011

My company is willing to reffactor its biggest and heaviest project introducing some kind of framework. Are there good online source/issue/blogpost with comparison of these 3 frameworks - Robotlegs, Swiz and Mate?

View 4 Replies

Flash :: Use Parsley Framework For Application?

Nov 22, 2011

I am trying to use Parsley Framework for my application. I am using Flex 3.

I have included the following two libraries as Referenced Libraries :

parsley-flex3-2.4.1.swc
spicelib-flex2-2.4.0.swc

But it is showing me the following error.

[Code]...

View 2 Replies

Jquery ::Best Development Framework For A Google-Maps-ish Web Application?

Dec 31, 2011

I am starting a project in which I hope to create a web application with similar elements to Google Maps, such as zooming, panning, displaying tiles, etc. The idea would be for it to have a very fluid and dynamic feel.Some possibilities that I have encountered are:

-Flash

-Silverlight

-HTML5

-Google Web Toolkit

-Javascript/jQuery

Being proficient in C# and .net, I feel that Silverlight may be the easiest for me to work with. I am worried however with regards to the penetration of Silverlight (this is a consumer-facing application). I am not asking to implement Google Maps into my web application. Rather I am attempting to create a new similar website (not mapping, but similar concepts).

View 3 Replies

Flex - Design - Mediators Coupled To Proxies In Flex PureMVC?

Aug 14, 2009

I've just recently learned the PureMVC framework, and am a little confused as to the coupling between Proxy and Mediator objects. The links on this page connect to some documents describing the framework. (Please note, the links on the aforementioned page open PDFs.)

The diagrams and examples of PureMVC I've examined often show a direct coupling between a Mediator and Proxy. When the proxy's state is updated, rather than sending a new Notification, the Mediator (which retrieves a reference to the Proxy from the Facade) has its state updated.

This certainly seems to simplify the logic of the code, but it also directly couples two seemingly disparate components together. To my understanding, a Mediator's purpose is to translate Events from a view into PureMVC Notifications. Proxies are meant to perform some function to gather data and relay it back to the view. These two components seem to exist in different layers of the application, and perhaps shouldn't necessarily be coupled together.

Wouldn't it make more sense to have the Proxy objects send their own Notifications when their state updates, which are forwarded to the interested Mediator by the Facade?

View 2 Replies

Flex :: BlazeDS/PureMVC And Shared Vos?

Apr 21, 2010

I'm building modular application with 2 modules which share common vo: ShopRegionVO

This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code:

sendNotification(CoverageConstants.SET_SELECTED_REGION_COMMAND, ShopRegionVO(List(e.target).selectedItem));

The exception is thrown right here:

Main Thread (Suspended: Error #1034: Type Coercion failed: cannot convert model.vo::ShopRegionVO@14961809 to model.vo.ShopRegionVO.)
view.list::RegionListMediator/onChange
flash.events::EventDispatcher/dispatchEventFunction [no source][code].....

View 1 Replies

Flex :: PureMVC: Unique Mediator For Each Tab In An Interface?

Oct 12, 2009

I am building a tabbed interface for switching between various similar layers. Each layer will have a number of graphs. By dragging with the mouse the graphs can be rearranged or even moved between layers. My question is, is it best practice to register a unique mediator for each layer that keeps track of the layers content / organization, or should i keep track of it all with one central mediator.some considerations:

the layer contents and organization will be saved(in a db) so that it can be restored when a user comes back to the app.the layers themselves are functionally identical.the user can add and remove layers at will.

View 1 Replies

Flex :: Mediator Must Hold View In PureMVC?

Dec 28, 2009

I have one question about pureMvc. I use pureMvc to build an engine, in the engine init part i have an requirement

1) moduleA must init firt
2) moduleB , moduleC need init after moduleA init complate.
3) moduleD need init after moduleB & moduleC init complate.
4) moduleA , moduleB , moduleC , moduleD all extends Proxy beacuse the four system all need to send notifiation ,but no need to listen it.

But to fit for the requirement I can't use command to do it, because they have ini order and also they need to remember current state(ex: moudelB is init Complate but moudleC is not init complete then can't init moudleD) but command is stateless. The best way I think is use one Mediator to do it, beacuse it can both listen and send notification. My question is :

1) Is this a good way to use one Mediator to do it?
2) If use Mediator is good way, then when it hear first moduleA is init complate
registerCommand(FIRST_MODULE_INIT_COMPLATE , initStepTwoCommand);
sendNotification(FIRST_MODULE_INIT_COMPLATE);
removeCommand(FIRST_MODULE_INIT_COMPLATE);
Need to do things like that way or just do the inti logic in the Mediator?

View 1 Replies

Flex :: Multiple Instances Of Views In PureMVC

Sep 15, 2010

Often multiple instances of the view component would be used in multiple places in an application. Each time I do this, I register the same mediator with a different name. When a notification is dispatched, I attach the name of the mediator to the body of the notification, like so:

[Code]...

View 1 Replies

Flex :: Implementing Process Workflow In PureMVC

Oct 11, 2011

I'm looking for suggestions regarding implementing process flow / work flow management in a PureMVC based application. Our Flex application includes a number of processes such as account creation, payment processing, etc. Within our team, there is some discussion of how rigidly we should adhere to the PureMVC model. Within the PureMVC model, it seems reasonable that the current state in the process could be managed in a Proxy. Commands are clearly responsible for processing the actions required of each node and for node transitions. Mediators for managing the UI.

However, I think that there is an important bit still missing here: a ProcessController. The approaches we've reviewed all seem to either violate the PureMVC model (even just slightly) or make unreadable code. A proxy would maintain the state of the process. As such, it seems to be an appropriate way to implement the controller. However, this is putting a lot of business logic into the proxy.

[Code]...

View 3 Replies

Flex :: Best View Architecture In It?

Aug 11, 2011

I have started learning flex 4 and I got myself thinking about how to change views. So I have a question what do people usually use - states or views (ViewStack). The type of web application I am making, can use both, but what do developers use in big projects or maybe they use non of the mentioned before?[code]...Best view architecture in it?

View 1 Replies

Flex :: MVC Architecture Development

Nov 22, 2011

I have a mobile application that I want to try and reorganize so that it's easier to read and update and follows better practice.I want to implement an MVC pattern, but I'm getting a little tripped up on getting there. I'm just hoping for some help with rebuilding the architecture. Here's the outline of my application:

Level1) MainView has a column of 5 buttons that when clicked lead to View1, View2, View3, View4 or View5.

Level2) Each of these views is the same: a list, but each is populated with different data. Selecting an item brings the user to another set of views SubView1 - 20. that each are again populated with a list.

Level3) However, any selection made on a List in a SubView leads to a view that is always the same for all selection paths - but is populated with different data. Basically a button, another list, a text input and a textarea.

From what I gather, I should be able to use a lot less files and achieve something of the same result:The model being a single class for data? The controller being a class or that controls the business logic, and a view that calls the controller?

View 1 Replies

AS3 :: Flex - Inherited Classes And Dynamic Views In PureMVC

Jul 14, 2009

I was wondering best practices for views of inherited classes in PureMVC in this situation: Multiple classes inherit a BaseClass (lets say InheritedClass1 and InheritedClass2) Each InheritedClass has a respective view (derived from a base view class, but each unique) With a given dataset (lets say ArrayCollection of InheritedClass1/2 Objects), the respective views need to be dynamically loaded. The dataset is relatively large, so a TileList would be nice (since it only instantiates objects which are currently displayed) I can think of a couple solutions, but I find them to be too "hackish" to be the best solution:

In View: Repeater over a BaseClassView which attributes a view to a State (set to the "InheritedClass1" state to add a InheritedClass1 object) Pros: No unneeded memory increase (States' objects are instantiated when needed) Cons: View is dependent on the data types, so adds coupling In Mediator: Loop over the ArrayCollection and addChild() the views based on data type Pros: Works. Cons: Mediator is adding things to the View, which defeats the point of the separation of Mediator and View. Slower than a Repeater.

View 4 Replies

Flex :: Pageless Architecture - Any Way To Refresh Ads

Feb 4, 2011

I've got a Flex 3 website. I set-up adBrite in an iFrame to serve ads, and it works fine. I've got 2 ad zones in 2 iFrames. My problem is that as Flex has a "pageless" architecture, I only get credit for one hit even if the user clicks every button on the site. In short, I get one pageview instead of several. adBrite said that if I can figure out a way to refresh the ads when the user selects a new item in my navigation menu, they're cool with it. They suggested just refreshing the whole app.

View 1 Replies

Actionscript :: Flex MultiCore PureMVC Notifier Initialization Error

May 27, 2011

I am trying to write a simple multicore PureMVC helloword. I am getting Error: multitonKey for this Notifier not yet initialized!

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved