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


Similar Posts:


Actionscript 3 :: Component Based Architecture In Game Development?

Oct 1, 2011

I have been thinking of trying out component based architecture for game development. I have read some blog posts and articles about it but I have a few things I have not sorted out yet. When I say component based I mean that you can add components to a ComponentManager that updates all components in its list. I want to try this to avoid getting classes that inherits variables and functions that they donīt need. I really like the idea of having an really simple entity class with a lot of components working side by side without getting bloated. Also, it is easy to remove and add functionality at runtime wich makes it really cool.

This is what I am aiming for.

// this is what the setup could be like
entity.componentManager.add(new RigidBody(3.0, 12.0));
entity.componentManager.add(new CrazyMagneticForce(3.0));
entity.componentManager.add(new DrunkAffection(42.0, 3.0));
// the game loop updates the component manager which updates all components
entity.componentManager.update(deltaTime);

Communication: Some of the components need to communicate with other components I canīt rely on the components to be self-sustaining. Sometime they will need to communicate with the other components.In Unity 3D, you can access the components using GetComponent().I was thinking of doing it like this, but what happens if you have two components of the same type? Maybe you get a Vector back.

var someComponent : RigidBody = _componentManager.getComponent(RigidBody);

Priority: Some components need to update before others

Some components need to update before others to get the correct data for the current game loop. I am thinking of adding a PRIORITY to each component, but I am not sure that this is enough. Unity uses LateUpdate and Update but maybe there is a way to get an even better control of the order of execution.

[URL]

View 1 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 :: 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

Flex :: Modules Over MXML Component Architecture?

Dec 2, 2010

I am actually in the process of Architectural of our project. We have choosen Mate framework. The project is not so quite complex, but what advantages i would get over MXML when i choose Modules.

Main App - > Views - > Events - > Maps - > Services [PHP or Java]

When i come up with Modules based Architecture, it seems to be good but i doubt it should not end up with tight coupling and unwanted issues which may break the head later to solve.

Main APP - > Modules - > Module Interface -> Events - > Maps - > Services
[PHP or Java]

What advantages i do get if i choose Modules over MXML Component? What is the prefered and the best way to Architect an FlexApplication? Since the Application is going to communicate with Backend, do we need to make the frontend more complex?

View 3 Replies

Actionscript 3 :: Display List Architecture In Flex?

Mar 7, 2012

I'm asked about Display List architecture in Flex at an interview.

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

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

Flex :: Incorporate FileReference Method Like Upload Into A Cairngorm Architecture?

Jan 14, 2010

how to incorporate FileReference method like Upload into a Cairngorm architecture.Specifically, I would think to fire an event with the File in it, and that's fine. But how would one then be able to listen for e.g. Progress Events?One thing I thought is to have the delegate fire off progress events that are listened for in the View.

View 1 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

Flex :: Create Skinnable Components In MXML Using Spark Component Architecture?

Oct 14, 2010

There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML.What I'm mainly referring to is defining the skin parts and skin states. It seems as though the SkinPart metadata is supposed to be associated with properties and as such can't be used in MXML, is this correct?

View 1 Replies

Flex :: Databinding Array To Canvas As Objects General Client Architecture?

May 27, 2009

I have creating a distributed note taking application in flex, it basically is a notepad I can keep in my desktop tray. When I add notes and goes back to a server and saves it in a database.

To am struggling to design the application correctly, I want to have a Syncing service that polls the webserver for changes and updates an Array of Note objects. The problem is that my note corresponds mxml component, aka SingleNote component. There are four different cases when being, a. a note is updated from the server poll, in that case I want to singlenote to update the settings b. a note is added to the array from the server, in that case a new SingleNote needs to be created c. a SingleNote is added from client, in that case a Note is added to array, and sent back to server d. a SingleNote is change from client, in that case the Note is updated in the array and sent back to server

The properties are SingleNote(Width, X, Y, Text).

View 1 Replies

Web Development :: Web Development - Search For All Tagged Photos Associated With User Some Id I All Of Facebook Users?

Nov 3, 2011

I'm using the the Adobe ActionScript 3 SDK for Facebook Platform to get all the tagged photos of the current user. Is this possible?

I've tried this:

FacebookDesktop.api("/"+uid+"/photos",getTagedPhotosHandler);

But that only gets me the photos belonging to that user.

View 1 Replies

Web Development :: Web Development - Browser Support Like For Bare SWF Files?

Aug 31, 2009

Does anybody use bare .SWF files as webpages? I know it's possible; it seems to work fine for me. Why would I embed a SWF inside an HTML page if it's just going to be full screen (I mean the size of the browser's normal viewable page area, not COMPLETELY fullscreen)?

Is there a lack of browser support? Or is this functionality determined by the browser's Flash plugin?

View 2 Replies

Web Development :: Web Development / Make A Web Based Video Recording?

May 10, 2010

I want to have a web site which switches the web camera of users, makes a video recording and send results to my web server.Is it possible to do that? I think it should be. For example such sites as chatroulette.com starts web camera. Should it be done with the Adobe Flash technologies? Is it hard to do that?

View 1 Replies

Web Development :: Web Development - Browser Doesn't Load Imagers All At Once?

Jan 12, 2011

If I load a web page full of other files, e.g. images, my browser doesn't load them all at once.I seem to remember reading that IE will only have at most 3 requests open at a time for a page. The rest will be queued.If I have a flash movie on the page which is continually making image requests, how does this affect the maximum number of downloading files in the browser?

Is this browser limit accurate, and is it generally the same across browsers? Does flash share the requests of the browser? If not, does flash have a limit and what is that limit?
For some background, I do have a flash movie that is continually loading files so there is a queue of Loaders waiting to make requests.My idea was that if there was a different request that I needed to be executed straight away I could make it jump the queue by making a javascript call and allowing the browser to make the request instead.

View 1 Replies

Web Development :: Web Development - Pause Sound In Flash?

Feb 9, 2011

i'll using this as2 in the pause button

on (press) {
if (pause!=true) {
playing=false;

[code]....

View 1 Replies

Web Development :: Web Development - Post Flash Exe To Web?

Aug 26, 2010

I've been given a Flash tutorial to post to the corporate website that is an .exe file with an embedded Flash player. Users will be on IE, so I guess they would get the run/save prompt. I don't like this and I know it generally isn't done, but I need to know if it is OK to just do it. When I try to explain the security issues with executable files, eyes glaze. Is it possible that the users' system admins would be able to block the run prompt and make the user save the file? Could they block that too? The user community is hopeless, so having the embedded Flash player could be a good thing.

View 1 Replies

Flex :: Game Development: Flex Or Flash IDE?

Jan 6, 2010

Which would be more comprehensive for game development?

View 6 Replies

Web Development :: Web Development - Web Design - Prevent Leeching. Flash Anti Leeching Methods?

Jul 4, 2010

I am designing a website with flash video content. If I pass in the URL to a .flv file as a flash parameter to the embedded video player someone can easily extract the URL and download the flv video file. How to do I prevent this? Can someone refer me to anti-leeching techniques being used my websites like youtube.

View 1 Replies

Flex :: Module Development Workflow?

Oct 6, 2009

I have just started looking into using Modules in Flex and would like to know how you all go about developing them.I understand how to use them (load, unload, application domains, shared classes, etc.), but I'm wondering what a good workflow is in creating them and using them in multiple applications.If I were building reusable application components (text editor, image cropper, compass, whatever), and I wanted to reuse them in many different applications, it seems like I would:

1) Create an Application specifically for one of those modules

2) Create a Module inside that Application

3) Develop the Module by itself, make it work right

4) Link shared libraries to it somehow (like library projects I would use between all of the modules)

5) ... then I'm unclear what's next.I now have lets say 10 Module/Applications, and I want to start mashing them together into usable applications.What's the best way to do this?I would like to not have to copy-paste code and swfs, using something like git submodules if an equivalent is possible.

View 1 Replies

Web Development :: Opening IE Window From Within Flex?

Dec 4, 2009

All I need to open a new IE Window from within Flex code on click of a link.P.S I dont want to open a new Browser. I want to open a browser window only that can open a new URL.Something like clicking on a link in Flex and then openin a Pop up window.

View 2 Replies

Web Development :: How To Integrate Flex With Existing Web App

Sep 2, 2010

I'm having trouble conceptually understanding how to integrate flex components -- forms, charts, data grids, etc. -- with an existing web app. There are certain aspects of the web application where I believe it makes more sense to use flex -- however, I DO NOT want to replace the (html/js/java) web-app with a pure flex based app.For example, currently the web app displays user data using html tables and java based charts, I'd like to re-implement this "data display" using flex. Would I have to create a flex "application" for the "data display"?

View 1 Replies

Android Development With Flex 4.5 But Free?

Jun 8, 2011

I've a pc (windows 7) and I'd like to use flex 4.5 sdk for developing android and ios app (future), but I like to do it with free tools.

I'm a bit confused about best enviroment and for difference between paid version of flex and no paid version, There's also good library like as3isolib is compatible with open sdk of flex?

Can also give me some tools like good ide, and which and where can download the right sdk from adobe site?

And the difference of speed for a app made in flex or in java in a 1ghz hi res (800x480) phone like nexus one?

View 1 Replies

Eclipse :: Does Support Flex Development

Aug 11, 2011

I was about to start with a chat application like this one. I was wondering how to do it on Eclipse. Does Eclipse support Flex development? Is there a plugin or a tool which I need to download for Eclipse? I installed Flash Develop on my machine, but I am getting some issue in unzipping the zip file for Flex SDK which I can't figure out why. Thus I was thinking of switching to Eclipse.

View 2 Replies

Actionscript 3 :: Flex 4.5 Mobile Development?

Oct 7, 2011

I recently started developing mobile applications using Flex 4.5 with the help of a book, but was unable to find the API documentation for the same from Adobe.

Does anyone know where I can find the mobile development API documentation from Adobe ?

View 2 Replies

Actionscript 3 :: Mobile Development Using Flex Sdk Only?

Oct 10, 2011

I have been trying to figure out whether it is possible to use only flex sdk for mobile development.Do I really have to purchase and use Flex Builder? are there free tools that would allow me to package my application for, say, iOS or Android?

View 3 Replies

Flex :: Ide - Alternatives Of Builder For Development?

Jun 10, 2009

What are the alternatives of Flex builder for flex development (Free ware, open source preferred). I know one that is FlashDevelop, but it is not matured/ full fledged flex IDE.

View 3 Replies







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