1.谁有flash展示酷炫一点的特特效源码
2.怎样加特效?
谁有flash展示酷炫一点的源码
import mx.utils.Delegate;
import flash.display.BitmapData;
var numOfItems:Number;
var radiusX:Number = ;
var radiusY:Number = ;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.;
var perspective:Number = ;
var home:MovieClip = this;
var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", );
tooltip._alpha = 0;
var tool_txt_ary:Array = new Array();
tool_txt_ary[0] = ".2寸笔记本";
tool_txt_ary[1] = ".6寸笔记本";
tool_txt_ary[2] = "金刚系列";
tool_txt_ary[3] = "靓酷系列";
tool_txt_ary[4] = "全能王系列";
tool_txt_ary[5] = "网吧电脑系列";
tool_txt_ary[6] = "雅典系列";
var numOfItems:Number = 7;
for (var i = 0; i<numOfItems; i++) {
var imageBmp:BitmapData = BitmapData.loadBitmap("icon"+i+".png");
var t = home.attachMovie("item", "item"+i, i+1);
t.angle = i*((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = _root.tool_txt_ary[i];
t.icon.inner.attachBitmap(imageBmp,1);
t.r.inner.attachBitmap(imageBmp,1);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
function over() {
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y-this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this, moveTip);
home.tooltip._alpha = ;
home.tooltip.tipText._visible = true;
}
function out() {
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
home.tooltip.tipText._visible = false;
}
var moved = true;
function released() {
moved = false;
speed = 0;
this.onEnterFrame = function() {
if (home._y>-) {
home._y -= 2;
home.bg_map._y+=2;
} else {
_root.attachMovie("messageBox","messageBox",this.getNextHighestDepth(),{ _x:0, _y:});
messageBox.click_btn.onPress = function() {
this._parent.black.onEnterFrame = function() {
if (home._y<0) {
home._y += 2;
home.bg_map._y-=2;
} else {
home._y = 0;
moved = true;
this._parent.removeMovieClip();
}
};
};
messageBox.messages.tipText.text="";
messageBox.menu1.screch_txt.text="";
messageBox.messages.tipText.text = this._parent.toolText;
messageBox.menu1.screch_txt.text = "金翔云-<"+this._parent.toolText+">";
delete this.onEnterFrame;
}
};
}
function moveTip() {
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y-this._parent._height/2;
}
function mover() {
this._x = Math.cos(this.angle)*radiusX+centerX;
this._y = Math.sin(this.angle)*radiusY+centerY;
var s = (this._y-perspective)/(centerY+radiusY-perspective);
this._xscale = this._yscale=s*;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale)+);
}
this.onMouseMove = function() {
if (moved) {
speed = (this._xmouse-centerX)/;
}
};
怎样加特效?
添加Flash和透明Flash的方法
一、插入不透明的效源flash代码
将红色部分替换为自己的Flash代码。绿色的素材代码"width"和"height"后跟的数字表示动画的宽度和高度。首页左侧宽度设置为通常合适,特特效最火的俄罗斯方块源码高度则根据需要调整。效源
二、素材as源码怎么打开插入透明Flash的特特效代码
代码如下。注意"wmode=\"transparent\""控制Flash是效源否透明显示。去掉即可显示为不透明。素材
三、特特效插入绝对坐标的效源透明Flash
代码如下。无论窗口拉多大,素材Flash都保持原位不动。特特效微视源码怎么开发
四、效源在上插入透明Flash
步骤:打开“显示源代码”。素材将以下代码插入之间。开多开孔源码说明:“top”指Flash与帖子顶部的距离,“left”指Flash与帖子左侧的距离。px表示Flash定位范围的电脑运算源码大全宽度和高度,后面的width= height=表示Flash的宽和高。
五、插入相对坐标的透明Flash
注意下面代码的table部分,使用表格作为容器,将Flash“装”入表格中,这样不管浏览器窗口拉多大,Flash与表格一同移动。表格可以设置背景,上面再放一个透明Flash以配合背景。代码如下。
2024-12-23 07:381045人浏览
2024-12-23 06:541691人浏览
2024-12-23 06:08367人浏览
2024-12-23 05:381982人浏览
2024-12-23 05:13314人浏览
2024-12-23 05:02998人浏览
本屆巴黎奧運由羽球黃金男雙李洋、王齊麟,還有「世界拳后」林郁婷,為我國搶下兩面金牌,三人國小童年時代的照片也一次曝光!而今12)天度過29歲生日的李洋,他爸爸獨家接受台視新聞訪問,還公開他的童年照,辨
1.笔趣阁小说怎么看2.最新版PTCMS4.3.0小说源码,PTCMS聚合小说+安装教程-青柠资源网3.小说阅读app源码_小说网站cms源码uniapp+手机+小程序三端)笔趣阁小说怎么看 笔趣
1.手机陀螺仪怎么打开2.Mahony姿态解算算法笔记一)3.PX4源码理解--src目录介绍4.hzboxtop120画质助手安卓APK如何下载5.纯干货!陀螺仪MPU6050模块输出姿态角(有完整