佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1846|回复: 9

[分享]哈比牛油耳

[复制链接]
发表于 31-12-2004 09:02 PM | 显示全部楼层 |阅读模式
Happy New Year
http://img63.exs.cx/my.php?loc=img63&image=myfirework22jm.swf

[ Last edited by hahabin on 18-1-2005 at 12:07 PM ]
回复

使用道具 举报


ADVERTISEMENT

发表于 1-1-2005 06:59 AM | 显示全部楼层
哈比牛油耳 ................
我笑到爆
呀,摟主哈比牛油耳........
你真力害flash 嘞
做得真棒,
回复

使用道具 举报

发表于 1-1-2005 10:10 AM | 显示全部楼层
tensaix2j 于 31-12-2004 09:02 PM  说 :
Happy New Year
http://img63.exs.cx/my.php?loc=img63&image=myfirework22jm.swf


给点建议~
我觉得当烟火爆开的时候时间在延长点比较好
因为这样可以看到烟火爆开后,火花坠落的效果
回复

使用道具 举报

发表于 2-1-2005 12:45 AM | 显示全部楼层
呵呵。新年过了祝大家事事如意!!
回复

使用道具 举报

发表于 6-1-2005 02:54 PM | 显示全部楼层
有趣, 但烟花太小了。不美。
回复

使用道具 举报

发表于 8-1-2005 09:02 PM | 显示全部楼层
哇!很好玩,好像机关枪一样。
回复

使用道具 举报

Follow Us
发表于 17-1-2005 05:57 PM | 显示全部楼层
Can share out the coding..if can...will appreciate...thanks

请多用英文发帖。如果电脑不能够打华语,请用网上中文输入法。请多多合作。

[ Last edited by hahabin on 18-1-2005 at 12:09 PM ]
回复

使用道具 举报

 楼主| 发表于 18-1-2005 09:54 PM | 显示全部楼层
Can share out the coding..if can...will appreciate...thanks


前年写的东西。。。


  1. sh._visible=0;
  2. fw._visible=0;

  3. var maxfw=50;
  4. var bgwidth=550;
  5. var bgheight=400;
  6. var shindex=1;
  7. tx=new Array();ty=new Array();
  8. rx=new Array();ry=new Array();
  9. dx=new Array();dy=new Array();
  10. _root.stage.onRelease=function(){

  11.         duplicateMovieClip(sh,"sh"+shindex,shindex);
  12.        
  13.         tx[shindex]=_root.stage._xmouse;
  14.         ty[shindex]=_root.stage._ymouse;       
  15.        
  16.         rx[shindex]=_root["sh"+shindex]._x-bgwidth/2;
  17.         ry[shindex]=_root["sh"+shindex]._y-bgheight/2;
  18.        
  19.         dx[shindex]=(tx[shindex]-rx[shindex])/20;
  20.         dy[shindex]=(ty[shindex]-ry[shindex])/20;
  21.        
  22.         _root["sh"+shindex]._rotation= -(Math.atan(dx[shindex]/dy[shindex])*180/Math.PI);
  23.        
  24.        
  25.         shindex++; if (shindex>maxfw) shindex=1;

  26.        
  27.        
  28.        
  29.        
  30. }


  31. setInterval(moveshooter,25);

  32. function moveshooter(){
  33.                
  34.                 for (i=1;i<=maxfw;i++){
  35.                
  36.                         rx[i]=_root["sh"+i]._x-bgwidth/2;
  37.                         ry[i]=_root["sh"+i]._y-bgheight/2;
  38.        
  39.                        
  40.                         if (    Math.pow(rx[i]-tx[i],2)  >50      )
  41.                
  42.                                 _root["sh"+i]._x+=dx[i];       
  43.                
  44.                
  45.                         if (    Math.pow(ry[i]-ty[i],2)  >50      )
  46.                
  47.                                 _root["sh"+i]._y+=dy[i];       
  48.                
  49.                
  50.                         else
  51.                         {
  52.                                 removeMovieClip(_root["sh"+i]);
  53.                                 createfirework(tx[i],ty[i],i)
  54.                         }
  55.                 }
  56.         }

  57.        
  58.         //setInterval(createfirework,150,0,0,1);
  59.        
  60.         function createfirework(x,y,fwindex) {
  61.   
  62.                    duplicateMovieClip(fw,"fw"+fwindex,fwindex);
  63.                    _root["fw"+fwindex]._x=x+bgwidth/2;
  64.                    _root["fw"+fwindex]._y=y+bgheight/2;
  65.                    _root["fw"+fwindex].gotoAndPlay(2);       
  66.    
  67.    
  68.    
  69.                
  70.         }

复制代码


还有那个firework mc 的最后一frame 要delete 掉自己。。'



  1. removeMovieClip(this);
复制代码

[ Last edited by tensaix2j on 18-1-2005 at 10:03 PM ]
回复

使用道具 举报


ADVERTISEMENT

发表于 28-1-2006 11:19 PM | 显示全部楼层
烟花flash很特别。谢楼主分享。我拿去了。
回复

使用道具 举报

发表于 29-1-2006 02:04 AM | 显示全部楼层
哈哈哈,

还是去年烟花比较多。。。

现在可以补回去了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 21-9-2024 10:03 PM , Processed in 0.152264 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表