物理量定性分析能力:逐渐出现的马赛克遮照 转 - Flash互助课堂 - 中国教程网论坛 互助学习交流平台
来源:百度文库 编辑:中财网 时间:2024/10/05 22:48:26
首先在场景中导入一个图片 把它转换为影片剪辑
把影片剪辑放在主场景第一针
在该影片剪辑上写下如下AS
onClipEvent (load)//当影片剪辑出现在时间轴上时,执行大括号里的语句 {
numY = 56;
numY = 70;//定义图象显示的尺寸
numPerFrame = 60//定义针速
currSquare = 0;
choices = new Array();
for (i=0; ichoices.push(i);//定义一个新的数组 并不断增加数组长度
}
_root.createEmptyMovieClip("mask", 0);//
this.setMask(_root.mask);//创建一个影片剪辑 作为遮照
function drawSquare(x, y) {
with (_root.mask) {
moveTo(x, y);
beginFill(0x000088);
lineTo(x+10, y);
lineTo(x+10, y+10);
lineTo(x, y+10);
endFill();//画出这个遮照, 形状为10*10象素的方块
}
}
}
onClipEvent (enterFrame)//影片剪辑针频不断触发此动作 {
if (currSquarefor (i=0; ij = random(choices.length);
t = choices[j];
choices[j] = choices[choices.length-1];随机选择方快出现的时间
choices.pop();//开始删除数组choices中的元素
x = t%numX;
y = Math.floor(t/numX);//返回参数中表达式的下限值
drawSquare(x*10, y*10);
}
currSquare += numPerFrame;
this._alpha = currSquare/(numX*numY)*100;//设置透明度
}
}好了现在可以导出看效果了
把影片剪辑放在主场景第一针
在该影片剪辑上写下如下AS
onClipEvent (load)//当影片剪辑出现在时间轴上时,执行大括号里的语句 {
numY = 56;
numY = 70;//定义图象显示的尺寸
numPerFrame = 60//定义针速
currSquare = 0;
choices = new Array();
for (i=0; i
}
_root.createEmptyMovieClip("mask", 0);//
this.setMask(_root.mask);//创建一个影片剪辑 作为遮照
function drawSquare(x, y) {
with (_root.mask) {
moveTo(x, y);
beginFill(0x000088);
lineTo(x+10, y);
lineTo(x+10, y+10);
lineTo(x, y+10);
endFill();//画出这个遮照, 形状为10*10象素的方块
}
}
}
onClipEvent (enterFrame)//影片剪辑针频不断触发此动作 {
if (currSquare
t = choices[j];
choices[j] = choices[choices.length-1];随机选择方快出现的时间
choices.pop();//开始删除数组choices中的元素
x = t%numX;
y = Math.floor(t/numX);//返回参数中表达式的下限值
drawSquare(x*10, y*10);
}
currSquare += numPerFrame;
this._alpha = currSquare/(numX*numY)*100;//设置透明度
}
}好了现在可以导出看效果了
出现马赛克
我的显示器总是无故出现马赛克
视频聊天的时候出现马赛克
显示器为何出现彩色的马赛克?
flash遮照的确切含义是什么啊?
碟子出现马赛克
电影出现 马赛克
声音出现马赛克
画面出现马赛克?
怎样防范阴茎上逐渐出现的黑痣
如何为图片加上逐渐出现的文字
请问如何解决屏幕广播出现马赛克的问题
用优盘转存的视频文件为何会出现马赛克
刻VCD后总间隔出现少量的马赛克?
电脑出现马赛克怎么解决?
在线点播为什么会出现马赛克
播放视频时出现马赛克
电脑桌面出现马赛克,怎办
VCD刻录后出现马赛克
传统底片相机照出来的照片是不是可以无限放大都不会失真,也不会有马赛克情况呢
flash 里播入wmv的视频文件,倒出后有马赛克怎么解决?
逐渐的反义词
SOS!!在flash如何处理马赛克??
求解马赛克的软件!~!~!~!!~!