Programming button for single and double click

I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
1. on rollover - nothing
2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
3. on double click - a movie clip plays
It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
Thanks.

Nick76 wrote:
I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
1. on rollover - nothing
Do not change the highligh and it will look like nothing is happening (make sure auto activate is not beign used)
2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
3. on double click - a movie clip plays
It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
Thanks.
Single and Double clicks cannot be done like that. (Some players using layered menus do require a click to get things seen but not really what you are speaking about.)
Flash or Director may be better for this?

Similar Messages

  • Doubt - mouse double click invokes both single and double click

    Hi Friends,
    I added mouse listener to a java component. In the mouseClicked() method, I have implementation for both mouse single and double click. When I try to double click that component it invokes the single click method first and the it invokes the double click method. My problem is when I try to double click that component it should invoke my double click method alone not single click too.
    I'd be very grateful if someone can help me.
    Thanks and Regards,
    Sangeetha J

    Your problem: a double click is two single clicks. The first click will always fire a single-click event. How's the computer supposed to know that another click is to follow?
    All I think you could do is to instantiate a timer in the one-click method, set to whatever amount of time you think a double-click should take. If you get a second event while the timer's still active, it was a double-click and you can stop the timer and do the double-click action. Otherwise your timer should execute the single-click action after it timed out.
    But this will make your GUI look like it's responding slowly to single-clicks.

  • ITunes inconsistent about single and double clicks

    When I'm in Albums view mode, sometimes a single click expands the tracklisting of an album (like I want it to) sometimes it acts as a double click and begins play. This is incredibly frustrating when I'm trying to multi-select albums (ctrl + single-click), and a new album begins playing. The mouse is working consistently for other programs, so I don't believe there's a hardware problem. I've closed out of iTunes and rebooted the computer, but no love. I'm running ver 11.0.4.4 in Windows 8

    A couple of days after posting this, I began to notice the mouse working inconsistently with other programs. I have narrowed-this down to a hardware problem, and not an iTunes problem. Thanks for looking everyone.

  • Detecting single and double click on row click

    Hello All,
    I am using jdev 11.1.1.6
    I have a table displayed like below,
                                     <af:table value="#{pageFlowScope.Bean.List}" var="temp"
                                      rows="1500" rowBandingInterval="0" >                                  
                                          <af:column id="dc_c1" align="center" clientComponent="true" headerText="Heade1" >
                                           <af:outputText value="#{temp.value1}" escape="false"
                                                          id="dc_ot1"/>
                                          </af:column>
                                      </af:table>
    I want to detect
    - single click on a row
    - double click on a row
    How can i achieve it ?

    Hi,
    You need the combination of a client listener, a Javascript function and a server listener.
    Frank Nimphius has provided a comprehensive example here.
    Kevin

  • How to handle both single click and double click from mouse

    hey,
    I looked in past threads and didn't get a proper answer for capturing both single and double click from the mouse.
    in most applications the single click action does not interfere with the double click action, for example in a text editor, single click sets the cursor in between the text, double click marks a word, triple click marks a sentence, they do not bother each other, they all can happen first the single then the double and then the triple, but what if i have a very distinct action for each of the actions, the e.getClickCount() returns every time the number of clicks and if i use
    if(e.getClickCount()==1)
        doSingleClick();
    if(e.getClickCount()==2)
        doDoubleClick();it will always do first the single click and then the double click, which works fine with the example i gave, but not with what i want to do, so i was thinking to over come this that i will use another thread to run my tasks if dt has past since the last click and by the last click counts to perform the correct action and go to sleep until the next mouse click notify it, what do you think?
    run this to get what i mean...
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MouseClickTest {
         static long previousTime = System.currentTimeMillis();
         public static void main(String[] args) {
              JPanel panel = new JPanel();
              JButton component = new JButton("Hit me, please");
              component.addMouseListener(new MouseAdapter(){
                   public void mouseClicked(MouseEvent me){
                        if(me.getClickCount()==1)
                             System.out.println("Now I will do single click action");
                        if(me.getClickCount()==2)
                             System.out.println("Now I will do DOUBLE click action");
    //                    System.out.println("Click count: " + me.getClickCount());
              panel.add(component);
              Launcher.launch(panel);
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Launcher {
         public static JFrame launch (Container contents, String title, Color backgroundColor) {
              JFrame frame = new JFrame (title);
              if (backgroundColor != null) {
                   frame.setBackground (backgroundColor);
                   contents.setBackground (backgroundColor);
              } else {
                   frame.setBackground (contents.getBackground());
              frame.getContentPane().add (contents, BorderLayout.CENTER);
              frame.pack();
              frame.addWindowListener (new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                        System.exit (0);
              frame.setVisible (true);
              return frame;
         public static JFrame launch (Container contents, String title)      {
              return launch (contents, title, null);
         public static JFrame launch (Container contents, Color backgroundColor) {
              return launch (contents, contents.getClass().getName(), backgroundColor);
         public static JFrame launch (Container contents) {
              return launch (contents, contents.getClass().getName());
    }

    Read my comments and solution in this posting; [http://forums.sun.com/thread.jspa?forumID=57&threadID=705244]
    and then choose a better design for your application.

  • Detecting click ( single and double) on row (displayed using iterator)

    Hello All,
    I am using jdev 11.1.1.6
    I am displaying a list as below.
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    My requirement is, when user clicks on a row, that row should be detected in backend and those value will be used.
    My requirement is, On single click row should be detected(in backend/bean)
    On double click, the values is saved(in backend/bean).
    How can i detect single and double click on a particular row ?

    I have updated the code as below, single click and double click are getting detected on a row
        <af:resource type="javascript">
                function singleClick(){
                    alert("Single Click");
                function doubleClick(){
                    alert("Double Click");
        </af:resource>
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp" onclick="singleClick()" ondblclick="doubleClick()">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    Now,
    suppose i have following values for some/any row,
    value1=20, value2="abc", value3=009, value4="Language" 
    How can i retrieve these values in java script (if in backing bean then very good)

  • Recently my iPad does not consistently respond to a single or double click on the home button and i've had no choice but to turn it off and back on to escape fron the app  i'm using. Can't say it is consistent with any one app. Suggestions are asked for

    My ipad recently seems to be freezing and not responding to home button single or double clicks?

    While this could potentially be a hardwar issue:
    Try a rest: Simultaneously hold down the Home and On buttons until the iPad shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the iPad back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    If the reset doesn't work, you may need to consider restoring the iPad to factory settings

  • My track pad stopped working with a single finger/double click when I try to open emails, and when I try to open apps on desk top.  If I use two fingers, and then click open, I can open them.  Thank You for your help.

    My track pad stopped working with a single finger/double click when I try to open emails, and when I try to open apps on desk top.  If I use two fingers, and then click open, I can open them.  Thank You for your help.

    Greetings ascnephew8,
    It seems your trackpad isn't working as you expect it to. Have you reviewed the trackpad settings in System Preferences? The following article provides trackpad setting details which may help:
    OS X Mountain Lion: Change the way your trackpad works
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • 5s rattling power button and double click noise

    My 5s is having that power button rattle, and my home button is making that double click noise which is very annoying to me. I made an appointment at the Genius Bar to get it looked at, but the problem is that I two dents on my phone. Would they still replace my phone for free, or would they charge me that $79 for those dents, (I have Apple Care+).

    Hard to tell, if the phone has been dropped, this might have been a reason for your home button problems.
    Since you have Apple Care+, maybe you're lucky and they'll fix it for free.
    Good luck

  • In an album, many pictures would show on the screen and double clicking one would enlarge it for adjustments. Now one larger photo shows and along the bottom severa smaller ones. Options which used to be at the top right of screen no longer show. Whel

    In Aperture album about 16 photos would show on screen and double clicking on one would enlarge it for adjustments. Now one larger image shows with about 7 photos at bottom. Options for controlling this no longer appear at top right. How do I correct this?

    Do you mean the "View" controls are missing in your Toolbar?
    To add these controls back to the Toolbar, use the View menu and select "Customize Toolbar". Drag the View Controls back to the Toolbar.

  • Does anybody know any software for the Mac that I can run round robin, single and double elimination tournaments?

    Does anybody know any software for the Mac that I can run round robin, single and double elimination tournaments?  I help run tournaments but using excel for pool play and the web for bracket play, but if wifi is not available I have no way of running brackets for prize play.  Can some one help point me in the direction of software that I can use locally on my Mac Pro. 
    Thanks,
    Chris
    <E-mail Edited by Host>

    Splendid City Team Sports Scheduler, and Sports Scheduling Software System

  • Single button for line and SD on cisco 7861 SIP phone

    Hi All,
    Good evening. Can we configure one button for DN(Line) and SD. Our requirement is we need to configure one button for incoming and SD to a particular number.
    Thanks in Advance.
    Regards
    Sankar.

    Hi Thomas,
    The calls (inbound & outbound) would be passing through PSTN line, as it is not for internal. when ever an external customer calls complete DID number from a fixed number of their , it should hit that particular line button and for outgoing when ever we want to dial that particular PSTN number , we need to use the same button assigned to that particular external customer. So will this work?
    Regards
    Sankar.

  • Single or double click with thumb doesn't work well on trackpad since upgrade to mountain lion

    I'm using a 2009 MacBook Pro recently upgraded from Snow Leopard to Mountain Lion.
    The internal AND external trackpad behavior is disappointing compared to Snow Leopard.  Neither one seem to register my thumb single or double click unless I do it pretty hard. For instance, selecting a word or double click to select a line. 
    A single finger works better but it's inconvenient to change years of training. 
    Sometimes I tap w/ my thumb on a button or link and it works and sometimes and I get no response until I use my finger.  It's like the trackpad sensitivity is off. Single tap only half works.
    I was really efficient with the old trackpad behavior and my thumb.
    Any suggestions?
    Thanks.

    I'm the OP and I'm the one that listed the problem originally. I spent an hour with apple care and the genius level two guy suggested I wipe my whole system. LOL, for a 40MB app, yeah right. The issue with Safari 6 is javascript, according to yahoo javascript is turned off. If you try to change your classic yahoo mail to the newer version it will give you a javascript turned off error. So for whatever reason Safari 6 has javascript turned off even though it is clicked ENABLED in preferences. Crazy. I did find my solution though and that was to dump Safari 6 by giving myself "read and write" permissions and then dumping the safari chache, plist, and preferences files. Then I installed Safari 5.17 by downloading the dmg from the net using PACIFIST. I had complete directions but somebody at apple decided to delete the whole post.

  • Outlook 2010 apostrophe, single and double quotes are changes to question mark while sending mails to other internet receipient.

    We are using MS Outlook 2010 as our mail client. But we have noticed that whenevr we sent a mail to any other internet mail recipient all the "apostrophe", "single" and "double quotes" have automatically converted to ?. We have
    done almost all the workaround found in this site such as
    1.New a message and focus on the message window > click File > Options > Mail > Spelling and Autocorrect… > Proofing > AutoCorrect Options… > AutoFormat > clear the box before “Straight quotes” with “smart quotes”
    2. Used different encoding. We presently using US-ASCII for outgoing message. etc.
    Need your help to sort out these issues urgently.
    Waiting for a solution.

    Hi,
    What is your account type? IMAP, POP or Exchange?
    Send an email from the webmail, ask the recipient if this issue persists.
    As far as I know, this problem is always related to the encoding for outgoing messages, and here I suggest you try UTF-8:
    Go to File -> Options -> Advanced -> International options -> Uncheck "Automatically select encoding for outgoing messages", then select "Unicode (UTF-8)" beside "Preferred encoding for outgoing messages" -> OK.
    Hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • My fireefox icon has gone from my computer. So the only way I can upload firefox is to go into programmes and double click the firefox programme.

    The icon which is on my main computer screen for firefox has gone.
    The only way I can upload firefox now is to go to all programme, and double click the firefox programme.
    How do I get the icon back onto the main screen so that all I have to do is double click the icon and firefox uploads?
    Alsi I must not lose all my bookmarks.

    go into the start menu > all programs & right click the firefox icon. in the context menu select "send to" and then "desktop (create a shortcut)" (not sure if those are the exact terms since i use a non-english os)

Maybe you are looking for

  • Do I need to use a semaphore when reading/writing a functional global from reentrant VIs?

    I have a program that spawns multiple reentrant VIs running simultaneously.  These VIs write their status to a functional global.  The VI that monitors them periodically polls this global to check out how they're doing and takes action based on their

  • Photo Stream Albums Reappear in Aperture

    So at the start of each month I move the contents of the previous month's Photo Stream project into a main project for the year and then I delete the empty Photo Stream project. Everything is working fine at that point. But the next time I open Apert

  • The requested resource (/ciscopca) is not available

    I am trying to acces the mailbox via web url and getting the error The requested resource (/ciscopca) is not available using cisco unity connection   System version: 8.0.3.23031-1

  • BAPI FUNCTION TO CREATE A SALES ORDER

    I AM USING BAPI_SALES_CREATEFROMDAT1 AND BAPI_SALES_CREATEFROMDAT2 HERE IN FIRST FN IAM GETTING THE SALES ORDER NO BUT NOT IN 2ND FN.EVEN THOUGH ITS EXECUTING PROPERLY ITS GIVING *Please enter sold-to party or ship-to party *Sales document  was not c

  • How to Provide Native Methods in an Executable?

    Hey there, I'm writing a native Java launcher as a replacement for java.exe (or eclipse.exe). So far I'm only on Windows NT x64. Things work pretty well: My native executable launches the JVM using the Invocation API and calls a static `main' method.