How to change the State of a custom component

HI (sorry for my English)

I am new to flex and actionscript...

I hava a < Application > with 3 States.

I also create and a custom component that I use in the 'Phase A '.

Inside the element, I have a < LinkButton > click = "" currentState = "" but do not work. "

I know that the easy solution is to get out the < LinkButton > component and put it on 'Stage-A' in the Application <>

Please any other solution?

Thank you

You must add an import or you can use it like this

mx.core.Application.application.currentState = "

Sincerely,

Michael

Sent from my iPhone

El 20/06/2009, a las 16:27, Ant - will [email protected]> escribio:

>

It gives me an error

«1120: access of undefined property Application.»

>

I think I need to change the Application.application. But what?

>

Thank you

>

Tags: Flex

Similar Questions

  • How to change the cursor to a custom

    I want to change the cursor to a custom, I used the following method:

    AVCursor cursor = LoadCursor (AVCursor) (gHINSTANCE, MAKEINTRESOURCE (IDC_CURSOR1));
    AVSysSetCursor (cursor);

    He succeeded, but the custom cursor is too small (the image of the IDC_CURSOR1 resource is large enough).

    I want to achieve such an effect:

    When we choose a 'Business Standard stamp', as an 'APPROVER'. The cursor changed to an overview of "APPROVER".

    Thanks in advance for any help!

    The call of the LoadCursor() API on Windows only supports small sliders, like ASSysSetCursor().  You must use a completely different method involving strictly platform API.

  • How to change the owner of a custom resource

    We create vCAC business groups as a resource that is centralized in our business accommodation for visitors office. Part of the procurement process is to create a custom resource vCAC for the vCACCAFE:BusinessGroup. Once the Group of companies has been implemented we would like to restore this object off customer accommodation property to allow them to update the group membership. How can I change the owner of the resource custom so that the client business group owns instead COMPUTER group central, or more precisely, I just feel like the Group of corporate clients to be able to perform actions of resources against the object group of business.

    It's the kind where I was going before I guess only you don't need this...

    >>... The resource action type has the value "elimination".

    My tests have shown that you can simply re-run the provision as another user and the EXISTING inventory item is replaced by the owner who ran.

    So you can have a market with a resource that says 'Take ownership' and for that Action, a provision by using the existing business group.  Changes in ownership. I tested that.

    Now that I have my right to consumer Resource Actions sorted (the service account of the plugin must qualify for all business groups - or at least where you want the actions to perform VCO), I'm sure I can put up an example that allows you to perform the Action of resource on behalf of someone else... This would allow you to SET the owner based on a new provision in the market.

    So, for example...

    1. I have create group of companies using advanced Service plan, which ALSO runs a provision of the custom resource.

    2. I add you to the Group of the company.

    3. I ran the action of change owner resource and type in your name.

    4. He performs a reconfiguration on your behalf... make you the owner.

    If this makes sense and could help you, I can set up a complete example in my lab tomorrow that shows this feature.  I know I can do.  But I also want to change the owner of a Machine element, and who died for us because he's not in the API.  I want to continue to push for an API method to change the owner as well.  As I said in my support ticket... If you own something, you should be able to change owner.

    Post edited by: SeanKohler

  • Changing the State of the application from a custom component

    Hello, I have several custom components that are included in the original application.

    When I try to change the State of a custom component, I get an error saying "undefined state: name of the State." How can I change the State of the application from a custom component? All States are defined in the original application.

    @linrsvp,.

    If you are using Flex3 try Application.application.currentState = "somestate;

    If you use Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate;

    Don't forget to import the namespaces corresponding to the above.

    Thank you

    Jean Claude

  • 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.

  • Camcorder car bought in Asia, how to change the date/time United States?

    Hi, I bought the unit in Hong Kong and brought it to the United States.  After I've set the date and time, each time it starts, it is synhronize to the time and date in Asia, which is 15 hours ahead of time.  I tried to find it in the manual on how to change the region, but could not.  Is there a way I can do?  Pleaes help.  Very much appreciated.

    I found it under Satilliate synchronization, I had to press OK again to UTC is displayed.  Thank you very much for the help.

  • 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

  • Satellite U400 - 15G - overheating-how to change the cooling module?

    Hello

    My Satellite U400 15 G is overheating (CPU up to 70 ° c). NEITER in Google nor in the manual, I can find a statement, how to open and change the cooling module. (I'm only trying to change mine, because garranty is already gone)

    Does anyone know how to open the laptop/notebook and how to change the cooling module?

    Thanks in advance

    Post edited by: bla42

    Before you continue just a matter of discussion:
    Let's say I help you with this and damage you something or broke a plastic part, what you will do in this case?
    I mean you probably know that you can get a few small important parts as separate components.

    By the way: this description may be provided in the manual. Disassembly of the laptop is authorized personal only. When you buy a new car it is no description how to disassemble the entire engine, right?

    By the way: Jeanine's right. See this page. There are many useful tips on laptop disassembly procedure.

  • How to change the color of the Apple Watch pointer?

    How to change the color of the Apple Watch pointer? In the style of color Apple Watch ca change you the color of the masince, complication, brands, etc. However, the needle of the hours and minutes remains white and red dark second pointer. Is there a way to set the pointers to become Gold?

    Hello

    It is not currently possible to customize the color of the hand or the second on the color dial hand.

    If a customization option is not specified for any feature of any particular face watch, then it cannot be customized.

    More information:

    https://help.Apple.com/watch/#/apd6ce85daf4

  • How to change the read-only, write protect status of files?

    Original title: change the State of the files.

    I have problems deleting files.  I need to know how to change the status of the files: e.g. "read-only, write protect, etc."

    Hi fbanks4,

    1. were you able to remove the files before?

    You can read the following article and try the steps to change the status of the read-only files:

    You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    http://support.Microsoft.com/kb/326549

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to change the color of the font of StandardListItem?

    As the black soil, the text on the StandardListItem become very difficult to read.

    Does anyone know how to change the color of the font to StandardListItem.

    Thank you.

    Theres no code really, you just need to format html text, except my statement of color in the text was defective, just color: and not font color:

    Your text here

  • How tio changes the programs installation directory, I want to install?

    How tio changes the programs installation directory, I want to install? I'm trying to install a lot of programs is always installed in "Local disk C" that low memory space. Please tell me how can I install the programs in other folders such as "Local disk D and E and F. And also please tell me that the directory in which the widows is installed when reached about his memory limit, does windows performance issues.

    Win needs 15% free space for proper operation.

    Using various hacks registry posted on various sites to redirect the default program installation folder to another drive is not supported by MS and can cause problems.

    Most of the programs when you install them have the option for a custom install, where you can specify where / which drive to install, but not all programs have this option. Even if you install a separate drive various files/folders will be written on victory drive.

    If the drives D, E & F are separate partitions of a disk, you will need to modify/extend partition in win

  • How to change the location of the installation folder of Windows of drive c to any other drive in windows 7

    How to change the location of the installation folder of Windows of drive c to any other drive in windows 7

    When you install a program, you normally have the opportunity to take the default or custom installation.  If you choose custom, you can specify where the program will be installed.

    Good luck.

  • How to change the search fields displayed on the homepage of UCM 11g?

    Hello

    How to change the search fields displayed on the homepage of UCM 11g?

    Another option for you.

    Follow the links below.

    How to: Customize the home page of Oracle UCM with configuration manager. -Blog of BlueStudios Johns

    Example of a custom component.

    bluestudios.co.uk/blog/wp-content/uploads/2009/02/ether_homepage1.zip

    -Prashant

  • Is it possible to change the State through several buttons?

    If I have already created, say, 100 identical buttons, and I want to change the State 'down' to a new color other than black. is it possible to do it quickly? I use 9 Captivate.

    Because you talked about "buttons" I assumed that you were pointing to the InBuilt States: Normal, rollover and down. The situation with styles is a little confusing IMO concerning States. You cannot set the States in Manager of Style of the object, as was the case of the Captivate 8 buttons. Since 9 Captivate, you will need to define States in the Panel object, for custom reports also state in regard to integrated States. Part of the InBuilt says are really integrated in the style: this is the case for all of the State for the Image buttons, for the background/outline for other types and form buttons. The labels on the buttons (text, system and form) are not part of the style. The exception are the image buttons because you have to put the text in the images. If you add objects in integrated States, they wil not be part of the style.  Even for States custom: they are not part of the style. I have problems with this configuration of confusing. It would be much easier, I think, if everything was recorded in an object style could be edited and changed in the Object styles Manager.

    The button menu "three lines", also called the hamburger or hot dog button, has opportunities to save changes to an existing style, to create a new style to apply a style to objects with a different style by default (as long as you override, leading + sign to appear).

    This no doubt confused answer: the workflow, I proposed with object styles, does that for characteristics that are saved in an object style (there no real explanation to help him as far as I KNOW). Now, I understand your last answer (sorry) that you are talking about a State that isn't integrated, but custom. In this case, you cannot change this State for all buttons at the same time. Only way is to duplicate the buttons. My apologies, I may have to write a blog about the object styles and its Director. I've heard several trainers proclaiming that they never use the OSM.

Maybe you are looking for