Buttons when pressed twice - HELP

On my test site www.pullman.co.nz/dda/test/index I have a
flash site with a menu top left. If i press the same button twice
in a row it does not go tot he correct fame - i.e. when the images
button is pressed it goes to the frame "images" but when you press
it again when it is already on the "images" frame it goes to the
frame "intro". Any help would be appreciated.
D

Well if you have an images button in the images page and you
still want the images button to go to the images page you need to
go to the action script and tell it to go to the propper frame. If
the images page is on the second frame you need to put:
on (release) {gotoAndStop(2);
this will make that button go to the second frame. AKA the
images page. You must also give the same code to each of the images
buttons. If you have any more problems let me knew. <3

Similar Messages

  • Disabling a push button when pressing it....

    Hi,
    I want to disable a push button when pressing it (to be more specific as the last command to be executed ...).
    Although the syntax ... the name of push button ...e.t.c. , i've written are correct:
    set_item_property('test.psh_button',enabled,property_false);
    the error message that arises is :ORA-06502
    when i comment out this line the source code is executed without any errors.....
    Can you think of another way to accomplish this requirement...????
    Note: i use Dev/2000 v.6i with patch12
    Thanks,
    Sim

    hi Sim,
    the two tryouts where just to testout the error, not a real solution. My guess was that this error FRM-41032 also occurs in your "real" form, this would cause the ON-ERROR-trigger to fire, and perhaps for some reason your ORA-06502 occurs somewhere in ON-ERROR. So if you've set both navigable-properties to false and the error would be away, that would have been an check on this.
    The second one was just to check if the SET_ITEM_PROPERTY-code would work separated from the other logic you have in your WHEN-BUTTON-PRESSED. But what you could try in your real code: do a GO_ITEM('some visible and navigable item'); and then issue the SET_ITEM_PROPERTY.
    perhaps you can try when you have access to the sources again.
    Andreas

  • Can I execute a Button when pressing "Enter" in an InputField?

    Hi All,
    I have an InputField and next to the InputField, there is a Button.
    Ii would like to have my application executing the Button when the User presses the "Enter/ Return" Button on his keyboard.
    Is that possible? If yes, how??
    Thanks, Johannes

    Hi,
    You can try using OnEnter property of the Input field for your requirement. Assign a method to the onEnter property of the input field and now when the user fills data in the field and press enter the method assigned will be executed.
    Thanks,
    Abhishek

  • How to set default button when press "Enter"

    Hi,
    I have a form and it has only one button (Submit). When I press "Enter", it can submit the form and do the action. However, when I add another button (Normal button, not submit), it cannot perform submit action directly when I press "Enter".
    If we press "Enter" and the form can submit automatically, it is more user-friendly than without this feature. Therefore, may I know the method of set the default button when users press "Enter"?

    At first I thought the order of the form controls might matter.  When I run this code:
    <cfdump var="#GetTickCount()#">
    <form action="TestCfgrid.cfm" method="post">
    <input name="x" type="text" />
    <input type="button" value="x" />
    <input type="submit" />
    </form>
    While I am in the text box, if I press the enter key the form submits.  I originally tried it with the submit and button inputs in the opposite order.
    Note that the enter button will not submit the form if you are in a select control (aka dropdown) or a textarea or if your focus is not on a form element.  That's the default behaviour.  If you want to override that, you'll have to write some javascript.

  • Actionscript 3.0 when button is pressed twice turns on/off

    Alright I am new at actionscript but what I wanna do is when my button it is pressed once it brings up my input text("hiddentext") and when its pressed again it will remove it.
    here is what I got.
    button1_btn.addEventListener(MouseEvent.CLICK, shoot_1);
    function shoot_1(event:MouseEvent):void
              gotoAndStop("hiddentext");{
    and shoot_1 is just the identifier to make them work together.
    Message was edited by: dogmer punchy

    A nice clean way of dealing with this is to put the text inside a movieclip and control the visibility of the movieclip with the button, toggling it to be the opposite of what it currently is.  If you were to assign an instance name to that movieclip like "hiddenText", the code for toggling it could be...
    button1_btn.addEventListener(MouseEvent.CLICK, shoot_1);
    function shoot_1(event:MouseEvent):void
              hiddenText,visible = !hiddenText.visible;
    The use of the " ! " tells it to be what it is not.

  • Pushing a button when pressing on Tab

    Hey
    Im trying to create in my page (jdeveloper version 11.2)
    that when i move to another Tab a button will be pressed
    Do you know how to do that?

    Hi,
    in the showDetailItem disclosure listener invoke the button's action
    refer this
    disclosureListener of af:showDetailItem Invoking Method Twice
    http://mjabr.wordpress.com/2011/05/20/invoke-buttons-action-programatically-in-java/
    ~Abhijit

  • Trigg the 'Query' button when pressing 'Enter' on the keyboard

    I have a form with 2 buttons, 'query' and 'reset'.
    I would like that the 'query' button is triggerd (pressed) when the user presses 'Enter' on the keyboard. In regular html I think this is accomplished if the button is a 'submit' rather than a 'button' type, but I haven`t found a way to edit the
    type of button in Portal.
    Users belive it`s very annoying to have to move the mouse over the 'query' button to execute the query, and would rather like to just press 'Enter'.
    I`ve tried to use a javascript (onKeyPress), but if you make a javascript in Portal, you`re not allowed to add this to your button, only as an 'form-' or 'field validation' in a textbox.
    Is there anyone who knows a way to get this functionality?
    Regards,
    Orjan

    One of the AVG add-ons for Firefox has been reported to cause that to happen. Disable that add-on until AVG fixes it.

  • ADF grays out button when pressed

    So, I have a command button. Anyway i can keep it from turning gray when I press it? I want it to be immediately re-enabled because I'm running an Excel file to the stream and I want to be able to do a responseComplete, but when I do that, the button will stay gray.
    Seems like a bug in ADF to me.

    Hi Frank,
    Thanks for responding.
    Yes, I found this link previously: ADF and Jasper Reports: does it alter the render lifecycle? and I tried that.
    I get the following error in the WL console and the button stays gray:
    java.lang.IllegalStateException: Cannot forward a response that is already committed
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    I tried immediate = true but it doesn't re-enable the button. Just stays gray still.
    The only "solution" I've found so far is to use the JSF CommandButton. Not sure what the side effects from that will be...

  • HT3964 computer does not respond to the power button when pressed

    macbook power button inoperative, computer dead... power cord hooked up.. what next?

    Hello 007grams,
    Take a look at this article I found for you while researching your issue.
    Troubleshooting: My computer won't turn on
    http://support.apple.com/kb/TS1367?viewlocale=en_US
    Resolution
    If your computer won't turn on, try each of these steps:
    Verify you have a good connection from your Mac to the wall outlet by confirming the power cord and adapter if present are securely connected and plugged in. To check if the wall outlet is working, plug in a lamp or other electrical device.
    If the wall outlet is working and you continue to have no power try another power cord or adapter if available. If it works you may need a replacement cord or adapter.
    Note: See Apple Portables: Troubleshooting MagSafe adapters for further troubleshooting with MagSafe adapters.
    Disconnect all accessories that are plugged in to the computer, such as a printer, hub, or other mobile device.
    If your Mac supports user-installable memory, solid state drive, or hard drive, and you recently installed any of these, make sure they are installed correctly and are compatible with your computer. If possible, reinstall the original memory or drive into the computer to find out if the behavior persists afterwards.
    MacBook Pro: How to remove or install memory
    MacBook: How to remove or install memory
    Mac Pro: How to remove or install memory
    Mac mini: How to remove or install memory
    iMac (27-inch, Late 2012): Installing or replacing memory
    iMac: How to remove or install memory
    Reset the SMC.
    If you are still unable to start up your computer after trying each of these steps, visit an Apple Store or Apple Authorized Service Provider (AASP) for further diagnosis. If you plan to visit an Apple Retail Store, make a reservation at the Genius Bar using http://www.apple.com/retail/geniusbar/ (available in some countries only).Note: Diagnostic fees may apply for issues not covered under warranty or the AppleCare Protection Plan (APP).
    Cheers,
    Sterling

  • Some Songs On iPod Don't Display Artwork Until Center Button is Pressed

    Okay, I just got my computer revamped so I had my itunes library file and all the songs saved but I reinstalled iTunes. Now some songs on my ipod are acting weired by displaying all the song info to the left (the firmware calls for them to center when there is no album artwork) and when the center button is pressed twice you see the album artwork as if nothing was wrong. Now no one dare say restore it because that is my backup plan if all else fails. Here are Blured but recognizable pictures of the problem
    http://srv0201-03.sjc3.imeem.com/g/p/ab5e10d23fea6f101a2ccba3938874cb_web.jpg
    http://srv0201-03.sjc3.imeem.com/g/p/6e16bdbecff3c4552ec464d0f7670404_web.jpg

    The only thing that does fix it is removing the artwork, syncing, adding the artwork, and syncing again. Obviously that's a pain because I have to go into "get info", clicking "artwork" and removing it from there one by one because the feature "Clear Downloaded Artwork" seems to not work.

  • Need help w/ making an object appear WHEN a button is pressed

    I've tried to figure this out on my own, but am stumped. I even tried using the .setVisible command... but that didnt work. What I would like to happen is to just have the stick figure appear, sans clothing. Then when the "Add Shirt" button is pressed I want the stick figure to acquire a shirt. Same goes for pants.
    import java.awt.event.*;
    import java.awt.*;
    import java.applet.*;
    public class dolls extends Applet implements AdjustmentListener, ActionListener {
         Shirt myShirt;
         Pants myPants;
         Color c;
         Scrollbar red,green,blue;
         int redValue, greenValue, blueValue, clothing = 0;
         Label redColor, greenColor, blueColor;
         Button shirt, pants;
         boolean clickedShirt = false, clickedPants = false;
         public void init(){
              redColor = new Label("Red");
              add(redColor);
              red = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
              add(red);
              red.addAdjustmentListener(this);
              greenColor = new Label("Green");
              add(greenColor);
              green = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
              add(green);
              green.addAdjustmentListener(this);
              blueColor = new Label("Blue");
              add(blueColor);
              blue = new Scrollbar(Scrollbar.HORIZONTAL,0,0,0,256);
              add(blue);
              blue.addAdjustmentListener(this);
              shirt = new Button("Add Shirt");
              add(shirt);
              pants = new Button("Add Pants");
              add(pants);
              myShirt = new Shirt(120,125,3);
              myPants = new Pants(120,125,3);
         public void adjustmentValueChanged(AdjustmentEvent e){
              redValue = red.getValue();
              greenValue = green.getValue();
              blueValue = blue.getValue();
              repaint();
         public void paint(Graphics g){
              g.drawOval(150,100,30,30);
              g.drawLine(165,130,165,180);
              g.drawLine(165,133,120,160);
              g.drawLine(165,133,210,160);
              g.drawLine(165,180,143,235);
              g.drawLine(165,180,187,235);
              if(clickedShirt = true) {
                   c = new Color(redValue, greenValue, blueValue);
                   g.setColor(c);
                   myShirt.display(g);
              if(clickedPants = true){
                   clickedPants = true;
                   c = new Color(redValue, greenValue, blueValue);
                   g.setColor(c);
                   myPants.display(g);
         public void actionPerformed(ActionEvent ae){
              if(ae.getSource() == shirt)
                   clickedShirt = true;
                   repaint();
              if(ae.getSource() == pants)
                   clickedPants = true;
    // <applet code = "dolls.class" height = 300 width=350> </applet>If needed I will post the code for the shirt and pants classes.
    Thank you all for your help.

    code for pants.class
    import java.awt.*;
    public class Pants {
         Polygon pants;
         public Pants(int h, int v, int size){
              pants = new Polygon();
              pants.addPoint(10*size+h,18*size+v); // 1
              pants.addPoint(20*size+h,18*size+v); // 2
              pants.addPoint(25*size+h,35*size+v); // 3
              pants.addPoint(18*size+h,35*size+v); // 4
              pants.addPoint(15*size+h,27*size+v); // 5
              pants.addPoint(13*size+h,35*size+v); // 6
              pants.addPoint(05*size+h,35*size+v); // 7
         public void display(Graphics g){
              g.fillPolygon(pants);
    }code for shirts.class
    import java.awt.*;
    public class Shirt {
         Polygon shirts;
         int h;
         public Shirt(int h, int v, int size){
              shirts = new Polygon();
              shirts.addPoint(12*size+h,1*size+v); // 1
              shirts.addPoint(18*size+h,1*size+v); // 2
              shirts.addPoint(29*size+h,9*size+v); // 3
              shirts.addPoint(26*size+h,12*size+v); // 4
              shirts.addPoint(20*size+h,8*size+v); // 5
              shirts.addPoint(20*size+h,20*size+v); // 6
              shirts.addPoint(10*size+h,20*size+v); // 7
              shirts.addPoint(10*size+h,8*size+v); // 8
              shirts.addPoint(4*size+h,12*size+v); // 9
              shirts.addPoint(1*size+h,9*size+v); //10
         public void display(Graphics g){
              g.fillPolygon(shirts);
         public void changeH(int changeHpos){
              h = h + changeHpos;
    }

  • Matchcode in OO (call the search help when the button is pressed )

    Hi Guys,
    I'm using the class cl_dd_document in order to fill a form that contains a input element (cl_dd_input_element) and a button element (cl_dd_button_element).
    What I need to do now is to simulate (or build) a matchcode for the button.
    For example, the input field is for entering the name of a table, and with the button i want to show all the tables that are elegibles for that field.
    Any suggestion?
    Regards,
    Eric
    Message was edited by:
            Eric Hernandez Pardo

    Hi Uwe,
    What I want to know is how to call the search help when the button is pressed. (Like the one in SE80 Transaction)
    Regards,
    Eric
    Message was edited by:
            Eric Hernandez Pardo

  • Frame layout changes when button is pressed again...

    Okay so basically I have a button on my frame and when it's pressed it opens up another frame. This is fine, but when the button is pressed again it opens up the frame again but the layout is all over the place.
    Here is the code:
    if (ev.getSource() == seating)
    else
                   seatdisplay = new JFrame("Seating Display");
                   seatdisplay.getContentPane().setBackground(Color.orange);
                   seatdisplay.setLayout(new BorderLayout()); //Define border layout
                   seatdisplay.setVisible(true);
                   seatdisplay.setSize(550,500);
                   seatdisplay.add(panelLeft, BorderLayout.WEST); //Position object to the west
                   seatdisplay.add(panelMiddle, BorderLayout.CENTER);
                   seatdisplay.add(panelRight, BorderLayout.EAST);
                   seatdisplay.add(panelTop, BorderLayout.NORTH);
                   seatdisplay.add(panelBottom, BorderLayout.SOUTH);
                   panelLeft.setLayout(new GridLayout(4,2)); //Define new grid layout
                   panelLeft.setBackground(Color.black);
                   panelLeft.add(a1 = new JButton("A1")); //Add buttons
                   panelLeft.add(a2 = new JButton("A2"));
                   panelLeft.add(a3 = new JButton("A3"));
                   panelLeft.add(a4 = new JButton("A4"));
                   panelLeft.add(a5 = new JButton("A5"));
                   panelLeft.add(a6 = new JButton("A6"));
                   panelLeft.add(a7 = new JButton("A7"));
                   panelLeft.add(a8 = new JButton("A8"));
                   panelMiddle.setLayout(new GridLayout(3,6));
                   panelMiddle.setBackground(Color.orange);
                   panelMiddle.add(empty = new JButton("")); empty.setVisible(false);
                   panelMiddle.add(b1 = new JButton("B1"));
                   panelMiddle.add(b2 = new JButton("B2"));
                   panelMiddle.add(b3 = new JButton("B3"));
                   panelMiddle.add(b4 = new JButton("B4"));
                   panelMiddle.add(empty3 = new JButton("")); empty3.setVisible(false);
                   panelMiddle.add(empty1 = new JButton("")); empty1.setVisible(false);
                   panelMiddle.add(b5 = new JButton("B5"));
                   panelMiddle.add(b6 = new JButton("B6"));
                   panelMiddle.add(b7 = new JButton("B7"));
                   panelMiddle.add(b8 = new JButton("B8"));
                   panelMiddle.add(empty4 = new JButton("")); empty4.setVisible(false);
                   panelMiddle.add(empty2 = new JButton("")); empty2.setVisible(false);
                   panelMiddle.add(b9 = new JButton("B9"));
                   panelMiddle.add(b10 = new JButton("B10"));
                   panelMiddle.add(b11 = new JButton("B11"));
                   panelMiddle.add(b12 = new JButton("B12"));
                   panelRight.setLayout(new GridLayout(4,2));
                   panelRight.setBackground(Color.black);
                   panelRight.add(c1 = new JButton("C1"));
                   panelRight.add(c2 = new JButton("C2"));
                   panelRight.add(c3 = new JButton("C3"));
                   panelRight.add(c4 = new JButton("C4"));
                   panelRight.add(c5 = new JButton("C5"));
                   panelRight.add(c6 = new JButton("C6"));
                   panelRight.add(c7 = new JButton("C7"));
                   panelRight.add(c8 = new JButton("C8"));
    }The seat button is pressed and seatdisplay frame is opened, however, if I press the seat button twice another seatdisplay frame is opened and the layout is all over the place. Do I need to do some sort of refresh?

    Swing related questions should be posted in the Swing forum.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html
    Don't forget to use the "Code Formatting Tags", so the posted code retains its original formatting.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • SUBMIT button works only when clicked twice... Online interactive form

    Hi,
    I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button.
    For the first time it is fetching the contract details properly.
    In the same form, i am changing  the previously entered value with another contract number and clicking SUBMIT.
    Now the details for the previously entered contract number is only displayed. Again if i try for the same value ( which i used for the second time )  and press submit, it is workin correctly.
    So, the problem is, except for the very first time SUBMIT button action, the button works fine only when clicked twice..
    please help me in solving this issue..
    Regards,
    Surya.

    Hi,
        In addition to my previous post, I am also using RESET FORM button from Library.
    First I am entering the contract number (say 400000000) in the form and clicking submit button. The contract details are fetched and displayed in the form.
    Now i am Resetting the form using Reset Button, and giving new contract number (say 400000020).  When  I pressed Submit button , the details of the first entered contract number (400000000)  is coming.
    Then again I am giving 400000020 or any other number, it is fetching the details correctly for that number...
    Can anyone help me in this issue..
    Thanks,
    Surya.

  • Firefox can't find the file at (a location is specified) when either "Navigate previous" (and next) buttons are pressed in an HTML5 skin (but OK in IE/Chrome).

    I create HTML5 help projects from a package called MadCap Flare. It uses what they call an HTML5 'skin' that sets the style/layout of the page and also includes 'Navigate previous' and 'Navigate next' buttons. When viewing the help and pressing these navigate buttons in IE8 or Chrome 32 there is no problem, but in Firefox 27 I get the following: (typical error for pressing a button on any page)
    "File not found"
    "Firefox can't find the file at /C:/SVN/FlareEnglishOnLineHelp/Output/HTML5_Help_Modeller_Reference/4attrib/idh_jointinterface_element_meshes.htm?TocPath=Modeller Reference Manual|Chapter 5 : Model Attributes|Meshing|_____2."
    " Check the file name for capitalisation or other typing errors."
    " Check to see if the file was moved, renamed or deleted."
    - Because the files and buttons work in other browsers I'm wondering just what is going on here with Firefox>>>>

    I should correct that last entry and state that the | charactacters are generated automatically in the Toc-Path for each 'book' name in the online help, and are not something manually created, whereas the : characters have come from the TOC book topic names (which were manually entered names and are what we would ideally require). But, because 'previous' and 'next' topics within nested TOC books without colon (:) characters CAN be browsed successfully when just | characters are present in the Toc-Path, the limitation would appear to be solely due to the : characters.

Maybe you are looking for

  • AU plug-in, in Components folder, not in GarageBand

    I've been searching through forums for an answer to this, but so far, no luck: I've installed MOTU Symphonic Instrument v1.1.3, which is a stand-alone app as well as an AU plug-in. The plug-in is now in Library>Audio>Plug-ins>Components, but in Garag

  • Ultra 24 Serviceability

    Hi, I've got a few questions regarding an Ultra 24 serviceability that can probably only be answered by someone who's actually handled this particular piece of hardware. 1) Where exactly is the CPU fan located? The heatsink doesn't appear to have one

  • Purchase Orders question

    Hello everyone, Is there any output type in SAP that is capable of creating an inbound delivery from a purchase order without the involvement of Outbound delivery created in SAP Thanks in advance

  • Report sharing in EA3

    I tried setting up the shared reports in EA3 on both linux and windows and I keep getting the following error message: Exception exiting traversable oracle.dbtools.raptor.config.ExtensionPanel[,0,0,485x389,invalid,layout=java.awt.GridBagLayout,alignm

  • SCCM 2012 R2 - Setting security Role for SCEP reporting shows nothing.

    Have an issue. I've created a new security role for a user so he can view reports about Endpoint Protection(Just copied Endpoint Manager role and set all permissions to Read) . But when user runs reports, he gets nothing: