whatever your application is game or not,your must need to distinguish between click_event and double_click_event .As you kown flex have the double click enable .but that not enough .
There is a usecase : some data in a datagrid .and now, user click the item in the grid show the itemdetail in another page .You can easy to build the application , but now the user what to do when user click (Single) is still show the detial page,but double click can edit the item. You must be think you can do it easy. like this:
doubleclikcenable = true doubleclik=editItem() click=showDetailItem()
did you realy think it can be right?
No nonsense , I want to sleep now. show the code.
doubleclick = doClick( event ) click = doClick(event)
var isDoubleclick:String;
function doClick( event:MouseEvent):void{
isDoubleclick = event.type;
setTimeout( clickHandler , 300 );
}
function clickhandler():void{
if( isDoubleclick == "click"){
// Do the click function
}
if(isDoubleclick == "DoubleClick" ){
// Do the double Click
}
}
It's for you double Click ... good night
分享到:
相关推荐
新目标初一英语下册 unit I want to be an actorPPT课件.pptx
PHP should know that there are some limitations of PHP, such as I recently want to translate an easy language into PHP code, because it is downloaded from the Internet source, open a look, it is all ...
这篇六年级上册英语教案的主题是"Module 9 Unit 1 Do you want to visit the UN building",主要涉及的是小学英语(三年级起点)外研版六年级上册的内容。本单元的核心目标是让学生掌握使用动词"want"来表达意愿,并...
Flex removes the complexity barrier from RIA development by offering sophisticated tools and a straightforward programming language so you can focus on what you want to do instead of how to do it....
I WANT TO SAY THIS IS DIFICULTY
这篇文档是针对外研社小学英语六年级下册第一模块第一单元"I want a hot dog, please"的内容设计的一套综合练习题,旨在帮助学生巩固与快餐相关的基本词汇和日常交流用语。 一、翻译单词和短语: 1. 汉堡 - ...
在描述中,“i want to download something thats why im using this”表明用户希望通过下载这个RAR文件来获取某些东西,这通常意味着该压缩包可能包含软件、文档、媒体文件或其他在线资源。 在IT领域,RAR是一种...
【描述】"i just want to dowload some code" 暗示了这个压缩包是为了下载和学习代码,可能是为了个人研究、项目开发或教学目的。用户可能对"IWant!IWant counting"的实现特别感兴趣,希望通过阅读和分析代码来提升...
这篇文档是针对八年级英语学习的一份练习题,主要涵盖了词汇、语法和句型的应用,旨在帮助学生巩固Unit5 "Do you want to watch a game show?" 的相关知识。以下是题目中涉及的一些关键知识点: 1. **词汇应用**: ...
this is try i want to know more
这篇课件是针对小学六年级下册英语课程的,主题为《Lesson 13 I want to be a farmer in the future》,出自陕旅版教材。这个课程主要探讨的是孩子们对未来职业的梦想,通过各种角色设定,帮助学生用英语表达自己的...
Above all, make your unique scenes, in applying positioning, rotations and making random scale wherever you want Easy Scatter works on land & meshes according to their collider, and incorporates ...
本文主要涉及的是七年级英语上册Unit 9 "Do you want to go to a movie" 的学习内容,包括短语、句型、口语表达以及语法要点。以下是详细的知识点解析: **短语** 1. **go to a movie** - 去看电影,表示进行观影...
八年级Unit5 Do you want to watch a game show练习题及答案12.doc
描述中提到的“HELLO I WANT TO SHARE MY HTML FOR MAKE A WEBSITE”表明作者想要分享关于创建网站的HTML代码。HTML(HyperText Markup Language)是网页设计的基础,用于定义网页的结构和内容。创建网站通常涉及到...
在小学六年级英语下册的课程《Lesson 13 I want to be a farmer in the future》中,学生们将探讨关于未来职业的梦想。本课件旨在帮助孩子们了解不同职业的特点,并鼓励他们思考自己的理想职业。"smiledreams + jobs...
此外,动词短语如begin to do、start to do、like to do、prefer to do、love to do、hate to do、forget to do、remember to do、stop to do、go on to do、try to do等,都用来表示动作的开始、继续或中断。...
I do not want you, the reader, to get caught up in just following recipe-like instructions that do little more than test your ability to read and follow instructions. While I have a case study ...
这篇PPT的内容主要围绕小学六年级上册的新标准英语教材,模块9 Unit1 "Do you want to visit the UN building?" 展开。该教学单元旨在教授学生们如何介绍值得参观或旅游的地方,同时涵盖了一些基本的语法、词汇和...
这篇课件是针对小学六年级下册外研版英语教材Module 1 Unit 2 "What do you want to eat"的内容,旨在帮助学生学习如何在英语环境中进行简单的餐饮点餐对话。这一单元的核心教学目标是让学生掌握用英语点餐和询问...