Can I change component's state?

Hi All
First of All, I'm sorry for my english. But I'll do my best to explain my question.
Can I change component's state?
For example, When I click the button, I wanna change Label's state.
<s:states>
  <s:State name="A"/>
  <s:State name="B"/>
</s:states>
<fx:Script>
  <![CDATA[
      private function changelblState():void{
           // lbl.includeIn = "B"          --> impossible
   // or
   // lbl.state = "B"                  --> impossible
  ]]>
</fx:Script>
<mx: Label id="lbl" includeIn="A"/>
<mx: Button click="changelblState()"/>
How can I change component's state?
Thanks in advance.
Kevin.

Thank you for reply.
But I've already tried.
<s:states>
  <s:State name="A"/>
  <s:State name="B"/>
</s:states>
<fx:Script>
  <![CDATA[
      private function changelblState():void{
         lbl.currentState = "B"
  ]]>
</fx:Script>
<mx: Label id="lbl" includeIn="A"/>
<mx: Button click="changelblState()"/>
I got the error message.
ArgumentError: Undefined state 'invisibleSmallVideo'.
at mx.core::UIComponent/getState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UICo mponent.as:10607]
at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.y\frameworks\projects\framework\src\m x\core\UIComponent.as:10627]
at mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10381]
at mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]
at mx.core::UIComponent/set currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
I know this is fault. If I can use lbl.includeIn = "B";  , I can solve it, but I can't.

Similar Messages

  • Can I change the rollover state of a placed photograph?

    I simply want to be able to have a series of separate single, small photographs with descriptions below them and when someone moves their mouse over the photograph I would like it to display a larger version of that photograph on the same screen.  Then, when they move their mouse away, the larger version of the photograph disappears.
    I thought it would be configured in the rollover state of the image, but I must be doing something wrong.  I have placed and resized a photograph on my site.  I placed it, then resized it to basically a 1.5" w x 2.25" h.  I have tried to change to the rollover state for the image and then hyperlink to a larger size of that image but it seems to hyperlink all of the states.  And, if previewed, the mouse pointer becomes a hand, and when you click on the image it opens a new tab and displays the image there -- eventhough the box is not checked to open link in new tab.
    Help! Is there a way to accomplish this?

    Ok I did this on my site for one of my clients.
    What you do is set a lightbox composite. Enable the thumbnails and on the options set the events to rollover.
    Resize your thumbnails to desired size.
    Hide the enlarged picture of the light box. Now when you hover over iton preview on muse you should get the effect. Make sure to just have the hero image of the lightbox image no fill that would normally happen when you select the image and your window would dim out.
    Hopefully that helps you if not ill be on tomorrow and will post my finished site so you can see the effect and verify if its what you asked for.
    Good Luck!
    Edit: http://sanantoniorestaurant.businesscatalyst.com/index.html Link to my client's site, on the bottom half, Specials, hover over the images.

  • How can I change the state for normal. All I get is a question mark.

    I can't change the normal state for my site. The button for color of text for the normal state is a question mark. Is there a way to reset this?

    Thanks. I am trying to change the appearance of a hyperlink on a web page. Specifically, I want to change the default text color from blue to another color. I can change the color for the other states of the hyperlink (rollover, etc.) but the attempt to change the normal state of the hyperlink is unsuccessful because the color box for that state is a question mark. Bill

  • How to change component / actual used material during MIGO for Suncontract

    Hi
    We have below scenario, need your expert help...
    1) As per BoM Material A- is produced from Mat B.
    2) Sub-contact Order is created with Mat A and Mat B is sent to Vendor with Mov type 541.
    3) In few cases Mat A can be produced with Mat C / mat D etc
    4) Now at the time of MIGO..we will come to know that which mat is used .
    Question: -  Can I change component material at the time of MIGO. I mean can change component material from Mat-B  to Mat C etc.

    Hello Rajesh,
    You need to change the component in Purchase order (ME22N). there is not separate table for this.
    - Go to ME22N transaction
    - Select the line item for final product
    - Go to Material tab and click on "Component" at rightside
    - Add new material number here
    - You can keep old material or delete it.
    Hope this helps.
    Regards
    Arif Mansuri
    Reward if answer is helpful

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How can I create a navigation bar in the template so I can change the down state of a button on a page made from the template in DW3?

    We're creating pages from a template in DW3. The template includes a header, footer and a navigation bar. We've made the navigation bar an editable region so that we can change the down state of the buttons on pages where it is required. However, when we make a new page from the template and try to change the behaviors of the buttons in the navigation bar it will not allow us to make those changes. 

    Have you considered using CSS styled text/list menus instead of image rollovers.  It isn't hard really and it's actually a much better choice for   web accessibility and for search engines to find and follow your links.   Here are some links to several CSS menu systems you can try:
    CSS Express Drop-Down Menus (tutorial)
    http://www.projectseven.com/tutorials/navigation/auto_hide/
    CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus  (download)
    http://www.highdots.com/css-tab-designer/
    List-O-Rama  (DW Extension)
    http://www.dmxzone.com/go?5618
    CSS  Menu Maker (On-Line Menu Generator)
    http://www.cssmenumaker.com/
    Pop-Menu  Magic2 by PVII (DW extension purchase)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How can I change a State name in iphoto map?

    A few months ago, changing a location of a group of photos, I really changed a state name.
    The image shows the name State "Casa David i Mireia" where should say "Catalunya" that is the real name.
    How can I change that name. I have opened a case in Apple Support, but the solution to reinstal the app have not worked for me.
    Thank you for your help
    Jordi

    Thanks for your help!
    The problem is that I think that I changed the "default" name for the state where the photos were taken. I have 50 differents locations, that are all correct, and photo per photo, I can modify the original location, but only at "local" level.
    How can I change the name displayed in State section as "Casa David i Mireia" for "Catalunya" that is the real name for the State where the photos where taken?
    I don't if this post is comprehensive. I'm not sure.
    Thanks for your time!
    Jordi

  • My past billing adress of my apple ID is the states, presently i'm in montreal Canada and im not able to change the billing address because my balance is $ 0.68, any idea how can i change it?

    my past billing adress of my apple ID is the states, presently i'm in montreal Canada and im not able to change the billing address because my balance is $ 0.68, any idea how can i change it?

    You can contact iTunes support and request that they remove the $0.68 from your account here:
    http://www.apple.com/support/itunes/contact/
    They should respond within 24 hours.

  • Can a button change to another state and remain there, and also go to a URL?

    Hi --
    I've been wracking my brain and scouring the internet since yesterday to find a solution to this...It seems easy enough, but I'm at a loss...maybe I'm over thinking it and it's simply not possible?
    We have a button that we want to, when clicked, change to another state, remain there, and also use a navto to go to another page within the publication...is this possible?
    We've tried doubling up the actions of the button, using fake buttons, etc. all without success. What we have it at now is...you can tap to navto, and the button does change, but it reverts back to it's previous state in that moment between releasing the button and actually jumping to the page we want it to go to.
    The only explanation I've come up with is based on the information on this page: http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-8ad81e812b10bfd837-80 00.html -- that because the two actions I want to accomplish fall into the two different categories: Supported actions for hyperlink buttons and Supported actions for slideshow buttons, that this simply isn't possible?
    Your help is greatly appreciated!
    Thanks,
    Kristina

    No, that's not supported with multiple actions. You can't switch a state and then jump to another document.

  • Can not change vendor when creating a new Development Component in NWDS

    Dear friends,
    Im trying to create a new Development Component in NWDS. Our NWDS is connected to NWDI and we are using CM Services option of NWDI.
    Before I could create a DC and change the vendor but now I cant change it anymore. Now, the vendor is by default sap.com and we cant change it and it seems that we also have to put our project in a separate directory. home/ directory or other directories in the list.
    See below screen shots...
    If I make a new DC than we see it like this: home/bpm_test [sap.com].
    If I make a new DC in my LocalDevelopment I can change the vendor and I dont have to choose a home directory.
    Do you have any idea how to change that?
    Any help would be greatly appreciated.
    Thank you in advance,

    HI,
    it seems that the vendor is defined in the NWDI track. That's why you can't change it.
    regards,
    Vasils

  • FF67 problem, can't change statement date(statement saved but not post)

    I need to change the statement date of a bankstatement. I did not post the statement yet.
    I used a wrong statement date, and I want to change it, but I saved it after booking the second screen(the one with the
    statement items)
    When I look by Manual Bank Statement Overview I see the bankstatement, but it has no Posting complete remark yet, because it has not been postefdofcourse.
    The problem is I can't change the statement date, because when I try to Post then the systems gives an error because it does not accept the new statement date I want to use.
    Is there a way to solve this problem? The statement has not been posted yet, so I suprised I can't change the statement date.
    Anyway I hope somebody can help me out.

    I had to post them first because otherwise it looks I could not delete the statement.
    I saw no Id with only saving, that's why I post them. then the statement got an id.
    What do I have to choose to make it possible to delete statements, not posted yet.
    I guess I have to select something else because I did not see any Id to choose.
    I do a manual input of the bankstatements (no import).
    Whst's the best I can do now?  What do you mean with FI?
    I guess I can do a manual booking on the three(send/receive and general) bankaccounts to get the right position of the accounts?
    The bankstatements are ok(booked with ff67) only the three accounts I mention above have the wrong position.

  • Change base view state from a custom component

    I'm pretty new to flex and I'm having a small issue in change the view state from a component.
    My Application have 2 custom components called userlogin and main menu. In the main application page I have userlogin component in one state and the main menu component in another. I'm trying to change the state if the login in successful from user login to main menu. I have the following function written inside the login component.
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    This code worked when I had all the controls in the main page. But then I created components and included them in to components and now when the login is success, its giving the following error.
    ArgumentError: Undefined state 'MainMenu'.
        at mx.core::UIComponent/getState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UI Component.as:9908]
        at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9928]
        at mx.core::UIComponent/commitCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:9750]
        at mx.core::UIComponent/setCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:9701]
        at mx.core::UIComponent/set currentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6087 ]
        at components::UserLoginForm/__btnSubmit_click()[C:\Projects\WarrantyAutomation\src\componen ts\UserLoginForm.mxml:60]
    I'm sure this has something to do with accessing the states from a custom component, but I do not know how to change the state to the main menu. Please help me with this. Any help is greatly appriciated.

    Hi dasun1981,
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    If I am right the above function is in your userlogin component and the two components "userlogincomponent" and "maincomponent" are in main application file and the states were also defined in main application file.
    But in the function above the currentState refers to the state of the userlogin component and not the main application ...but the states are defined in main application file...that's the reason why the exception was thrown...
    Instead you replace the line in the above function with the below line:
    Application.application.currentState = "MainMenu";
    Please mark it as answer if it helped you.
    Thanks,
    Bhasker Chari

  • Can multisim be set to automatically change component values?

    Hi all,
    I'm a little new to the newest versions of Multisim (currently using 12), the last version I used was about 10+ years ago, so bear with me if my question seems too simple...
    I'm trying to simulate a boost converter and was wondering if there was a way for multisim to automatically change component values with respect to time. In other words, I give it a rannge of values and it will cycle through them -or just vary them in any way at all? If it's available, I might have not seen it. Thanks for all your time!

    Hi,
    The Step Voltage source is basically a piecewise linear source with 4 data points, so instead of using the step function you can use the PWL source instead and add as many data points as you want. If you are not sure what a PWL source is, refer to this:
    http://www.ni.com/white-paper/11591/en/
    Tien P.
    National Instruments

  • Post install problem. Changes to the state or options of DB SUSDB can't be made at this time. DB Is in single-user mode.

    Hi,
    Have you ever come across this problem before.
    Changes to the state or options of DB SUSDB can't be made at this time. DB Is in single-user mode and a user is currently connected to it.
    It's preventing the post WSUS installation task from completing.
    I opted to use the WID Database option and it created the SUSDB.
    How can I resolve it?
    Thanks  

    this sounds similar to some issues that occurred when KB2720211 was first release (the update does put the DB into single-user mode, to perform some tasks, then switches it back into multi-user mode. sometimes, that switch-back was not performed, and the
    DB was left in single-user mode).
    You can refer to this thread, the steps are buried in there.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/531d576b-eeaf-40dc-9057-b3adbde6186f/kb2720211-debacle-is-this-acceptable-microsoft-quality?forum=winserverwsus
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How can i change lifecycle state of globalPlatform java card?

    hi
    i have GlobalPlatform compliant java card.
    how can i change my card life cycle state ?
    for example, changing life cycle state to SECURED.
    in global platform specs doesn't exist anything about a command for changing life cycle state.

    See GP 2.1.1, section 9.10, SET STATUS command.
    The SET STATUS command shall be used to modify the card Life Cycle State or the Application Life Cycle State.
    Best regards,
    Eve

Maybe you are looking for