as3开发微软kinect上的应用
贴几个技术资源站
http://www.as3kinect.org/
http://openkinect.org/wiki/Action_Script_3
http://kimulabo.jp/
几个有用的数学公式 for ActionScript 3
1.Distance Between Two Points 两点间的距离
dx = x2 – x1; dy = y2 – y1; dist = Math.sqrt(dx*dx + dy*dy);
2. Inching Formulas 缓动公式
sprite.x += (targetX - sprite.x) * easing;//easing: inching coefficient sprite.y += (targetY - sprite.y) * easing;
3. Elastic Formulas 弹性公式
vx += (targetX - sprite.x) * spring; //spring: elastic coefficient vy += (targetY - sprite.y) * spring; sprite.x += (vx *= friction); //friction: friction force sprite.y += (vy *= friction);
4. Flexible Partial Shifts Formulas 柔性物体变换公式
var dx:Number = sprite.x - fixedX; var dy:Number = sprite.y - fixedY; var angle:Number = Math.atan2(dy, dx); var targetX:Number = fixedX + Math.cos(angle) * springLength; var targetY:Number = fixedX + Math.sin(angle) * springLength;
5. Rotation With Mouse Formulas 跟随鼠标转动
dx = mouseX - sprite.x; dy = mouseY - sprite.y; sprite.rotation = Math.atan2(dy, dx) * 180 / Math.PI;
6. Waveform Formulas 波形公式
public function onEnterFrame1(event:Event):void { ball.y=centerScale+Math.sin(angle)*range; angle+=speed; }
7. Heartthrob Formulas 心跳公式
public function onEnterFrame1(event:Event):void { ball.scaleX=centerScale+Math.sin(angle)*range; ball.scaleY=centerScale+Math.sin(angle)*range; angle+=speed; }
8. Circle Rotation Formulas 公转公式
public function onEnterFrame(event:Event):void { ball.x=centerX+Math.cos(angle)*radius; ball.y=centerY+Math.sin(angle)*radius; angle+=speed; }
9. Get Circle Area 获取圆周区域
public function getArea():Number { // The formula is Pi times the radius squared. return Math.PI * Math.pow((width / 2), 2); }
10. Get Circumference Ratio 获取圆周长度
public function getCircumference():Number { // The formula is Pi times the diameter. return Math.PI * width; }
11. Elliptic Rotation Formulas 椭圆公转
public function onEnterFrame(event:Event):void { ball.x=centerX+Math.cos(angle)*radiusX; ball.y=centerY+Math.sin(angle)*radiusY; angle+=speed; }
12. Color operations 颜色操作,获取alpha值
var t:uint=0×77ff8877; var s:uint=0xff000000; var h:uint=t&s; var m:uint=h>>24; trace(m);
13. Hex to Decimal 16进制转10进制
trace(hexValue);
14. Decimal to Hex 10进制转16进制
decimalValue.toString(16);
15. Pick Up Color 颜色拾取
red = color24 >> 16; green = color24 >> 8 & 0xFF; blue = color24 & 0xFF; alpha = color32 >> 24; red = color32 >> 16 & 0xFF; green = color32 >> 8 & 0xFF; blue = color232 & 0xFF;
16. Color Bit Arithmetic 颜色位运算
color24 = red << 16 | green << 8 | blue; color32 = alpha << 24 | red << 16 | green << 8 | blue;
[zz]教程:深入理解Flash的沙箱 – Security Domains
- Introduction 简介
- Sandboxing 沙箱
- Security Domains 安全域
- Trust 信任授权
- Non-executable Trust 不可执行文件的信任机制
- Non-executable Content Without Trust 非受信的不可执行文件
- SWF Communication Without Trust 在非受信的SWF之间通讯
- Merging Security Domains 合并安全域
- Stage Owner and Access 场景的拥有者和获取权限
- Local Security Domains 本地安全域
- Application Domains(应用程序域)
- Application Domain Placement(应用程序域的位置)
- Application Domain Inheritance(应用程序域的继承)
- Child Domains: Definition Versioning(子域:定义的版本管理)
- Separate Domains: Preventing Conflicts(域分离:避免冲突)
- Same Domain: Runtime Shared Libraries(相同的域:运行时共享库)
- Getting Definitions Dynamically(动态获取定义)
- Same-definition Collisions(相同定义的冲突)
- Conclusion(总结)
jash.de的flash3d酷站
从fwa收录的hidden heros网站发现作者的个站,创作了几个非常棒的falsh3d网站。个站中的链接都采用水波效果,比较有特色。
ikea,视频动画+3d吊牌
DB eco,非同一般的3Dgallery
hidden heros,发明纽扣铅笔等等的发明家博物馆,away3d制作
llr-hamburg
2gh.de 曲线罗列的3d gallery 和非常漂亮流程的转场效果
页面
腾讯微博
文章标签
营销 倒计时 avatar 三维数字 homestyler 北大关机门 翻墙 Matrix 收录 正则表达式 apple 图片检索 Adobe WP 31号 成人玩具 代理 roxik shoe obj flower puzzle 源码 google java3d 平面设计 人脸识别 Google Map Flash3D 全景 优化 Away3D Alternativa3D Flash网站 Tips最新评论
- Hsinglin 在 发几个今天在校园里拍的全景图 上的评论
- Rming 在 实验室360全景图 上的评论
- 哪种减肥药效果好 在 发几个今天在校园里拍的全景图 上的评论
- jianhualee 在 新作品flash网站-至尊数码-3D图墙 上的评论
- panda 在 away3d中的obj 上的评论


















