Interact with the user interface components

I'm trying to find a GOOD way to interact with the external classes user interface components. For example, that you have a 'controller' class that needs to access the view of the user interface in some way (define a label text or something else). The controller class does not do anything, it discusses only the logic of what should be the case. Currently, it is created by my top-level class when the program starts. He listens to some events occur and needs to update/interact with the user interface or the State of the application depending on what events are. I do not seem to be a way for this controller class to easily access the UI component that I need to get my hands on.

I'm trying to do to reduce the size of a file of mxml WindowedApplication growing (LOOK cool but that is not important) and take part of the logic of the application of this file.

It's complicated by the fact that the label is in a State that does not have the status of 'base' (so it is not a child, or even a subsidiary child of the main class at boot time) and by the fact that it is not yet near a high school component. (If that were the case, I could probably just pass the label object in the constructor for the outdoor classroom.)

In other words, I can't just call getChild ("labelName") on my 'main' request object because it is buried nested inside OTHER components. I don't think I like the idea to browse all components and sous-composants recursively looking for the component that my outer class trying to ask. I thought about other ideas, but I don't like any of them enough to try them, eh.

I'm at the point now about where I come to the conclusion that my fundamental design strategy is wrong, or Flex just not allowing complex applications where the GUI components can interact with external classes relatively pain-free. I'm not convinced that "Flex cannot do', I'm looking for advice on some great Flex application in all design patterns.

Where do you put this kind of control logic, and what happens when it starts to overflow and become so large that you need to break in other files?

Found a solution, I think that's what I've been looking for:

http://labs.Adobe.com/wiki/index.php/Cairngorm

Tags: Flex

Similar Questions

  • I can't interact with the user interface. For each click, it lags for like 2 seconds!

    Hello

    I just bought the new MacBook Pro with Retina Display Mid 2015

    2, 8 GHz Intel Core i7

    16 GB OF RAM

    AMD Radeon R9 M370X

    AE v. 13.5.1

    I installed CC applications as usual and everything was fine until today. Ive been using before AE with this new computer and everything worked smoothly.

    Nothing has changed in terms of parameters or updates. He just started lagging. I can't use it because its boring. Whenever I click on something it is lagging! This also happens when there is no open compositions, just the app and the im through the settings.

    IM new to this forum so I hope someone can help!

    If you need a form more just say.

    Thank you very much!

    I've seen a number of people with questions on these forums with images keys do not release when you release the mouse and other weird things - almost always when a Wacom tablet has been installed. The problem persists even if the Tablet is disconnected.

    I wonder if your problem is.

  • Interaction with the user

    We try to create a project where we show software simulations, and we'll use Captivate to do this. We also want to add a feature to allow the user to 'try', which means that they take control of the mouse and can really interact with the demonstration. Is this possible?

    Hello!

    It is possible to have someone software "try". The key is in the original game to the top of your record of the screenshots of the software. There is a difference between registration of a "demonstration" by report to record a 'Simulation '.

    When you are ready to register and get the screenshots you want to make sure that Captivate is in the correct mode. Before you click the record button, click the Options button in the lower left corner. One of the options that is displayed is the recording Mode. Make sure it is set to Simulation Training.

    Once you have training Simulation, Captivate automatically includes the boxes click, captions, highlights, etc. that you save your screenshots. To check what Captivate includes in regards to interactivity, click the settings button next to the option of recording Mode. Select the components you want people of sages they you can see your movie.

    With these settings Captivate all your screenshots record then becomes a simulation where people have to interact with what they see on the screen.

    I know that this has been detailed, but I hope it helps. Good luck to fill your training modules.

  • Script objects lost after execution of an element of interaction with the user?

    Hello

    I'm new to the development of a plugin vCO and recently I see something which I think is abnormal about the element user intervention is a workflow.

    1. I created a few script objects (subject to the vCO plugin I developed) in a script element and I linked them as attributes for the workflow. These objects are all working well.

    2. after the script element, there is an element of the Interaction of the user

    3. after the part of the User Interaction, there is another element of script in which I tried to link the objects mentioned in #1 as in parameter.

    Somehow to step #3, vCO can't seem to find these objects, the error reported as:

    Workflow: TestWorflow / Scriptable task (item2): ch.dunes.model.type.ConvertorException: could not convert an object, reason: unable to perform operation 'find ('PersonInfo', 'ec528439-2dc4-4e9e-9cae-51e34c506762')' reason 'VSI' plugin: 'null '.

    I thought that maybe the scripts provided in my plugin objects are problematic, so I replaced the with objects provided in the plugins official sampe of the vCO (SolarSystem sample plugin), but the result is the same.

    However, if I repalce those objects with variables of simple types (String, number, etc), there is no problem when I initialize them before an element of the Interaction of the user and reference them in the following script items.

    Your help is much appreciated, thanks in advance!

    Yes, sorry about that. The type is called properties. In fact, I created a test workfow with example (attached).

    You can take a look to see how to create an object Properties and transfer and an object of type properties.

    In addition, in the newspaper, you can see that in the first two tasks scriptable, the id of the object of properties is the same. After the intervention of the user (passivated workflow), the id of the object of properties is different (which means a new instance is created and the State was populated from the database) but still the data entered in the frist two elements before the intervention of the user is always available.

    Copy and paste into the workflow of creating a property where it is easier:

    outprop = new Properties ();
    outprop.put ("key1", "Value1");
    outprop.put ("Key2", {prop1: "valueProp1", prop2: "ValueProp2", prop3: {nested: "something"}, prop4: ["arr1", "arr2"]});
  • Panel/container for the user interface components?

    Forgive my ignorance, I'm sure this is a stupid question with a simple answer, but I am new to both Adobe dev and QNX.

    Is there anything for an Air application on the Playbook that acts as a container for the elements of user interface - similar to, say, the StackPanel in Silverlight? My preliminary research on Actionscript itself says not, but so far, the QNX components have been the saving grace of this platform, so I hope that there is a component of QNX UI that I don't know

    Thank you.

    Hey deeko,.

    Yes, there is a class called (ironically) container that can help you with what you want. Here is the Doc of the API and information with examples for this:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/QNX/UI/core/container.html

    im going to assume that you have not yet watched on the COMPRESSED AIR SDK library yet, so here is the link in case you were curious about other things you need in the future:

    http://www.BlackBerry.com/developers/docs/airapi/1.0.0/index.html

    hope that helps. Good luck!

  • How to expose the user interface components in a managed bean?

    Hi all
    I created a jsf page without exposing user interface in controlled beans components.
    And the page is created successfully.
    But now I want to expose components from user interface again controlled beans
    How to do this?
    Help, please

    Select your device in the main menu Jdeveloper, in the property Inspector find Binding property--> click on edit to bind this component to a property of the managed bean.

  • What is with the user interface?

    Hi all

    Just downloaded PSE8 to see if I want to spend the PSE6. Not really sure yet. For openers you can't empty the 'welcome' screen and the choices are, you are going to get what you want or not. Now for the 'UI adjustment' in preferences > general tab. Well you can do 'light '. I do like it, it's not as light as my old PSE5. I could never understand why Adobe went to a black user interface? However, when you do the 'light' UI, all the necessary buttons ie. file, edit, improve, layer, etc. are so dark you can't find them, let alone read them. It is sort of like hit or miss. I think the buttons should display a white lettering when you change the UI to light. You know, just so that you can find, either that or make the buttons in braille. Well that's my rant and PSE8 question. Why programmers can't think of anything like that?

    John

    It is not that they are not - they reminded a lot of people with previous versions. But they seem not to care, unfortunately. If you want to be sure adobe reads your thoughts, use the comments tab on the Contact link at the top of this Web page to tell them. Since this is a user to user forum, there is no knowing for sure that someone from adobe will see to what you post here.

  • createTextField() will not work with the user interface component

    I use ActionScript to create a TextField and it works very well.

    If I then add (button or checkbox) user interface component to the stage of the textfield stops displaying.

    If I remove just the button on the stage of the object TextField does not always display. If I then remove the button component symbol in my library, TextField appear again!

    Here's the script. It works as long as there is no UI component in the library.

    See Code attached. Displays text, it will stop the display if you put a button on the stage.


    Thanks for any help

    MRC06460CT

    Hello

    I thought I had fixed this problem, but you are right. If I put the arguments in the correct order, the text does not go far.

    Thank you very much

    Mike Cohen

  • You are KILLING ME with the user interface layers

    Why did you move it out of the range of main tools and to the top of the page so I have to hunt for him?

    Why you place it between even designed icons that I hit by mistake whenever I want to move the layer?

    Why do you continue to hide the submenu layers, creating an extra tap to reveal it and slowing down that's me down even more?

    Why you repeat the same menu once for each layer, 10 TIMES, instead of ONCE for all the layers palette, they way it is in ideas?

    The great thing about this app that it can be used as a digital tracing paper pad - sketch and change the opacity of each layer that you refine and position elements in different places. Why do make it it more difficult to take advantage of this feature?

    Hi Don,.

    Thanks for your comments. We moved the layer icon because for some reason many people do not see here where he was. (I'm curious to know what icon you are misunderstanding the layers icon. The share icon? "It will help to know if I can convey this information).

    On the submenu layers (and it's the repetition in each layer): even though this is the first time I've seen comments about its repetition, we receive frequent requests to move somewhere that is accessible with a single click. I don't know what the plan is for it, but I will certainly share your comments passionate with the draw for the team.

    We are pleased that you find useful application. And very happy that you use frequently. Please know with certainty that it is not our goal is to make things difficult.

    Thanks again for taking the time to post.

    Sue.

  • Deal with the user interface panel in differenet C code

    http://digital.NI.com/public.nsf/allkb/1D8F1B4E8B1C6FB0862576880033C69A

    This KB is matched with my question. But the download link is not valid. Can someone give me an example? Thank you very much.

    The link is not valid due to a revision of site that changed paths. The correct link is this one.

    I posted a comment on this page, request correction.

  • The best way for the interaction with the user?

    Hello

    Because they remove the views of the web in version 6.0.0 what would be the best and most simple way to 'capture' a user entry in a running workflow?

    • The web client of vSphere
    • The portal of vRealize automation
    • THE REST API
  • I need an app that interacts with the user... user answers a question, app indicates correct or not. Is this possible with DPS?

    I'm a provider of publication for an educational publisher. Customer wants to allow students to test and receive feedback on their answers within the app. Also, the client wants to receive the responses made by the student to measure progress through the "book."

    Is this possible with DPS?

    It must be created with HTML.

  • problem with the user interface

    Hello

    I want to store a LabelField and a ButtonField in unique horizontalFieldmanager.

    display aside and left to the right of the label button.

    I was able to view a horizontalField but I want to display as below then how it is possible.

    Text1 button1

    Button2 Text2

    Text3 button3

    Code:

    for (int i = 0; i)<>

    {

    HorizontalFieldManager hfm5 = new HorizontalFieldManager()
    {
    protected void sublayout (int width, int height)
    {
    Field field;
    get the total number of areas falling under this Manager of
    int numberOfFields = getFieldCount();
                   
    System.out.println ("length =" + numberOfFields);
    int x = 0;
    int y = 0;
    for (int i = 0; i)<>
    {
    field = getField (i); get the field
    System.out.println (i + "->" + field);
    setPositionChild(field,x,y);
    layoutChild (field, width, height);
    x += 130;
    }
    setExtent (width, height);
    }
    };

    hfm5. Add (Text);

    hfm5. Add (Button);

    }

    Please help me as soon as possible:

    code above show me data only once.

    example:

    Text1 button1

    Hello

    Thanks for help me.

    I solved problem myself.

  • Suitable dark theme on the user interface components

    Hello!

    I was wondering if there is a way to allow simply dark skin of QNX ui in your application, without defining each SkinAssets components one by one?

    import qnx.ui.theme.ThemeGlobals;
    
    ...
    
    ThemeGlobals.currentTheme = ThemeGlobals.BLACK;
    

    Is supposed to do, but not all QNX controls seem to pick it up.

  • Problems with the user interface button

    I know it's a simple enough question, but do not understand the error myself.

    The problem is that the "Reading license" button does not run the alert("");

    I have tried all the ways, I know, but can't seem to understand.

    Is there something that I missed?

    Create window

    hwin var = new window ('dialogue', "Help and settings", undefined);

    hrs var = ' group {orientation: 'column', alignment: ["fill", "fill"] alignChildren: ["fill", "fill"],-}.

    groupOne: group {orientation: 'column', alignment: ["fill", "fill"] alignChildren: ["fill", "fill"],------}

    bannerImage: Image {text: 'Image', image :'/ C/Program Files/Adobe/Adobe After Effects CS6/Support Files/Scripts/ScriptUI Panels/Layer_tools Icons/Banner.jpg'},\}

    Subject: StaticText {text: ", properties: {multiline: true}}, \

    helpImg: Image {text: 'Image', image :'/ C/Program Files/Adobe/Adobe After Effects CS6/Support Files/Scripts/ScriptUI Panels/Layer_tools Icons/Description.png'},\}

    },\

    groupTwo: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ["fill", "fill"],------}

    ccLicens: button {text: 'Reading license', preferredSize: [75,25], alignment: ['right', 'Center']},

    okButton: button {text: 'OK', preferredSize: [75,25], alignment: ['right', 'Center']},

    },\

    }";

    hwin. GRP = hwin.add (HRS);

    All text:

    hwin.grp.groupOne.about.text = 'name ' +.

    ' \nCreated by: © copyright 2013 +.

    "\n\nLorem ipsum dolor sit amet, adipiscing elit computer." +

    "\n\nLorem ipsum dolor sit amet."

    OK button

    OK var = hwin.grp.groupTwo.okButton;

    Ok. Onclick = function()

    {

    hwin. Close();

    };

    Play button of license:

    var readLicense = hwin.grp.groupTwo.ccLicens;

    readLicense.Onclick = function()

    {

    Alert ("Something");

    };

    Display 'Help and settings' victory

    hwin. GRP. Layout.Layout (true);

    hwin. Center();

    hwin. Show();

    Quentin

    Should be "onClick".

    readLicense.onClick = function() {}

    Alert ("Something");

    };

Maybe you are looking for