Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Double-clicking

    I hope this isn't too dumb a question - how can I create a "double-click" function for an object? I'm trying to create a scenario where the end user has to double-click a line of text to move forward in the program. Any samples of code would be greatly appreciated. Thanks in advance...Bill


    GallyG webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Double Clicking on a PDF document, will not open
      When double clicking on a PDF document with the default document properties set to Acrobat Professional 8, the document will not launch Acrobat. ...
    2. Double clicking submit button - duplicates
      Hi there, I have a DW insert record behaviour on a php page. If the user clicks Submit quickly multiple times, I end up with duplicate records. Any...
    3. Double-clicking opens ID but not file
      I've checked file associations, and still, whenever I double-click on a ..indd file, IDCS opens but the file doesn't. Any ideas what else to check?...
    4. Double Clicking doesn't open files
      I've got PS CS and PS 7 on my Mac running OS 10.3.3. If I double click on an image file PS CS opens, but the image doesn't open. If I drag the image...
    5. Double clicking window bar doesn't minimize
      In illustrator CS when I double click the bar at the top of the document window the window doesn't minimize to the dock. I actually have to click the...
  3. #2

    Default Re: Double-clicking

    this.createEmptyMovieClip("test",1);
    test.createTextField("tester",10,10,10,100,20);
    test.tester.border = test.tester.html = 1;
    test.tester.htmlText = "This is a <a href='asfunction:_parent.fTest'>Test</a>"

    function fTest(){
    test.onEnterFrame = function(){
    if(C1 && getTimer() >= t1+500){
    C1 = 0; CC = 0;
    click2 = false; trace("double click - "+click2);
    }
    };
    if(C1){
    if(getTimer() < t1+500){
    C1 = 0; CC = 0;
    click2 = true; trace("double click - "+click2);
    }
    } else {
    C1 = 1; CC = 1;
    t1 = getTimer();
    }
    };

    hth

    regards
    Jack..
    Jack. webforumsuser@macromedia.com Guest

  4. #3

    Default Re: Double-clicking

    Thanks Jack. It worked like a champ. Very much appreciated.


    GallyG webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139