随笔分类 -  ActionScript

ActionScript
摘要:[代码] 阅读全文
posted @ 2011-01-06 20:05 HelloCG 阅读(247) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-12 23:39 HelloCG 阅读(338) 评论(0) 推荐(0)
摘要:算法实现: ActionScirpt3.0实现: 1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public cla... 阅读全文
posted @ 2009-01-10 23:05 HelloCG 阅读(355) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-07 21:42 HelloCG 阅读(234) 评论(0) 推荐(0)
摘要:坐标算法:如图 算法实现: Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sp... 阅读全文
posted @ 2009-01-06 17:04 HelloCG 阅读(249) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-05 17:21 HelloCG 阅读(212) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-05 14:07 HelloCG 阅读(428) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-05 10:51 HelloCG 阅读(319) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-05 09:14 HelloCG 阅读(138) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-04 22:53 HelloCG 阅读(271) 评论(0) 推荐(0)
摘要:1.简单的缓动 A: sprite.vx=(targetX-sprite.x)*easing; sprite.vy=(targetY-sprite.y)*easing; sprite.x+=sprite.vx; sprite.y+=sprite.vy; B: var dx:Number=targetX-sprite.x; var dy:Number=targetY-sprite.y; sprite... 阅读全文
posted @ 2009-01-03 21:57 HelloCG 阅读(313) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2009-01-03 21:33 HelloCG 阅读(204) 评论(0) 推荐(0)
摘要:所谓目标偏移就是真正的弹簧在正常状态下的长度是不为0的,即弹簧在正常状态下总是有一定长度的。 1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sp... 阅读全文
posted @ 2009-01-01 22:39 HelloCG 阅读(194) 评论(0) 推荐(0)
摘要:1.构建小球精灵(弹性小球) Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Spri... 阅读全文
posted @ 2009-01-01 22:13 HelloCG 阅读(130) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-31 16:44 HelloCG 阅读(216) 评论(0) 推荐(0)
摘要:1.创建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-31 15:47 HelloCG 阅读(211) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-31 11:50 HelloCG 阅读(275) 评论(0) 推荐(0)
摘要:Flash CS3的内部计算的最小的单位是twip。 1twip=1像素的1/20。 可以用简单的trace来获得 Test.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var sprite:Sprite=new sprite(); addC... 阅读全文
posted @ 2008-12-31 11:32 HelloCG 阅读(215) 评论(0) 推荐(0)
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-31 11:16 HelloCG 阅读(434) 评论(0) 推荐(0)
摘要:1. 构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-30 22:44 HelloCG 阅读(189) 评论(0) 推荐(0)