Flex :: Structure Multiple Cairngorm MVC Projects That Share Several Components?
Jun 5, 2009
I recently completed a project for a custom report UI in Flex. Now, I've been tasked with creating a new application that is essentially a "lite" version of the original UI. It will include only a few of the options that are in the original application. Also, it needs to be a separate application.
I do not want to duplicate my code, so I am planning on moving a bunch of the classes from the original application to a new library that can be shared by both applications. However, I'm trying to figure out how to make this work in my MVC environment.
For example, I have an Accordion component that lets users filter several items. Each Accordion child is an instance of a custom component with two lists (one for entities available for selection, the other for the entities the user has selected). Each child component has properties bound to the Model and functions that call Cairngorm Events.[code]...
View 1 Replies
Similar Posts:
Dec 24, 2009
i have several flash projects and i have common classes. is there a way to share these classes between the project so i won't need to copy it to all the project when ever i modify something?
View 2 Replies
Jul 9, 2009
I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source.
What is the best way to manage this?
View 2 Replies
Apr 16, 2010
Are IDs attributes shared between different modules in Flex ?
i.e. I have a text area with id="text1" in my menu.mxml file.
And I want to write on it from another module mainArea.mxml
The debug gives me error, so how can I share different components ?
View 1 Replies
Apr 9, 2010
i was wondering how you guys set up different projects that share an interface (interface object, not an UI element). i have several modules in separate projects that use an interface from the main project. right now i'm either doing it by copying and pasting the interface to the module projects or by adding the source path to the project.
View 4 Replies
Jan 12, 2011
How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)
View 1 Replies
Sep 6, 2010
I am going to build chart application with Flash Professional CS5 using AS3.0.Is there any possibility to convert this Flash application into Flex by creating movieclips and symbols in runtime in flex.How to do it.
View 1 Replies
Aug 24, 2010
I was wondering what is considered to be a best practice when I have multiple components and use RemoteObject for AMF communication with a PHP backend.
Have the RemoteObject in the Main.mxml file with all the methods declared here (with handlers and all) and have all components call functions from the parentApplication, thus having a centralized result and fault handling, but making reusiability more difficult.Have a RemoteObject in each component with only the methods (and handlers) relevant to that component, thus making it easy to have clean, reusable components.
View 1 Replies
Feb 2, 2011
Let's say you have a large number (N) of spark buttons in your app. Let's also say that your buttons all have very similar skins (size, various effects, etc) - the only difference being the specific png that they use as their BitmapImage. Do you end up with N skin files, all differing by 1 line? Or is there a smarter way to do this while not adding a lot of code when you create the buttons in MXML (in fact, ideally, none).
View 1 Replies
Jun 24, 2009
I wanted to ask if there is a possibility to have both strings and radiobuttons in one column depending on the value of another column perhaps|column1 | column 2 | |r | radiobutton||s | string |If there is an r in column 1 in column2 should appear a radiobutton, otherwise column 2 just shows a string.
View 2 Replies
Aug 30, 2011
I'm developing a Flex/AIR application that's growing big, and some of the components need to be seen from different points of view (i.e Admin, Staff, User, Guest). I've seen myself placing code in those components to handle what the user can and can't see. But it's becoming unmanageable as the code and the roles grow bigger. I was wondering what's the best way to implement multiple views inside the components while keeping them as reusable as possible.
What I'm doing right now:
<mx:HBox width="100%" horizontalAlign="right" visible="{_view == TS_VIEW || _view == PRJ_VIEW}"
includeInLayout="{_view == TS_VIEW || _view == PRJ_VIEW}">
<mx:Button label="Agregar" click="button1_clickHandler(event)"
enabled="{_state != ADDING_STATE && !_loading && _canAdd}"/>
</mx:HBox>
View 2 Replies
Aug 20, 2011
I have created a custom component that I am using, more conveniently, as a SkinnablePopUpContainer and I want to use the same function that calls and receives data from it for several Buttons in the UI. What is the best way to achieve this without having to create a new function for each button?
<fx:Script>
<![CDATA[
import spark.events.PopUpEvent;
[Code]....
View 2 Replies
Dec 23, 2011
If I embed the same asset (i.e. image or sound file) in multiple components within a Flex Application, does the compiled swf contain the asset (and it's file size) only once or once for each time it is embedded?
View 1 Replies
Aug 11, 2009
I am working on an educational project where users access multiple interfaces that teach them scientific concepts and I've come to a snag in the best method of developing these interfaces.As they were developed in the last module the format looked like this. Each interface was a separate swf file that contained all needed code, graphics, and a set of fake data for whatever the interface needed. Each revision of the interface is compiled and displayed through meetings or emails where the actual swf file is sent, we do not have a test server nor do we have access to the internet in the rooms where reviews happen. Currently after the final look and interaction is approved all calls to the fake data are modified to either make database calls themselves, or call functions from it's containing swf file once it is loaded.[code]Obviously I haven't gotten it to work but I'm thinking something along those lines. Any suggestions on a method to do this the best. Ultimately I would like to be able to do this for embedding assets as well. For example a font, currently I load fonts from an external file, which means each FLA needs a copy of that font file and at completion all files load the same text file.
View 3 Replies
Oct 28, 2009
we have java and flex projects at work. We currently have 1 base pom that contains the configurations we want to use for both projects. Problem with this is: flex projects inherit configuration for javadoc and pmd for example, which they do not want.
I want to do this a bit more clean and have a real base-pom and then a java-base-pom and a flex-base-pom. But how does this work in a multimodule that has both a flex part and a java part?
We have plugins to our own application where we use the following structure:
my-plugin
my-plugin-client (flex)
my-plugin-server (java)
The my-plugin just contains a pom.xml with section. I would use the my-plugin pom.xml as a parent to both, but then I cannot also use the java base-pom or the flex base-pom also as parent.
View 3 Replies
Aug 25, 2011
Is there a way for me to export a symbol from the library so I can use it in multiple files without having to add the symbol to each library?
View 1 Replies
May 31, 2011
I am new flash developer, and inherited a project which has 4 fla project files. When it runs inside a browser, it appears "window" which occupies whole browser. This project is write in Flash CS3. I have few questions:
1). When loading main swf file, 3 other swf files are also loaded. These swf files are communicating with each other through message. When debug the mail swf with CS3, I can set breakpoint and the program can stop only at limited AS files. My questions is how to debug other AS files in other swf file?
2) I used CS5. It seems that I can stop at more AS files, which does not belong to main swf file. Why?
My questions is should I use CS5, which might makes debugging easier? Is it right direction to go to debug multiple swf? (For CS5, I need to fix some code in order to make the program fully working as CS3)
3) What's best tool to use for such project since CS3 is very old. Should I use Flash builder, Flex. Amethyst?
View 1 Replies
Dec 20, 2010
Let's say I have multiple projects organized as
commonlib
superorg
org1
[code].....
View 2 Replies
Jul 11, 2009
how can I share a libary over multiple swf's? Case: I made a few different swf's which all use one or two components, is it possible to create a shared libary, so that only one swf, the main swf, has to compile these components? Otherwise every swf is 20kb bigger than needed
View 1 Replies
Jul 22, 2010
I found a lot of interesting info in the 'hidden features of...' series. I am very new to cairngorm . What are some of the hidden features of cairngorm.
View 1 Replies
Jul 28, 2010
What is the use to event extend the cairngorm event in cairngorm framework.?
View 1 Replies
Aug 12, 2010
I am not using FlexBuilder, I'm using the free Flex SDK with TextMate. I'm having some trouble figuring out what this FlexBuilder process actually does behind all the nice dialogs and things, so that I can do the same thing by tweaking whatever the relevant file is, but Googling just points me at similar instructions telling me to use FlexBuilder.
View 1 Replies
Feb 24, 2009
I have a bunch of games each in there own directory with there own classes. I need to make 1 global directory with a class in it that all my games can use.
The reason for this is if I need to make a change to this class, I don't want to have to keep copying it into each game folder.
View 2 Replies
Sep 19, 2010
In Flash CS5 it seems like there's an option to import .swc files into the library, but as an RSL (runtime shared library).
What's the difference between this option (swc) and using a runtime shared library .swf file?
Also, if you select a .swc file, and choose the "info" ("i") icon, there seems to be several options for .swc..."merged into code", "external", "runtime shared library":
View 2 Replies
Oct 8, 2009
I ran into a problem.I'm doing a GIS program using flex. There's a map in my Application,when I click one icon on the map,windowA pops up,when I click a link inside windowA,windowB pops up,but here my problem coming out,when I close windowB and click the link inside windowA another time,Two windowB pop up...
[Code]...
View 3 Replies
Feb 13, 2010
From what I understand a framework reduces complexity in areas that are common, like a log-in system. I use ASP.NET MVC at work and have done some work in Zend Framework but do not get how a framework helps with client side development. The reason ASP.NET MVC is used at work is for Unit Testing - does a Flex framework help with this too? why I should or should not use a framework with Flex?
View 4 Replies
Jun 17, 2010
I wish to do my project in mvc pattern. so I chose cairngorm framework and just read some of the document about this framework.But I cant understand deeply to do project using this framework. Have any methods or examples to study doing project in cairngorm framework??
View 1 Replies
Nov 30, 2010
I was wondering if Parsley framework is compatible for Flex Hero Mobile 4.5? I seem to get a warning saying it's not compatible.
View 2 Replies
Jul 5, 2011
In Cairngorm (Flex Framework), there is Model Locator Pattern, which is similar to Global variables, is it a right pattern, Adobe is saying for flex its best pattern
[Code]...
View 1 Replies
Jul 13, 2011
I have a TitleWindow that I open up... and I have 6 states defined.I am using the Presentation model pattern for all of my views. When I tell my window to go to XXX state, the controls have to initialize since the states in flex use lazy loading. so... my PM code that says myTextArea.text bombs out and say "cannot access..." so as a work around, I made some creationComplete events on my controls to register the control with the PM. So when the state changes, the textarea finally initializes and on creationComplete calls PM.registerTextArea() which sets a reference to it. then in that function I run my code... myTextArea.text.. etc.
This seems like such a ugly hack that I hate it. Is there any way to wait until the entire state in created then call code on the PM? I have tried enterstate... but this event seems to fire before the state controls are ready.I tried to add a comment, but I guess editing is the only way I can do this...I am doing something slightly off straight PM. Every view has a viewController (as I call them). Its kinda my own hybrid of a delegate / dataprovider. But this is moot. It's the flex component lifecycle when dealing with states that is the pain.if you change state.. there is no event to say "all my components in this state are ready".only event to say "we changed state". so my code that fires on state change is trying to talk to components that aren't ready yet.So from what I see, there seems to be no design pattern or perfect way to ensure that all components are created in a state unless using creationComplete on every component in the state to register it is ready... if you don't, you get a race condition. Regardless of frameworks or design patterns, this seems to be a root issue.
I am trying to attach video to a display once I get to that state. This is done via addchild. regardless of where I do it.. I need to know that the videoDisplay is done loading before I call addchild. I even tried currentStateChange event since docs say that fires last... but alas.. the components in the state are still initializing. So it seems that creationComplete is my only option. Maybe the only sane way to keep to clean code is to create the entire thing(videodisplay and video) using as once the state is entered. I just hoped the flex framework had events to ehlp me here rather than buiilding everything on the fly in as.
View 1 Replies