UpdateTimersClass in Cairngorm

Hello.
I have 2 views in my viewstack. When I enter the second view, I want a few timers to start getting my data continuously. So I have a class with my timers and they eventually dispatch events when they reach TimerEvent.TIMER.
But to implement the Cairngorm framework I want to know where is the best place to put this UpdateTimersClass. I added it as a
<timer:UpdateTimers />
in my second view and put the UpdateTimes class in com.domain.namespace.timer.
The problem is, the updatetimers starts before I have entered my second view.
Any tips on how to do this the most correct way in Cairngorm?
Regards Niclas

Hi,
yes, it's ok.
You should define a name for event and it's enought. All other info and data you can get from model.

Similar Messages

  • Potential bug when using Parsley 2.4.1 and Cairngorm's module 0.17 in Flex 4.5.1

    Hi
    I have an issue when using cairngorm's ModuleViewLoader along with ParsleyModuleDescriptor to load a simple module consistig mainly of HBoxes, VBoxes and Datagrids.
    The module consists of one child (let's call it ViewA) and that child consists of several children as its components.
    When I use cairngorm's ModuleViewLoader along with the ParsleyModuleDescriptor and Parlsey to inject the modulemanager in my main app, the module loads, as well as ViewA but some nearly all of ViewA's children are not loaded (in fact they're initialized but creationComplete is not invoked).
    When I use Flex's mx:ModuleLoader all ViewA's chikldren are initialized and creation complete is also invoked.
    I will attach the source as a zip file  later on....
    but for now...this is all I can give http://dpaste.com/713503/
    Thanks
    Andreas

    Did you ever find an answer to this?  I am running into the same issue with needing to upgrade parsley to 2.4.x, but with parts of application heavily relying on cairngorm module, upgrading it from module-0.11 to 0.17 seems to break compile! 

  • How to use the Wire-Tag in Cairngorm 3 Observer Library?

    Dear Observer-Lib coders,
    Maybe I am posting my issue into the wrong forum, see this thread:
    http://forums.adobe.com/thread/756046
    I'd like to know how to use the Wire-Tag mentioned in the Observer-Lib docu, see:
    http://sourceforge.net/adobe/cairngorm/wiki/HowToUseCairngormObserver/
    Please let me know if there is anybody who knows how to use
    this Wire-tag. A small code example would be great, too!
    Thank you,
    masu

    Ok ... I solved it!
    see this thread: http://forums.adobe.com/thread/756046

  • Is there a way to create a Cairngorm "template" Project?

    Would it be possible to create a template for Cairngorm-based Flex projects, since they all have the same general architecture?:
    /src
    /control/events
    /control/commands
    /control/Controller.as
    /control/Services.mxml
    /model/ModelLocator.as
    /valueObjects
    /view
    I basically want to create this folder/file structure, and then start a new project in Flex Builder using this template. I know I can simply copy and paste the structure from a random folder, but I was wondering if there is any way to do this in Flex Builder.
    Thanks.

    FYI, when I try "Import... > General/File System", it only imports folders with files in them (it ignores /control/events, /control/commands, /view, and /valueObjects).
    On Wed, Dec 24, 2008 at 10:05 AM, Eric Belair
    <
    [email protected]> wrote:
    A new discussion was started by Eric Belair in
    Cairngorm Development --
      Is there a way to create a Cairngorm "template" Project?
    Would it be possible to create a template for Cairngorm-based Flex projects, since they all have the same general architecture?:
    /src
        /control/events
        /control/commands
        /control/Controller.as
        /control/Services.mxml
        /model/ModelLocator.as
        /valueObjects
        /view
    I basically want to create this folder/file structure, and then start a new project in Flex Builder using this template. I know I can simply copy and paste the structure from a random folder, but I was wondering if there is any way to do this in Flex Builder.
    Thanks.

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • Data Management Services with Cairngorm 2.1

    Hello.
    I have been using cairngorm 2.0 for a while, and I am now
    trying to convert the 2.1 stuff over, including using cairngorm to
    manage my DataServices. However I have some questions about it if
    you have used it.
    Using the command, and passing the command into the delegate,
    and then firing the service from the delegate, there is a problem
    trying to catch faults. Even though I have a fault method defined
    on my command, and I am setting up the responder on the delegate as
    the command which called it, the fault handler is not being fired.
    I am generating a runtime exception on the java assembler just to
    see what happens, and the delegate never fires the fault handler.
    However if I remove the runtime excpetion from the java
    assembler, and put a simple alert on the result, the delegate sends
    to the commands result function, and the alert fires.
    If you have any code examples, even if they dont have the
    actual assembler behind them, I would really appreciate it. I dont
    know if you are supposed to define commands which call DataServices
    the same way you would declare a command that calls a RemoteObject.
    If so how do you do that? What do you declare on the command to get
    it to work?
    If you have any ideas, please help.

    Has this question already been answered on flexcoders? I
    think the Cairngorm folks may be more plugged in there than here:
    www.yahoogroups.com/group/flexcoders/
    Seth

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • Understanding the practical implications of the Cairngorm 3 Navigation Library

    Hi there again,
    Based on the discussion from yesterday:
    http://forums.adobe.com/thread/897088?tstart=0
    ... I forgot to mention that I have difficulties to find practical use cases for the Navigation Library. What does the Navigation Library solve when it will be used in the development architecture? Nothing explicit seems to be mentioned about it in your documentation:
    http://sourceforge.net/adobe/cairngorm/wiki/HowToUseCairngormNavigation/
    When speaking in theory I also have the concern that the Navigation Library is breaking the separation of concern between the Presentation Layer and the Domain Layer (when using the Domain Driven Design language):
    http://sourceforge.net/adobe/cairngorm/wiki/UnderstandingCairngorm/
    ... or the separation of concern between the View Layer and the Data Layer (when using my language):
    http://code.google.com/p/masuland/wiki/NanoarchitectureMVCb
    Practically speaking again, I usually store the application state (or the waypoints/landmarks of the application) in the Application Model ... see:
         public class AppModel
              // States
              [Publish(scope='appModel', objectId='loginBoxState')]
              public var loginBoxState:String;
              [Publish(scope='appModel', objectId='appStackState')]
              public var appStackState:String;
              [Publish(scope='appModel', objectId='settingsBoxState')]
              public var settingsBoxState:String;
    For more information please check out these two versions:
    http://code.google.com/p/masuland/wiki/LoginExample#Flex_4_(Halo)_with_MVCbCtl_PInj
    http://code.google.com/p/masuland/wiki/LoginExample#Flex_4_(Halo)_with_MVCbCtl_PInjDdd
    ... of my Login Example:
    http://code.google.com/p/masuland/wiki/LoginExample
    I hope you can help me clarify this!
    Thank you,
    masu

    I managed to reproduce this issue in the NavigationParsleyProject. After the NavigationParsleySample1 application is started the active view is content.dashboard.nested.child1. However if you try to navigate to content.tasks.timetracking view, it will redirect you to content.tasks.expenses view which is the first child in the content.tasks ViewStack. All Timetracking view's enter and exit handlers as well as interceptors will be executed though.
    After I commented out the metadata for all event handlers and both interceptors in TimeTrackingPM class, I was successfully navigated to the content.tasks.timetracking view.
    This issue occurs only once and I believe it has something to do with the deferred instantiation. I tried to debug the source of the navigation library but haven't had any success yet.

  • Flex + cairngorm problem with 2 webservice

    hi i want to retrive data from 2 webservices using cairngorm.  flex can get data from the firsone and from the second is telling that doesn't see method, for me it is cos service it trying to find method from second webservice in this firstone. so when shoudl i call second service? or how can i clear service, i am sure that i call proper method.
    public function runApp():void
        services.serviceURL = "http://localhost:84/Service1.asmx?wsdl";
        new GetService1Event().dispatch();
        services.logout();
        services.serviceURL = "http://localhost:85/service2.asmx?wsdl"
        new GetService2Event().dispatch();   

    Hi,
    check the type of sandbox when you run it localy and from server.
    Security.sandboxType

  • Best use of a model in cairngorm

    I am a little confused about the use of a model , ModelLocator, in cairngorm
    I have it created and it all works fine but whats the best way to access it, Currently i have numerous forms that all do something like
        <fx:Script>
            <![CDATA[
                import com.model.ModelLocator;
                [Bindable] private var model:ModelLocator = ModelLocator.getInstance();
    and then later on
                private function fun1(evt:Event):void
                   model.something = "blah"
                   var s1:String = model.anotherSomething;
    or whatever
    Is it ok to have varibles all over the place in different mxml files all creating a private var model, does this comsume resouces or is it ok because its static
    Also i have several arrayCollections 11+ , plus other stuff in the model, is this ok

    Hi JockMahon,
    Its ok fine you can go with that..
    However remember one thing you will be declaring any variables in the ModelLocator class only if you are using them through out your application .. I mean more than one mxml page or AS files. However if you require any property or variable only within a single file then you can declare it locally within the file instead of decalring it in
    ModelLocator.
    The ModelLocator class in cairngorm framework is a singleton class so in how many files you have a model variable it will actually refer or return only single static instance of the ModelLocator class.
    [Bindable] private var model:ModelLocator = ModelLocator.getInstance();
    So how many times you have a variable by using the above style of decalring you will only get a single static reference to the instance of ModelLocator class. No ne instances are created. Its like you get a pointer to the model variable.
    Hope it is clear now.
    Thanks,
    Bhasker

  • Cairngorm close and background disable

    So after trying to write a custom class for TitleWindow popups for two weeks, I just couldn't invest any more time in getting them to work.
    So as an alternative I am using Cairngorm popup 1.7.
    Everything involving creating the popup works great, but I am having problems with closing.
    I dont get any compiler errors, but flash debug error pops up when I try to hit the close button on the TitleWindow.
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@10a9fdf9 to mx.events.CloseEvent.
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at spark.components::TitleWindow/closeButton_clickHandler()[E:\dev\4.0.0\frameworks\projects \spark\src\spark\components\TitleWindow.as:458]
    If I disable the error console it works just fine. Any thoughts on getting rid of this error?
    Here is the code from the popup component mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       xmlns:popup="com.adobe.cairngorm.popup.*"
       title="Receive Items" x="800" y="600" width="800" height="264" close="dispatchEvent(new Event(Event.CLOSE))" textAlign="left">
    <s:layout>
    <s:VerticalLayout  horizontalAlign="center"/>
    </s:layout>
    <fx:Script>
    <![CDATA[
    ]]>
    </fx:Script>
    <fx:Declarations>
    <fx:Array id="category">
    <fx:String>Computers</fx:String>
    <fx:String>Phones</fx:String>
    <fx:String>Rides</fx:String>
    <fx:String>Audio</fx:String>
    <fx:String>Video</fx:String>
    </fx:Array>
    </fx:Declarations>
    <s:BorderContainer width="680" height="166" borderVisible="false">
    <s:Label text="Requested by: Someone" y="26" x="0"/>
    <s:Label text="Item: Wireless Headset" y="51" x="0"/>
    <s:Label text="Quantity Received:" y="106" x="0"/>
    <s:Label text="Order Date: 06/11/2010" y="26" x="550"/>
    <s:Label text="PO #: 378542" y="43" x="551"/>
    <s:Label text="Quantity Ordered: 1" x="0" y="77"/>
    <s:DropDownList x="105" y="100" width="43"></s:DropDownList>
    <s:CheckBox x="77" y="131"/>
    <s:Label text="Backordered:" y="136" x="0"/>
    </s:BorderContainer>
    <s:controlBarContent>
    <mx:Spacer width="100%" />
    <s:Button label="Save" click="dispatchEvent(new Event(Event.CLOSE))"/>
    <s:Button label="Cancel" click="dispatchEvent(new Event(Event.CLOSE))"/>
    </s:controlBarContent>
    </s:TitleWindow>
    Lastly, for those who are familiar with Cairngorm, is there a way to disable the background (aka main application) and have it blurred out just like the TitleWindow main function does?
    thanks!

    1. dispatchEvent(new CloseEvent(CloseEvent.CLOSE, true, false)) reports this error
    Error: Error #1023: Stack overflow occurred.
    at com.adobe.cairngorm.popup::PopUpEvent()[C:\workspaces\flex4.0betadrop17feb10\Cairngorm 3 trunk\target\checkout\libraries\Popup\src\com\adobe\cairngorm\popup\PopUpEvent.as:67]
    at com.adobe.cairngorm.popup::PopUpBase/dispatchPopUpEvent()[C:\workspaces\flex4.0betadrop17 feb10\Cairngorm 3 trunk\target\checkout\libraries\Popup\src\com\adobe\cairngorm\popup\PopUpBase.as:362]
    at com.adobe.cairngorm.popup::PopUpBase/closePopUp()[C:\workspaces\flex4.0betadrop17feb10\Ca irngorm 3 trunk\target\checkout\libraries\Popup\src\com\adobe\cairngorm\popup\PopUpBase.as:315]
    at com.adobe.cairngorm.popup::PopUpBase/set open()[C:\workspaces\flex4.0betadrop17feb10\Cairngorm 3 trunk\target\checkout\libraries\Popup\src\com\adobe\cairngorm\popup\PopUpBase.as:192]
    at com.adobe.cairngorm.popup::PopUpBase/onClose()[C:\workspaces\flex4.0betadrop17feb10\Cairn gorm 3 trunk\target\checkout\libraries\Popup\src\com\adobe\cairngorm\popup\PopUpBase.as:307]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at components::newTicket/___newTicket_TitleWindow1_close()[/Users/brian/Documents/Adobe Flash Builder 4/PRISM/src/components/newTicket.mxml:9]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    2. not sure how to develop the event handler within the application for the close event
    3. I am using flex 4 and the showCloseButton property is not available for Spark TitleWindow
    4. how would I close a window using PopUpManager without calling removePopUp? I dont see anything like PopUpManager.Close
    thanks for everything so far!

  • How to use cairngorm framework in flex 4?

    Hi Everyone!
    Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
         Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
    Thanks in advance.!

    Read about Presentation Model. Refactor towards that and you should fine.
    C

  • Cairngorm 3 sample applications - missing libraries

    I have checked out the sample applications from http://opensource.adobe.com/svn/opensource/cairngorm3/trunk/samples/insync/ repository, but these samples reference Cairngorm libraries, which are missing. What versions should I use to be able to build these samples?
    best regards Zdenek

    I checked only libraries which are used in the sample, but all of them are in old versions on
    http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm+Libraries
    Current versions are validation-1.11.swc, observerParsley-1.10.swc, observer-1.10.swc, navigationParsley-1.0.swc, navigation-1.0.swc, module-0.11.swc, integrationParsley-0.13.swc, integration-0.13.swc.
    Zdenek

  • Handling Visual Changes in a Cairngorm Application

    I was wondering if there are any suggestions/best practices for how to handle visual changes in a Cairngorm Application.
    I am currently working on a Cairngorm Application with many moving parts - Trees, Lists, ViewStacks with ViewStacks as children. I want the application to be able to change visually based on some user actions - no real business logic involved. For instance, I have a menu that has options for displaying PopUps, or making hidden Panels visible. Right now, I am using Events all over the place to bubble up to the appropriate parent component.
    Does it make sense to have properties in the Model that control the visual aspects of the Application?
    Any thoughts are greatly appreciated.
    Thank you.

    Absolutly, I think.
    We bind, for instance, the enabled property of many controls to {model.loginOK} for instance, or control visible/includeInLayout with {model.userRole=='admin'}.

  • Deep linking integrating with Cairngorm 3 Navigation Library

    Hi there,
    I wonder if the Cairngorm 3 Navigation Library will integrate deep linking in future? Furthermore, it would be great to know how deep linking could be used in coexistence with the Cairngorm 3 Navigation Library!
    Any thoughts about it?
    Thanks,
    masu

    Hello François,
    As adviced, I have posted this feature request to your jira:
    http://bugs.adobe.com/jira/browse/CGM-94
    For the moment, only John Cunliffe from this post:
    http://forums.adobe.com/thread/872180
    ... is capable of providing a working patch.
    Please keep me posted!
    Thank you,
    masu

Maybe you are looking for