论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

触角

文章类别:Flash | 发表日期:2008-9-21 19:20:46

  

点击浏览该文件
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=480 height=360>http://www.flash8.net/bbs/UploadFile/2004-7/20047261252493.swf

function drawCurve() {
with (room) {
clear();
var i = 0;
while ((++i)<=c) {
var mc = room["mc"+i];
var cx = (mc._x+mc.px)/2;
var cy=(mc._y+mc.py)/2;
var ccx = (mc._x-mc.px)/2;
lineStyle(3, "0xFFCC00", 100);
moveTo(mc._x, mc._y);
curveTo(cx+ccx, cy, cx, cy);
curveTo(cx-ccx, cy, mc.px, mc.py);
}
}
}
////////////////////////////////////////////
_level0.createEmptyMovieClip("room", 10);
c=10;
var i = 0;
while ((++i)<=c) {
var ball = room.attachMovie("mc", "mc"+i, i);
if (room["mc"+(i-1)]._x == undefined) {
prev = 0;
} else {
prev = room["mc"+(i-1)]._x;
}
ball._rotation=random(360);
ball._xscale=ball._yscale=70+random(30);
ball.sx=ball._x = prev+500/c/2+random(500/c/2);
ball.sy=ball._y = random(100)+100;
ball.px = ball._x+50-random(100);
ball.py = 400;
ball.tx = ball._x+100-random(200);
ball.ty = ball._y+100-random(200);
ball.onEnterFrame = function() {
this._x += (this.tx-this._x)*.1;
this._y += (this.ty-this._y)*.1;
if (int(this.tx-this._x) == 0 && int(this.ty-this._y) == 0) {
this.tx = this.sx+100-random(200);
this.ty = this.sy+100-random(200);
}
};
}
setInterval(drawCurve, 20);

点击浏览该文件

视频教程列表
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058