+ Reply to Thread
Results 1 to 2 of 2

DOUBLE_CLICK event

This is a discussion on DOUBLE_CLICK event within the Tutorials forums, part of the Flash English category; Hi to all! Have you already tried to use the event MouseEvent.DOUBLE_CLICK of Actionscript 3.0 " Surely, some of you ...

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,762
    Rep Power
    11

    DOUBLE_CLICK event

    Hi to all!

    Have you already tried to use the event MouseEvent.DOUBLE_CLICK of Actionscript 3.0 "
    Surely, some of you has tried it without getting the desired result.
    Personally, the first time that I have tried this event, it didn"t work.

    On the double click of the mouse on a MovieClip to which I had associated the DOUBLE_CLICK, the respective function was not called.
    I then discovered that to have the event intercepted by a listener, we need to able the property doubleClickEnabled of the object to which we want to associate the DOUBLE_CLICK.

    Let us suppose to have a MovieClip named "clip_mc" placed on stage to which I want to associate the event DOUBLE_CLICK.
    First of all, I able its property doubleClickEnabled the following way:
    Code:
    clip_mc.doubleClickEnabled=true;
    then, I associate the listener to the event MouseEvent.DOUBLE_CLICK
    Code:
    clip_mc.addEventListener(MouseEvent.DOUBLE_CLICK,go);
    and I define the function go
    Code:
    function go(evt:MouseEvent):void
    {
    	info_txt.appendText(' ok ');
    }
    to obtain the double click on "clip_mc" as it should work:






    See you next!
    Last edited by Flep; 28-08-08 at 05:45.

  2. #2
    Junior Member Settled In rurounihanh is on a distinguished road
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Re: DOUBLE_CLICK event

    please help me, thanks
    i use Scrollpane of Component, i want doubleClick into scrollpane, but doubleClick is not action, why? i want doubleClick in scrollpane

+ Reply to Thread

Similar Threads

  1. MouseEvent.DOUBLE_CLICK, non funziona
    By thaiboys in forum Actionscript 3.0 base
    Replies: 0
    Last Post: 29-05-09, 16:14
  2. evento DOUBLE_CLICK di Flash CS3
    By Flep in forum Articoli e tutorials
    Replies: 2
    Last Post: 22-01-08, 04:31
  3. DOUBLE_CLICK e InteractiveObject
    By nootropic.kint in forum Actionscript 3.0 base
    Replies: 7
    Last Post: 11-11-07, 21:52
  4. event
    By lmarkus in forum Flash Italiano
    Replies: 1
    Last Post: 31-10-07, 15:39
  5. mouse event in as 3
    By nootropic.kint in forum Actionscript 3.0 base
    Replies: 11
    Last Post: 03-08-07, 09:18

Tags for this Thread

Bookmarks

Posting Permissions

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