http://blog.sina.com.cn/masstudio[订阅]
个人资料
友情链接
访客
读取中...
分类
    内容读取中…
博文

sina的博客打开得实在太慢了,以致于很多作品都没有心情去整理发上来,以后换百度了

http://hi.baidu.com/omega1987

喜欢的朋友多多过来捧场阿

这套图标,作的蛮辛苦。。。

The world is blowing Chinese Wind,while Tang dynasty is a flag of Chinese history,becasue of its economic prosperity, comprehensive national strength and etc. Through this set of icons, you will see a corner of Tang dynasty,and feel the chinese culture.Hope you will like it.Thank you.

官方网址   http://www.guichamps.com/skin/87

像素图标(2008-10-22 09:36)

版权所有,请勿转载.谢谢合作.

M&R 10月份桌面(2008-10-19 19:16)

幽灵娃娃主题桌面~1024*768尺寸

 

文档类:

package {
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.geom.Point;
 public class orz extends Sprite {
  private var ball:Ball;
  private var line:Sprite;
  private var gravity:Number=.2;
  private var bounce:Number=-.6;
  public function orz() {
   init();
  }
  private function init():void {
   drawLine(10);
   drawBall(20);
   addEventListener(Event.ENTER_FRAME,onenterframe);
  }
  private function drawLine(angl

SimpleSlider这个类在官方网站找了半天。。。没找到,自己写了一个,记录一下。

package {
 import flash.display.Sprite;
 import flash.events.Event;
 import flash.events.MouseEvent;
 public class SimpleSlider extends Sprite {
  private var lowValue:Number;
  private var highValue:Number;
  public var value:Number=0;
  private var slider:Sprite;
  public function SimpleSlider(lowValue:Number=0,highValue:Number=0,value:Number=0):void {
   this.lowValue=lowValue;
   this.highValue=highValue;
   this.value=value;
   init();
  }
  private function init():void {
   graphics.lineStyle(1);
   graphics.beginFill(0xffffff);
   graphics.drawRect(-2,0,4,100);
   graphic

已知ball0质量m0,ball1质量m1,碰撞前ball0速v0,ball1速度v1,求碰撞后ball0速度v0'以及ball1速度v1'

 

解:由动量守恒得:m0*v0+m1*v1=m0*v0'+m1*v1'....................................1

    由动能守恒得:1/2*m0*v0*v0+1/2*m1*v1*v1=1/2*m0*v0'*v0'+1/2*m1*v1'*v1'......2

    由算式1得:m0*(v0-v0')=m1*(v1'-v0).........................................3

    由算式2得:m0*(v0*v0-v0'*v0')=m1*(v1'*v1'-v1*v1)

           即:m0*(v0+v0')*(v0-v0')=m1*(v1'+v1)*(v1'-v1).......................4

    把算式2和3联立得:v0+v0'=v1'+v1 => v1'=(v0-v1)+v0'.........................5

    把算式5代入算式1得:m0*v0+m1*v1=m0*v0'+m1*(v0+v0'-v1)

                    即:m0*v0+m1*v1=m0*v0'+m1*v0+m1*v0'-m1*v1

   &nb

    最近看到某位大师关于flash as3的文章,关于高级旋转坐标没有做推导,不是很复杂。。。不过开始把它想复杂了。。。把推导过程写下来了,纪念之