随笔分类 - ActionScript
ActionScript
摘要:1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ...
阅读全文
摘要:构建Ball精灵: Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ...
阅读全文
摘要:1.计算基本的三角函数 正弦=对边/斜边 Math.sin(弧度值):Number 余弦=邻边/斜边 Math.cos(弧度值):Number 正切=对边/邻边 Math.tan(弧度值):Number 余切=邻边/对边 1/Math.tan(弧度值):Number 2.转换弧度为度和转换度为弧度 radians = degrees * Math.PI / 180; degrees = radia...
阅读全文
摘要:1.构建小球 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ...
阅读全文
摘要:1.构建小球 Ball.as package { import flash.display.Sprite; public class Ball extends Sprite { public var radius:Number; public var color:uint; public function Ball ...
阅读全文
摘要:1.用ball构建单个粒子 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Spr...
阅读全文
摘要:1,构建精灵 Arrow.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Arrow extends Sprite ...
阅读全文

浙公网安备 33010602011771号