没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐

//关于影片 only 的残影效果//
for (i=0; i<15; i++) {
newmc = ('only'+ i);
duplicateMovieClip ("only", newmc, i);
setProperty (newmc, _alpha, 15-i/2);
setProperty (newmc, _rotation, 0-i/2);
setProperty (newmc, _x, 100+i*4);
setProperty (newmc, _y, 100+i*10);
setProperty (newmc, _xscale, 100+i*4);
setProperty (newmc, _yscale, 100+i*10);
}
//关于影片随机复制//
for (i=0; i<15; i++) {
newmc = ('only'+ i);
duplicateMovieClip ("only", newmc, i);
setProperty (newmc, _alpha, random(100));
setProperty (newmc, _rotation, random(20)*);

setProperty (newmc, _x, random(45));
setProperty (newmc, _y, random(55));
setProperty (newmc, _xscale, random(44));
setProperty (newmc, _yscale, random(88));
}
//关于影片属性//
onClipEvent (enterFrame) {
//影片随鼠标移动//
this._x = _root._xmouse-80;
this._y = _root._ymouse-120;
}
//关于鼠标拖动影片//
on (press) {
startDrag(this);

}
on (release) {
stopDrag();
}
MouseEvent.CLICK
MouseEvent. DOUBLE_CLICK
MouseEvent.MOUSE_OVER
MouseEvent.MOUSE_OUT
MouseEvent. MOUSE_DOWN
MouseEvent. MOUSE_UP
MouseEvent. MOUSE_MOVE
MouseEvent. MOUSE_WHELL

KeyboardEvent.KEY_DOWN
KeyboardEvent.KEY_UP
stage.addEventListener(KeyboardEvent.KEY_DOWN,work);
if(myEve.keyCode==89){
root.mc1.gotoAnd
flash AS3 的全屏代码:this.stage.displayState=StageDisplayState.FULL_SCREEN;
退出代码:
tc_btn.addEventListener(MouseEvent.CLICK, tuichu);
//给 overbtn 这个按钮添加鼠标点击执行 tuichu 函数的侦听
function tuichu(event:MouseEvent):void {
GGGGGG fscommand("quit");
GGGGGG //鼠标点击执行 tuichu 时 swf 退出
}
时间轴上停止代码:this.stop()
按钮代码:
红色代码为自定义函数,同一按钮中相同,不同按钮必须不同以区别开来。

播放和停止
bf_btn.addEventListener(MouseEvent.CLICK,work1);
function work1(event:MouseEvent){
GG this.play()
}
tz_btn.addEventListener(MouseEvent.CLICK,work2);
function work2(event:MouseEvent){
GG this.stop()
}
跳转代码
shou_btn.addEventListener(MouseEvent.CLICK,work1);
function work1(event:MouseEvent){
gotoAndStop("首页");
}
tz_btn[按钮名].addEventListener[帧听](MouseEvent.CLICK[触发条件],work2[发
生事件名]);
function[定义事件] work2(event:MouseEvent){
gotoAndPlay(1);
}
剩余28页未读,继续阅读








许XX
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制

评论1