Flex :: Hidden Features Of Cairngorm?

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


Similar Posts:


Flex :: Hidden Features Of MXML?

Apr 15, 2012

What are some of the hidden features of MXML? What existing features are not well known but very useful?MXML being used in Flex Framework became quite popular language because Flash Player is something every PC has and Flash Builder and Flash Catalist are quite popular Adobe programs.specify one feature per answer, and read all answers before posting a dupliate.It's not always a great idea to use these hidden features; often times they are surprising and confusing to others reading your code.

View 3 Replies

Actionscript 3 :: Hidden Features/tricks Of Flash Development

Apr 15, 2012

I am thoroughly surprised that there is no Flash Hidden Features post yet in the Hidden Features series that I've been tracking for a while now. There is a recent AS3/Flex one but it's not very active and I don't exactly mean just AS3 when I say Flash here.The Hidden Features series is great for people who are new to a certain language. It shows the ropes and certain valuable tricks, all in one place. I think it's a brilliant idea. Even experts sometimes find tricks they'd never heard about.When I started with Flash, I was taken aback by the Flash IDE and odd concepts of Flash, compared to other programming languages.what are some hidden features of Flash as a language (AS2/3) and the Flash IDE?

View 24 Replies

Flex :: Use Of CairngormEvent In Cairngorm Framework?

Jul 28, 2010

What is the use to event extend the cairngorm event in cairngorm framework.?

View 1 Replies

Flex :: Add SWC File For Cairngorm To App Without FlexBuilder?

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

Flex - Cairngorm XXXCommand Be Executed Several Times?

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

Actionscript 3 :: Flex - Use Framework Like Cairngorm Or Mate?

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

Flex :: Project Doing In Mvc Pattern Using Cairngorm Framework?

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

Flex :: Cairngorm - Use Parsley Framework Hero 4.5?

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

Flex - Cairngorm Model Locator Pattern?

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

Flex :: Cairngorm 3 Presentation Model Initializations?

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

Flex :: Reading Server URL From AS3 For Cairngorm Configuration

Aug 30, 2011

I need to read the URL that the browser shows when a Flex application is called because I would to reference it in a mxml configuring Cairngorm remote objects. The goal I would reach is to automatically configure Cairngorm services from environment to environment (dev,test,qa,prod) without statically set the value in the mxml or other ActionScript. Since the Flex client is deployed in the root of the war of the webapp, it's enough to read where the browser is pointing.

I have written a class that is doing so:
public class ConfigServer {
public function ConfigServer() {
var loaderUrl:String = FlexGlobals.topLevelApplication.loaderInfo.loaderURL;
var urlToSet:String = <loaderURL-string-manipulation>;
_serverUrl = urlToSet;
[Code] .....

But whenever I call the ConfigServer constructor and for every (known to me) technique I applied (statics or singletons or public ro so on), I have always had the same error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.fao.fapda.util::ConfigServer()[C:devworkspacesFAPDA runkFAPDA-clientsrcorgfaofapdautilConfigServer.as:8]

Cairngorm services initialization is done as follow:
<fx:Declarations><cut/>
<services:FAPDAServices id="services"/>
<cut/></fx:Declarations>
And the problem is that FAPDAServices.mxml is read runs before FlexGlobals is valid. Is there a point in the Flex Application lifecycle where such loaderURL is defined so that I can construct ConfigServer? When in startup events that initialization in done?

View 1 Replies

Flex :: Coding Style - Cairngorm Project DRY (don't Repeat Yourself)?

Aug 2, 2009

I'm having a hard time building a Cairngorm Flex3 app that connects to a rails app. I'm used to rails DRY approad, and the Convention over Configuration thing too.. and Cairngorm in awful at these.

How do you keep you flex code as DRY as possible? I've implemented a generic delegate to avoid a delegate for each command, at least.

View 1 Replies

Flex :: Make Cairngorm Commands ALWAYS Work Synchronously

Oct 1, 2009

I see the benefit of asynchronous commands (waiting for server responses...) but in my flex app it creates me more problem than anything. Here's what I want: EVERY command executes only after the previous one returned (to result or fault function) And I'd like to do this as easily as possible.. by the way the GUI must become irresponsive (maybe a wait message) while a long command is being executed (I could show the wait message in the execute function and remove it in the fault or result function..)

View 1 Replies

Flex :: Difficult Syncronization Problem With Commands (in Cairngorm)?

Jan 8, 2010

I have a dataGrid with a dataProvider "documents"A column of the datagrid has a labelFunction that gets the project_id field of the document, and returns the project name, from a bindable variable "projects"Now, I dispatch the events to download from the server the documents and the projects, but If the documents get downloaded before the projects, then the label function gives an error (no "projects" variable)Therefore, I must serialize the commands being executed: the getDocuments command must execute only after the getProjects command.In the real world, though, I have dozens of resources being downloaded, and those command are not always grouped together (so I can't for example execute the second command from the onSuccess() method of the first, because not always they must be executed together..)..

View 1 Replies

Flex :: Compile Project That Uses Cairngorm With Command Line?

Oct 31, 2010

Has anyone tried to compile a flex project that uses Cairngorm with command line?

View 1 Replies

Actionscript 3 :: Not Assigning Data From Java VO To Flex VO Using Cairngorm?

Jan 23, 2012

I have a few values in Java VO, and using cairgorm framework, i had mapping the Java VO to Action script VO in Flex and given same variables name as java Vo variables name. Now the Vo is mapping fine and when looking the result all variables are displaying as null. Can i know the reason for that.Java returning list of VO's.

package com.configuration
{
import com.adobe.cairngorm.vo.IValueObject;

[code]......

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

Actionscript 3 :: Set Time 5 Seconds To Dispatch Cairngorm Event In Flex

Oct 7, 2010

I have a live chart. I need to refresh the chart with 5 seconds time interval.

For displaying the live chart i disptach the event (myEvent) extends cairngormevent.

And after 5 seconds , the same event has to dispatch again adn get the data to display thelie cart.

And how the event dispatch after 5 seconds with out any manula call..?

View 2 Replies

Flex :: Reduing The Layer Complexity Of A Cairngorm Based Application?

May 5, 2011

Could tools like SWFAddress be used in some clever ways to alleviate an existing client-server architecture. I see possibilities to even introduce REST-like pattern mapping or something like that.

What I am currently doing is following all the Cairngorm guidleines, which has already led to a bunch of commands which all make sense, but inclusing the business delegates, and all that stuff, I am getting into a hard time extending and refactoring the application Anyway, what I thought of was somehow reducing the number of application events flying around, and the number of commands responding to them. Actualy, I am quite OK even coupling the view with some logic, if I can get rd of some layer complexity.

What I mean by that: perhaps, I could bind a button click to a url pattern (or use SWFaddress to change the url globally). On the other end, I wll be waiting for changes of the url, reformat it, and pass it onto a service delegate, which has the necessary mappings in mind, so it knows what method to call, or it could even pass the url directly to an HTTPSErvice. The delegate will then deal with the server response, and update the model, which through the bindings will update the view.

I am not going to completely ditch commands. I thing that they are good for scheduling of the internal interactions (within the client itself), but I'd like to abstain from using them for communication with the server.

View 1 Replies

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

Flex :: Architect Extended Cairngorm Classes To Be Shared Across Applications?

Jun 5, 2009

I have created a few Event and Command classes for use in my Cairngorm projects.For example, I created an class that extends URL... that allows me to set callback functions upon completion or failure of the corresponding Command. To accomplish this, I also had to create a new Class that implements com.adobe.cairngorm.commands.ICommand that I extend for all Commands in my projects.Now, I want to use these two classes across all of my Cairngorm applications. What is the best way to do this? Should I just edit the Cairngorm source for CairngormEvent and ICommandand recompile the Cairngorm MVC (is that even possible)? Or add my two classes to the Cairngorm source and recompile the Cairngorm MVC? Or should I just add them to a shared library?I've chose the third option for now, but this requires that I reference the Cairngorm library in both my library and each project. I am wondering if there is a better practice and what the benefits are.

View 1 Replies

Flash - What's The Size Of The Bootstrap Code For Cairngorm Framework Which Is Based On Flex

Dec 25, 2010

what's the size of the bootstrap code for cairngorm framework which is based on flex?

View 1 Replies

Flex :: DataGrid Implementation Which Has Features Similar To XtraGrid?

Apr 12, 2010

I am looking for a Flex datagrid component that has features like grouping, sorting, master/detail display, etc. I am having an application in C# that uses XtraGrid suite to achieve the required datagrid features. I am planning to migrate this application to Flex. If there is no flex component readily available with XtraGrid features, then I have to create one on my own

View 1 Replies

Flex :: Access A Remote Java Class (on Spring/BlazeDS) From The Cairngorm Application?

Nov 5, 2009

I seem to be getting the following error when I try to access a Remote Java class (on Spring/BlazeDS) from the Flex/Cairngorm application. I am going crazy at the moment trying to see what is wrong

[Code]...

View 2 Replies

Actionscript 3 :: Add Auto-update Features To Flex Mobile Application?

Jun 24, 2011

Currently i am working in mobile application development in flex4.5 . i want to know whether there is any possibility to make the auto update feature(regarding the verison) in mobile application using flex 4.5 .

View 1 Replies

Actionscript 3 :: Flex 3 PopUpManager Does Not Correctly Enable Accessibility Features

Jan 3, 2012

I have an application written with Flex 3.6 and when I create a modal popup dialog, the buttons and text on that popup do not work correctly with the Accessibility properties that I have defined. The app is compiled with the accessibility flag. I build a simple app to test demonstrate the problem.

[Code]...

View 1 Replies

Flex :: Generate A Flex Image From A Hidden Component?

Jan 20, 2010

I'm trying to put an image, generated from some text, in a RichEditableText. Since it's a styled text, I thought about putting it another RichEditableText, style it, then print it to a Bitmap to use as source for InlineGraphicsElement.I use the following code to do that

var txt:RichEditableText = new RichEditableText();
txt.text = name;
// Appliy given styles to the text flow of input rich editable text

[code].....

View 2 Replies

Flex :: <mx:List> Is Hidden By Other UI Component

Jul 18, 2010

In flex UI, my <mx:list> can not be shown completely because of other component shelterring (for example: the refresh button shelter part of it ). How can I make the <mx:list> in front of all other UI component.

This is my code:

<s:HGroup verticalAlign="middle">
<s:Label text="Choose Log File"/>
<mx:ComboBox id ="logFileChooseCombo" dataProvider="{fileNameList}" width="150" color="0x000000"

[Code]....

View 1 Replies

ActionScript 3.0 :: Cairngorm In Flash CS3 - Use Flex's Data Binding In Flash?

Apr 25, 2007

I've been reading up on the Cairngorm architecture that Adobe recommends as best practice for devevloping RIA's in Flex.http:[url].....I recently purchased Flash CS3 and want to find a way to implement Cairngorm in my upcomming RIAs that will be built in Flash instead of Flex. I've created my own version of Cairngorm that uses almost all of the features and classes described in the Cairngorm architecture.

The biggest challenge for developing a Cairngorm architecture in Flash is that the architecturerelies heavily on Flex data binding to update the view when there are changes in the model. As far as I can find, there are no such capabilities built into AS3. This leaves me with a few not-so-desirable options.I could write my own data binding classes, or try to migrate the data binding classes from Flex.

each view class that can respond to changes in the model implements an "IBinded" interface that contains one function called modelUpdated. These classes register with a 'bind list' when they are instantiated, and any command that causes a change in the model also calls a function cycles through each registered view class, calling the 'modelUpdated' function to signify that the model has updated.This is a reasonable solution for a very simple application with very little model data, but as the application increases in complexity, it does not scale, because there is no way for a view class that is binded to an object in the model to know whether or not that object has changed - instead, EVERY view class that responds to changes in the model must check the current value of whatever objects they bind to and see if there has been an update.

View 1 Replies







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