Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 2 of 2

Thread: DOUBLE_CLICK event

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

    DOUBLE_CLICK event

    amazing Flash templates
    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 06: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. event.target.name
    By angiveba in forum Actionscript 3.0 base
    Replies: 1
    Last Post: 05-11-09, 06:31
  2. MouseEvent.DOUBLE_CLICK, non funziona
    By thaiboys in forum Actionscript 3.0 base
    Replies: 0
    Last Post: 29-05-09, 17:14
  3. evento DOUBLE_CLICK di Flash CS3
    By Flep in forum Articoli e tutorials
    Replies: 2
    Last Post: 22-01-08, 05:31
  4. DOUBLE_CLICK e InteractiveObject
    By nootropic.kint in forum Actionscript 3.0 base
    Replies: 7
    Last Post: 11-11-07, 22:52
  5. event
    By lmarkus in forum Flash Italiano
    Replies: 1
    Last Post: 31-10-07, 16:39

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

Search Engine Optimization by vBSEO