Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

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 ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 13-12-07, 06:46
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
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 06:45..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 01-12-08, 03:18
Junior Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
rurounihanh is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Event.MOUSE_LEAVE Flep Tutorials 5 19-11-08 17:34
evento DOUBLE_CLICK di Flash CS3 Flep Articoli e tutorials 2 22-01-08 05:31
DOUBLE_CLICK e InteractiveObject nootropic.kint Actionscript 3.0 base 7 11-11-07 22:52
event lmarkus Flash Italiano 1 31-10-07 16:39
mouse event in as 3 nootropic.kint Actionscript 3.0 base 11 03-08-07 10:18


All times are GMT. The time now is 12:31.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap