- 浏览: 578367 次
- 性别:
- 来自: 广州
文章分类
最新评论
-
wzh051527:
我是大四实习生一个,自我感觉技术能力在第三年。。唯一不明白,为 ...
十年技术,不要再迷茫 -
room_bb:
.hrl文件怎么加入到编译规则里面?比如:pp.hrl文件-d ...
Erlang中用的makefile的一点解释 -
吉米家:
感觉帆软报表的flash打印就很不错哇,特别好用
JSP 实现报表打印 -
雪碧爱芬达:
苦逼程序员的辛酸反省与总结 -
mlyjxx:
...
十年技术,不要再迷茫
Creating drag and drop functionality in Flash CS3 is quite different than in older versions if you’re using the new ActionScript 3.0. While still relatively straightforward, the code can be a little more intimidating to users who are less familiar with ActionScript programming. If you’re like me, you’re here to try to keep your knowledge up-to-date, so let’s learn how to create a simple ActionScript 3.0 drag and drop game step-by-step. Download the FLAand follow along with these steps. Description The dd_tile_list class extends the as3 TileList component to add drag and drop functionality. Dropping between components is supported. This class aims to be CellRenderer and Style agnostic. The swapDepth is not available on AS3, rather much more simplest way is available. The below commented code can be achieved through the single line:event.target.parent.addChild(event.target); I used to teach drag-n-drop funtionality using startDrag() and stopDrag() MovieClip methods. This is the easiest and fastest way but it tends to be choppy when the framerate is low. To solve this problem, you should employMOUSE_MOVE event as shown in this tutorial by Flash and Math. Their tutorial is great and I’ll use their concept in this article. But I don’t want the draggable object to snap to its center when dragging. I’ll put in a lockcenter option and a swapDepths() alternative. Notes: The drag-and-drop interface is particularly valuable for educational purposes. Since much of the standard documentation on Flash CS 3 and Actionscript 3 is focused (at least initially) on animation and multimedia applications, we felt it would be useful to provide some tutorial pages on using the drag and drop interface written for those who have only a rudimentary understanding of Adobe Flash. If you have never written a line of code in Flash before, we recommend you start with one of the earlier Basic tutorials on this site such as Simple Line Segment: Creating Sprites and Shapes from Mouse Clicks. This example belongs to the AS3 Tutorials Novice and is part of our Actionscript 3 tutorial series. You will learn how to implement simple drag and drop applications. Dragging and dropping objects is a popular brick in edutainment programs. This is part of Flash CS3 tutorials. It is probably not suitable for Flash designers without any programming experience. This tutorial is all about dragging an object around the stage. You will learn different ways to implement dragging. I’ll also show you how to add some animation with the dragging. So start your Flash IDE and let’s get going! In ActionScript 3.0, buttons and interactive movieclip stuff is scripted differently. To understand in depth about how ActionScript 3.0 works for interactivity see the diagram beside. Diagram besides show, a pin with a tag attached to it. In Action Script 3.0, all events such as mouse clicks, mouse move, mouse over, keyboard inputs, even movieclip’s frame movement is controlled using event listeners. You can attached this event listeners to any movieClip, components, stage or sprites to add interactivity features to it. Just like how the pin works…just attach the pin to the object. Each event listeners has a trigger function. Trigger function is a script which triggers because of the specific event for example, a mouse click. This means if you attached an event listener for mouse click on a button, the trigger function itself will be the script for the button. This is how you make button scripts in Action Script 3.0. Similar to our old on(Press) function.1.Drag and Drop in ActionScript 3.0
2.as3-drag-and-drop-tilelist
3.swapDepth in AS3 for drag n drop
4.Drag n’ Drop in AS3
5.Drag-and-Drop in Flash CS3
6.AS3 example Drag and Drop
7.Flash drag and drop tutorial
8.Actionscript 3 Dragging Methods
9.ActionScript 3.0 : Buttons and Drag & Drop
发表评论
-
as3 Loader 加载资源后内存泄露无法释放的问题。
2014-06-21 10:30 642as3 Loader 加载资源后内存泄露无法释放的问题。 ... -
as3判断flash player版本的函数
2014-06-10 20:35 800//判断当前版本是否高于9.0.115.0为例子. pr ... -
CSS 中文字体的英文名称 (simhei, simsun) 宋体 微软雅黑
2014-04-03 15:25 968华文细黑:STHeiti Light [STXihei]华文 ... -
as3.0的垃圾回收机制
2013-09-07 14:02 1466还是同样的博客,还是同样的作者(Daniel Sidhio ... -
AIR程序多开
2013-09-07 13:55 969AIR应用通常不能像QQ那样能进行多开操作。为了让一个用AI ... -
starling性能优化总结
2013-07-22 14:06 1441在项目开发的过程中总结了一下starling的性能优化方案: ... -
AS3 Socket从零开始
2013-07-22 12:54 1073大家如果想学AS3 Socket直接在百度里搜一下,会找到很 ... -
绕开AS3安全沙箱 跨域加载SWF
2013-07-11 12:53 869AS3的安全沙箱的确是 ... -
解决AS3在ie中初始化时stageWidth和stageHeight为0
2013-06-14 09:23 976先看下面的一段脚本,这是比较经典的初始化脚本: pac ... -
动态获取swc中的类
2013-05-25 10:32 911想通过代码生成,来获取swc中的类,并且可以作为普通类正常使 ... -
AS3 中字符串的format功能实现
2013-05-25 10:19 807使用C#的朋友都知道,string.Format();还是挺 ... -
总结调用Flash的几种方法
2013-05-02 16:18 1625一、Adobe 提供的方法 <object wi ... -
Flash3D错误集锦
2013-05-02 14:03 898VerifyError: Error #1014: 无法找到 ... -
使用scale拉伸之后的坐标问题
2013-04-12 09:38 1242最近发现论坛多了很多 ... -
30个实用的网页设计工具
2013-03-20 09:58 780作为一位网页设计师或开发者,你一直需要搜寻获取强大的网页设计 ... -
如何成为强大的程序员?
2013-03-11 11:27 699Aaron Stannard是新创公 ... -
漫谈重构
2013-03-11 11:09 823因为工作内容的原因, ... -
AS3使用谷歌API生成二维码
2012-12-10 16:24 1319二维码在新闻杂志,网站,网络广告,电视广告等地方随处可见 ... -
OOP的聚合原则
2012-12-10 16:21 900什么是聚合? 聚合可以很好地表达对象是什么和做 ... -
压缩速率追踪
2012-11-02 14:16 1427Flash Player 11.3添加了一个压缩和解压B ...
相关推荐
Android GridView拖拽实例源码.zip源码资源下载Android GridView拖拽实例源码.zip源码资源下载
java源码包实例源码JAVA开发源码50个合集: Ajax框架 ZK.rar Java图书馆管理系统源程序.rar Java图片倒影效果实例源码.rar Java图片翻折,将图像压扁.rar Java坦克大战网络对战版源代码.rar Java声音播放程序源代码....
易语言源码易语言拖拽式MP3源码.rar 易语言源码易语言拖拽式MP3源码.rar 易语言源码易语言拖拽式MP3源码.rar 易语言源码易语言拖拽式MP3源码.rar 易语言源码易语言拖拽式MP3源码.rar 易语言源码易语言拖拽式MP3...
Android GridView拖拽实例源码.zip项目安卓应用源码下载Android GridView拖拽实例源码.zip项目安卓应用源码下载 1.适合学生毕业设计研究参考 2.适合个人学习研究参考 3.适合公司开发项目技术参考
代码为博客实例代码:http://blog.csdn.net/lmj623565791/article/details/31513065 有问题博客中留言
安卓Android源码——GridView拖拽实例源码.zip
Android GridView拖拽实例源码.rar
Axure9 教程:拖动滑块确定评分区间效果.docx
AndroidGridView拖拽实例源码.zip
易语言源码文件拖拽易语言源码.rar 易语言源码文件拖拽易语言源码.rar 易语言源码文件拖拽易语言源码.rar 易语言源码文件拖拽易语言源码.rar 易语言源码文件拖拽易语言源码.rar 易语言源码文件拖拽易语言源码....
小程序源码 辅助类库 GridView拖拽实例源码.rar
易语言源码易语言拖动柱状图源码.rar 易语言源码易语言拖动柱状图源码.rar 易语言源码易语言拖动柱状图源码.rar 易语言源码易语言拖动柱状图源码.rar 易语言源码易语言拖动柱状图源码.rar 易语言源码易语言拖动...
GridView拖拽实例源码.zip
拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽式表单设计器(源码).zip拖拽...
支持拖拽上传的完整实例源码,
全书分为18章,分别讲解了UI布局实例集锦、控件实例集锦、自动化服务实例集锦、数据存储实例集锦、电话和短信实例集锦、图形图像实例集锦、和网络有关的实例集锦、多媒体实例集锦、Google地图实例集锦、GoogleAPI...
易语言无边框窗口拖动源码.rar 易语言无边框窗口拖动源码.rar 易语言无边框窗口拖动源码.rar 易语言无边框窗口拖动源码.rar 易语言无边框窗口拖动源码.rar 易语言无边框窗口拖动源码.rar
本程序是一个Android的GridView的一个拖拽的实例,希望能够给大家带来一些帮助。拖拽很流畅,就是没有解决拖拽和单击事件的一起响应了。