How to change application´s state of a component´s function

Hi, I m doing a Flex application,
I created a component "usersRegister", which have the following function:

private function comprobacionBBDD (): void {}
if(numero>0) {}
Mensaje="perfect.\n\n\n Wellcome. « ;
HERE, I want TO CHANGE the STATE
} else {if (number is-1)
message = message + "mistake1."
} else {if (number is-2)
message = message + "Error2 \n\n";
}
Alert.Show (message);
}




The problem is that when I have instances of the component in my application, I would change my application´s state when the first 'if' the true function.

Can you help me??

Thanks in advance and excuse my bad English.

Really thanks. I try and works perfectly.

Tags: Flex

Similar Questions

  • How to change the power state in a Service profile template

    I would like to change the "Power status" in a model of Service profile. While I can change almost all other aspects of the model, I don't find it in the UCS Manager GUI. Is it an unchangeable decision while creating the model? I can change it via the CLI?

    Hi Joernclausen,

    What version of the firmware of your UCS?

    In the CLI, try the steps below and let me know if it works.

     Go into the FI CLI and perform the steps below, ensure to enter your own template_name and select appropriate type of template followed by setting the power up or down sj-ucs-r13-mon-A# scope org sj-ucs-r13-mon-A /org # enter service-profile template_name initial-template sj-ucs-r13-mon-A /org/service-profile # power up sj-ucs-r13-mon-A /org/service-profile* # commit-buffer sj-ucs-r13-mon-A /org/service-profile # power down sj-ucs-r13-mon-A /org/service-profile* # commit-buffer

    You may also be able to change the power state of the individual service profiles

     Go to the service profile and use "Change Initial Power State" button for modifying the desired-power value.

    See attached screenshot

  • How to change the normal state inside the Accordion widget.

    Once I drag the widget, I see the base. Then, I can easily change the active state of each button.

    By clicking on 'Normal' and try to change the State normal it always changes back to 'Active' in appearance.

    Read the manual does ' t solve my problem. What thing?

    Thanks in advance

    Uwe

    I got it. Once I'm in the normal state and I want to change, click on 'Text' in the upper right of the Panel tools on top.

    Thanks anyway.

    Uwe

  • How to change the initial state of the button text?

    blank_page

    The initial state of a button switches is one established in IUR editor before the program runs in the Panel of property whose screenshot you have set. I'm not aware of a way to programmatically change the IUR, especially if the target computer is not installed on the development system.

    If for some reason you won't change the default value in the editor of the UIR, then what you have to do is to define the corresponding attribute BEFORE the Panel opens and possibly call DefaultCtrl before you set the value by default so that the control is set programmatically by default, you have just put , depending on what it is.

  • How to change application ADF oracle 11g to 12 c?

    I want to improve my oracle adf 11g asks to be worked 12 c

    Take a copy of the record of the backup application and simply open the application of JDeveloper 12 c and it should automatically migrate the application of the 12 c.

    And you can check this URL for the support of migration:

    Support of Oracle JDeveloper 12 c

  • How to change the cursor on the roll on the function

    I make it a point and click game in AS3 with flash.

    I changed my slider skin by creating a new class of '' mouse. '' It works very well. Now, I'm trying to change the skin of the cursor when it is over an object on the stage.

    I read that the MouseEvent.ROLL_OVER is the correct method, but I can't understand how do...

    I have my mouse class like this:

    public class Souris extends MovieClip
        {
     private var engine:Engine;
            private var stageRef:Stage;
            private var p:Point = new Point(); 
    
            public function Souris(stageRef:Stage)
            {
                Mouse.hide(); //make the mouse disappear
                mouseEnabled = false; //don't let our cursor block anything
    mouseChildren = false;
    
                this.stageRef = stageRef;
                x = stageRef.mouseX;
                y = stageRef.mouseY;
    
                stageRef.addEventListener(MouseEvent.MOUSE_MOVE, updateMouse, false, 0, true);
                stageRef.addEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler, false, 0, true);
                stageRef.addEventListener(Event.ADDED, updateStack, false, 0, true);
                stageRef.addEventListener(MouseEvent.ROLL_OVER,hover);
    
            }
    
            private function updateStack(e:Event) : void
            {
                stageRef.addChild(this);
            }
            private function hover(e:MouseEvent):void {
    souris.visible = false;
    }
    
            private function mouseLeaveHandler(e:Event) : void
            {
                visible = false;
                Mouse.show(); //in case of right click
                stageRef.addEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler, false, 0, true);
            }
    
            private function mouseReturnHandler(e:Event) : void
            {
                visible = true;
                Mouse.hide(); //in case of right click
                removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);
            }
    
            private function updateMouse(e:MouseEvent) : void
            {
                x = stageRef.mouseX;
                y = stageRef.mouseY;
    
                e.updateAfterEvent();
            }
    
        }
    
    }
    }
    

    I have in my main class (class engine):


    private var souris:Souris;
    
    public function Engine(){
    
    
    
                            souris = new Souris(stage);
                stage.addChild(souris);
    
            }
    private function startGame(e:Event):void{
    ....
    ..
    

    I tried to put in the class of '' mouse. ''


    stageRef.addEventListener(MouseEvent.ROLL_OVER,hover);
    
    private function hover(e:MouseEvent):void {
    Engine.souris.visible = false; 
    handCursor.visible = true ;
    }
    

    But it seems wrong... I don't know what to put in my score function... (I got the "handCursor' in my library).

    Thank you very much for your help!

    Thx for your answers, I found a solution to my problem. It was MouseEvent.MOUSE_OVER. and not to the overthrow. But thanks for the links, I read it and it helps me with some codes.

    Thanks for your time!

  • How to change the search engine when you use the functionality of Firefox Home button Search?

    In Firefox itself, I have configured duckduckgo as my default search provider.

    But when I use the host Firefox search button it is always defined on google and I don't see any possibility to change that?

    I love the Firefox Home button Search (or whatever we call it) otherwise, but it's annoying that it does not use the default Firefox.

    I use the Google Launcher now.

    Hi mrt181, it is planned to use the same search engine as in firefox - however, there is a bug at the moment, so it does not apply in all situations.
    usually, it will be enough to change the default engine in firefox back once to work around the problem in the search widget and get the same as set in the browser search provider.

  • How to change the position of the scrollbar component combobox

    Hello

    I would like to change the position of the scroll bar in a drop-down list on the right to the left box.

    Please advice.

    Thank you

    Yair Papo

    You can use the dropdown combobox property ' to reference the list component and then use the list component verticalScrollBar property to reference the scrollbar control.

    you will probably need to use the move() method to change its position rather than assign x, y properties and you will probably need to wait until the rendering is complete before attempting to assign its position.

  • How to change browsers in Muse for the preview page function?

    I looked in the site's properties and the properties of the page, and I don't see where I can choose which browser to have the use of the Preview Mode.  Can someone help me?

    Hello

    Please refer to a similar debate in the link below

    You can choose which browser to see a preview of the Muse of?

    Kind regards

    Vivek

  • How to change the Port pool

    If we want to change the port pool after cloning of layers of DB and Apps, what is the best way to do... A single method, I know, i.e run the preclone on the target system and run config clone again once on the same target on both system layer of database and Application layer and change the pool of port...

    is there another method?

    How to change the host name of a component of Applications using AutoConfig Doc ID: 341322.1

    (a) to register the application of topology of net service model node
    (b) updated the context file Autoconfig
    (c) shutdown apps services
    (d) to run the automatic configuration service
    (e) change the name of the host at the OS level
    (f) restart the machine.
    (g) to start the application sercies

    In step 2, the context of the updated file, we will create the new context with the new hostname file... Here I have doubt, how come new context file will be created with the new host name, since it has not changed hostname at the level of the bone at this stage or before this step? AutoConfig will be CNET, because the Hostname of the Machine is different, because we change the hostname in the last step before

    Please clarify my doubt, if my understanding is wrong?

    In step 2, you run "perl adclonectx.pl" command. This script is used to clone your context file (i.e. generate a new), and it will ask you to enter the new host name. Once completed, you will have two files of context in the directory $APPL_TOP/admin:

    (1) _ .xml
    (2) _ .xml

    When you run the AutoConfig (step 4), you must provide the context new file generated (i.e. _.xml), and the model topology net services (which is clean, because we have already served there) will be filled with the new host name.

    why we cannot do the procedure below...

    (a) to enter the net service topology model applications pane
    (b) change the hostname at the os level
    (c) restart the machine.
    (d) update the context file with the new host name or create the new context file
    e run the automatic configuration
    (f) to start the services

    Please correct me if I'm wrong...

    I have not tried your procedure before, but I think it would work also.

    I hope it is clear now.

  • How to change the number of minutes for the exercise of the activity of the application

    How to change the number of minutes for the exercise of the activity of the application

    Hello

    It is not currently possible to change the goal of daily exercise.

    If you want to suggest that Apple consider adding this option, you can submit a request here:

    https://www.Apple.com/feedback/watch.html

  • How to change Apple ID of App store at the time of the update of the app I have already change the ID in establishing air & app but still old ID think to update the application

    How to change Apple ID of App store at the time of the update of the app I have already change the ID in establishing air & app but still old ID think to update the application

    You must delete and re-download this request.

    (140006)

  • How to change the application installed HARD disk?

    My PC following setting:

    C: is for Window XP OS

    D: is installed application

    because the disc is not enough space and need to buy a new SATA III HARD disk after formatting under drive Z:

    I copy everything in D: z: readers and I would exchange the disks for the following parameter:

    D: old drive will become Z: drive for backup

    Z: old disk will become D: drive for installed application, because many applications and installed adjustment use the D: drive for application, so I'd like to preserve the D: drive for application, but I get no idea on how to swap the disks.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    This article describes how to change the drive letters on drives:

    "How to change drive letter assignments in Windows XP"
      <>http://support.Microsoft.com/kb/307844 >

    HTH,
    JW

  • How to change the icon of the Application on Blackberry JDE 6

    Hi, do someone know how to change the icon of the application of the project, we have created in the JDE? I searched the forum, and suggestions should go to the project properties, go to the "resources" tab and add the icon file. I have also included the file icon (PNG 68x68pixel) to the project.
    But this does not seem to work for me.
    I also tried to build clean, remove files jad and others, always not when I tried the app Simulator or on real device. Any help will be appreciated.
    I use Blackberry JDE 6, test the application on the actual device (9800), Simulator (9700). And the app that I'm testing is just a pushscreen simple helloWorld app, not a lot of code here. Thank you.

    Here's how to put the icon in BlackBerry JDE.

    1. Add the image to your project.
    2. Right-click on the image and choose Properties.
    3. Check "use as icon for the Application.
    4. Rebuild the application.
  • How to change the icon of the application where the application focus?

    Hello guys

    I want to know how to change the application icon focus when the application.

    I know how to create the icon of the Application, such as insert icon-> properties-> use as the application icon.

    Do you know how to insert the second icon to the project?

    Please help me guys

    TNX'

    Hello

    Ago may messages on roll on icon.

    This is the KB article for the overview icon.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    KB article for icon creation.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    TNX.

Maybe you are looking for

  • Is anyone having trouble with the header does not stay and he jumps back?

    After this last update of Mozilla Firefox my head with persona disappeared. After placing my cursor at the top of the screen it suddenly came back but on a part of it and you can't see my character lighthouse, I chose previously.

  • HDR-AS50 is backward compatible with RM-LVR2?

    Does anyone know if Live View remote control 2 last year works with the new HDR-AS50?

  • Cannot install Service Pack 2 E_no interface 80072EFD

    I tried 4 times to download and install service pack 2, I disabled my antivirus, etc.  I get error 80072EFD OR E_NO INTERFACE (ox800004002), I want to install internet explorer 9, but cannot until I have install service pack 2.  It's not automatic up

  • Launcher

    I'm eager to try another Launcher on my 6.0.1. system, but I would like to be sure, I know how to uninstall it before doing so. Where can I find the Launcher? And how is it installed? If it needs to be located alongside other applications, what is hi

  • Screen LCD HDMI TV not detected on Pavilion P6000

    I just bought a new LCD tv with hdmi input. My P6769uk Office, with an hdmi output, doesn't even recognize this TV/monitor, but recognized my old (now-defunct) lcd TV via hdmi. Help!