There is possible to active and deactive some buttons ?

Hey. I have code to detect what page of my flash book is active and question now: there is possible to make 4 diferent effect for one button depend on what page is active? example:
page 1 : button is red
page 2 : button is blue
page 3 :button is black
i think this is possible but cant figure out how to make this

if you have a simplebutton, you can change its color using its transform.colorTransform property:
var ct:ColorTransform=yourbutton.transform.colorTransform;
if(this.currentFrameLabel=="page 1"){
ct.color=0xff0000;
} else if(this.currentFrameLabel=="page 2"){
ct.color=0x0000ff;
} else if(this.currentFrameLabel=="page 3"){
ct.color=0x000000;
yourbutton.transform.colorTransform=ct;

Similar Messages

  • Data Slice dynamic activation and deactivation for a set of users

    Hi Experts,
                     We have requirement to manually enter the data into RTC using IP.
    There are 2 sets of users --> Power Users and Normal Users.
    We need to allow the normal users to enter the data only from 1st to 5 th working day of every  month.
    Power Users should have authorization to edit and enter the data at any time.
    Can any one suggest how to set the dataslice using code.
    Regards,
    Shashi

    Hi.
    Please note that update of RSPLS_DS table do not affects at RUNTIME.
    If you want to create dataslice that activated and deactivated within sequence run you should do the next:
    1. Create exit variable that return you all working days EXCEPT 1 to 5 of each month.
    2. Create dataslice in modeler on this characteristic with restriction by this exit variable.
    3. This dataslice should be based on ABAP class as described [here|https://www.box.net/shared/zhirrvk859].
    4. In mydataslice method enter following code (I assume you have any DSO with definition whether user is power user or not. Lets say DSO has next structure:
    USER   | Z_IS_POWER   |
    aaaa    | NO
    bbbb    | YES
    Enter the next code in mydataslice method:
    SELECT Z_IS_POWER FROM YOURDSO INTO lv_POWER WHERE USER=sy-uname.
    IF sy-subrc = 0. *This is SUPER USER. Allow locked data edition
    e_noinput = rs_c_false.
    ELSE. *This is regular user. Do not allo locked data edition
    e_noinput = rs_c_true.
    5. Create in modeler 2 planning sequences for activating and deactivation dataslice as described in document.
    6. Each time you want to do something with locked data run first sequence for deactivation of dataslice. If super user will run it so dataslice will be deactivated, but if regular user - dataslice will lock the data.
    Regards.

  • Hello Community. My ipod nano 7g has been stolen - is there a possibility to find and block it if the ipod is connected via itunes?

    Hello Community. My ipod nano 7g has been stolen - is there a possibility to find and block it if the ipod is connected via itunes?

    Nope.  You can report the theft to the police, and that's about it.

  • Is there a possibility that the Bluetooth send some content to other mobile phone brands (Nokia, SonyEricsson ...)

    Is there a possibility that the Bluetooth send some content to other mobile phone brands (Nokia, SonyEricsson ...)

    You can only send Top Secret Stolen Documents by bluetooth, nothing else .

  • What is mass activator and deactivator?

    hi all,
    Can anyone explain me what is mass activator and deactivator in Multi provider and in infocube?
    can  anyone let me know with examples.
    regds
    haritha

    Hi,
    When you choose <b>Mass Activator</b> a list of all objects in the system appears with their status. You can select the objects to be activated from this list and then activate them at one time.
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/f2a8d4fb377c47b0aa25ae9ae160d6/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/f2a8d4fb377c47b0aa25ae9ae160d6/frameset.htm

  • I purchased 2 weeks before i phone 5 but there is problem with sleep and wake up button its not responding can anyone help me in this issue.

    i purchased 2 weeks before i phone 5 but there is problem with sleep and wake up button its not responding can anyone help me in this issue.

    You have a one-year hardware warranty & 90 days of free phone support. Take advantage of it, make an appointment at an Apple store or call AppleCare.

  • HT4914 Is there a possibility to try and re-match songs already uploaded to the cloud?

    Some songs part of an album were uploaded the first time with iTunes match. Is it possible to try and re-match them later on?

    The most likely reason for them not matching is the versions you have are not in the store (due to remasters etc). Your results are normal.
    You can delete them from the cloud, wait a while and add them back into your library, but if they didnt match last time then they won't next time.
    Some people have had some success by playing around with the files to try to force a match. A search on here may help, but it will still not give great results, and I personally think it isn't even close to being worth the time and effort.
    My advice is just to take the results you have, and maybe Apple will alter the matching process in the future. I suspect that they won't alter them to make much of a difference though.

  • Is there any possiblity to write and execute code before nodes get created in the content?

    Hi,
         I have created a dialog and after clicking OK the data is stored in the content. But I've the following requirement: "After clicking OK button on the dialog and before the data stored into the content, I've to do some action(I want to write some code)". Is it possible? Where can I write the code to perform the action before nodes get created? Let me know the solution. Your comments are welcome.
    Thanks & Regards,
    Arya

    This forum is only for discussions on the forums themselves. You should look in here for the forum corresponding to the Adobe product you are using and post your question there:
    http://forums.adobe.com/index.jspa?view=discussions
    When you do, please don't forget to provide enough information. We not only don't know what program you are talking about, but we don't even know if you are in Mac or Win.

  • Help needed in activating and deactivating a window

    In my GUI, I have created a window, that is having one textfield, one label and 2 buttons named "Enabled" & "Disabled" .
    MY requirement is: After execution of the window when I will click "Disabled" button, the window should be deactivated, even I can't type in the textfield and then clicking the " Enabled" button the window should be activated, then I can access the textfield.
    Here bellow,I have written the code for visibility of the window, but I haven't written code for the action to be performed by the 2 buttons.
    Can anyof you please write me the updated code satisfying my requirement, sothat I'll proceed further.
    Regards.
    MY CODE:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Test7 extends JFrame
         public Test7()
              Container con=getContentPane();
              addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              JPanel p1=new JPanel();
              p1.setBackground(Color.white);
              JPanel p2=new JPanel();
              JPanel p3=new JPanel();
              JTextField txt=new JTextField(10);
              JLabel l=new JLabel("hello world");;
              JButton b1=new JButton("Enable");
              b1.addFocusListener(new FocusAdapter(){
                   public void focusGained(FocusEvent evt)
              System.out.println("gained");
         // The component gained the focus
              JButton b2=new JButton("Disable");
              b2.addFocusListener(new FocusAdapter(){
                   public void focusLost(FocusEvent evt)
              System.out.println("lost");
         // The component lost the focus
              p1.add(txt);
              p2.add(l);
              p3.add(b1);
              p3.add(b2);
              con.add(p1,"North");
              con.add(p2,"Center");
              con.add(p3,"South");
              setSize(300,200);
              show();
         public static void main(String arg[])
              new Test7();

    try modifying code for the button listeners
    JButton b1=new JButton("Enable");
    b1.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent evt)
    System.out.println("gained");
    // The component gained the focus
    txt.setEnabled(true);
    JButton b2=new JButton("Disable");
    b2.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent evt)
    System.out.println("lost");
    txt.setEnabled(false);
    // The component lost the focus
    Hope this helps

  • Activating and deactivating selection screen box.

    Hi all,
    In my program on selection screen there are two selection box.
    Each has different function .
    I want, when i use any one selection box then other one should be deactivated.
    can any one me guide me in this regard.
    Thanks
    Chetan.

    Hi,
    I hope follwing code will solve your problem.
    LOOP AT screen.
      IF first_selection_box = 'X' AND screen-name = 'second_selection_box in upper case'.
        screen-input = 0.
      ENDIF.
      IF second_selection_box = 'X' AND screen-name = 'first_selection_box in upper case'.
        screen-input = 0.
      ENDIF.
      MODIFY screen.
    ENDLOOP.
    Reward points if the answer is helpful.
    Megards,
    Mukul

  • Activating and deactivating trouble!!!

    Thers no option to deactivate my CC programs?? could this be because i still need to register? if so when i do so it keeps telling me that my address doesnt match the one  they have on record (but click to continue on with this address) but once i do it just keeps looping back to the edit info screen any help getting seriously annoyed

    You will need to contact activation support:
    http://www.adobe.com/products/activation/
    Usually you can start a chat session right in that window and get it resolved right then.

  • Activating and Deactivating

    I had Activated my photoshop twice on other computers before and wanted it on my new computer so I uninstalled it off of one of my old computers without realising that there was a deactivate option. Now I can't install it on my new computer and I don't know how to get it back on my old computer. What can I do?

    You will need to contact activation support:
    http://www.adobe.com/products/activation/
    Usually you can start a chat session right in that window and get it resolved right then.

  • Activating and deactivating expose switches the window

    Hi,
    I found that expose in Lion behaves weirdly.
    The steps to repro:
    Open 2-3 windows of Safari.
    Move one window to another desktop (so there are windows of the same app on multiple desktops).
    Activate Expose (with gesture).
    Deactivate Expose (with gesture).
    What I expected to see after these steps: the same desktop, application and window as it was originally at the step 1.
    What I actually see: the screen slides to another desktop and activates the window on it. Doing it again does it again in the opposite direction.
    Nobody at the Apple store could explain why it happens or provide any logical explantion.
    So what's a deal with it?
    Cheers.

    Hi
    U need to assign an OK-CODE to print icon in the toolbar, but if it's a standard one, it means to change a standard object.
    Then u should considere after activing it u need to implement the abap code to manage it
    Max

  • User exit activation and deactivation in production server

    If I activate project of corresponding user exit and after transporting the request to Production ,
    then for deactivating the project will a request is generated or should i login to Production for deactivating the project.
    Thanks

    Hi,
    Deactivating the project would again ask for a request so we have to deactivate in development and take it via a transport to production.
    Regards,
    Himanshu

  • HT5628 Is there any possiblity of installing and running only windows 8 without running boot camp stuff in the background?

    I want to use my mac mini as a stand alone hardawre for windows 8. If it is possible please help with what to do...

    Backup / clone Mac OS X to another drive for safe keeping.
    Boot from Windows 8 DVD and just format the entire drive, make sure to have everything else not needed unpugged.
    Nothing hard.
    What is Boot Camp 5?
    Boot Camp 5 is not a release of OS X software. Rather, it is a release of the Windows Support Software (drivers). You will need to use this software on your Mac with Windows 8 or Windows 7. For more information on Boot Camp 5, see thttp://support.apple.com/kb/HT5639
    Which Macs support Windows 8?
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Mid 2010 or newer)
    Mac Pro (Early 2009 or newer)
    Mac Mini (Mid 2011 or newer)
    iMac (27-inch, Mid 2010 or Mid 2011 or newer)
    For more information, see this article.
    What are the System Requirements for Windows 8?
    Please see this article.
    How can I install Windows 8 on an eligible computer?
    Use the Boot Camp Assistant. The assistant will partition your internal hard drives and install Windows 8. For more information on Windows 8 installation, see the Boot Camp Installation & Setup Guide.

Maybe you are looking for

  • Formatting a new hard drive for mac

    Hi, In a previous post I asked about running Snow Leopard on my mac after a hard drive fail. I'm having issues with formatting a new hard drie in my mac. I have a 2007 black macbook and I'm trying to run a 160gb SATA seagate hard drive. After replaci

  • WARNING:UtilitiesC - Message file "Xst.msg" wasn't found.ERROR:PersonalityModule

    when i am trying to check syntax of my code in HDL Interface Node following errors had been occured Release  - xst J.33 Copyright (c) 1995-2007 Xilinx, Inc.  All rights reserved. WARNING:UtilitiesC - Message file "Xst.msg" wasn't found. --> WARNING:U

  • Oracle 9ias Enterprise Manager error

    Hi guys, I'm getting the following error when i access my Enterprise Manager: Servlet error: Renderer failed: java.lang.NoClassDefFoundError It's my first access to the EM. The server is instaled in a Windows 2000. Someone can help me with this error

  • Roaming from AP to AP on same SSID

    Hi Guys, I have an issue where I have an AP in one room and another in another. When I walk from one room to the other, I lose signal but manages to see the SSID and join. But, I cannot seem to surf the Internet, I have to manually disconnect and rec

  • How do I insert a video clip into the timeline?

    Do you happen to know how I could insert a video clip into the middle of a movie like you do in FCP? Can you add tracks and insert the clip above the spot i need to change for each movie. I don't want to render the whole movie (convert it into a MPeg