当前位置: 首页 > 图文教程 > Flash动画 > Flash动画制作 > Flash AS3常用的关于MC的代码

Flash动画制作
使用SetMask脚本制作沿路径运动的遮罩实例
Flash MX 2004 ActionScript图文教程(一)
拖出你的精彩:Flash MX课件中的拖动
Flash实例教程:鱼戏莲叶间
Flash MX pro的历史面板(一)
Flash MX pro的历史面板(二)
Flash MX pro的历史面板(三)
Flash常见问题解答集锦(1)
Flash MX行为功能初体验:相册的制作
Flash MX04文字特效:残影动画(图)
Flash游戏制作常用代码解析(图)
在Flash中巧妙替换字体
用FlashMX制作拖动悬浮窗口
让Flash课件在VCD上播放
PowerPoint中插入Flash动画的方法
使用Flash mx制作旋转的时钟效果
用Flash制作动感火焰字
Flash Mx使用技巧十二则
用Flash MX制作新年贺卡
Flash那样动感十足制作PPT按钮跟我来

Flash动画制作 中的 Flash AS3常用的关于MC的代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-04   浏览: 49 ::
收藏到网摘: n/a

yi_mc.wb_txt.text="星期一";
er_mc.wb_txt.text="星期二";
san_mc.wb_txt.text="星期三";
si_mc.wb_txt.text="星期四";
var wb1="年龄:111111<br>名字:落落<br>学历:帝吧军"
var wb2="222222222"
var wb3="333333333"
var wb4="444444444"
var wb:String=wb1;
stage.addEventListener(Event.ENTER_FRAME,cfzx);
function cfzx(e) {
 if (nr_mc.currentFrame==5) {
  nr_mc.nr_txt.htmlText=wb;
 }
}

yi_mc.addEventListener(MouseEvent.CLICK,yi);
function yi(e) {
 wb = wb1;
 nr_mc.play()
// nr_mc.nr_txt.htmlText="年龄:111111<br>名字:落落<br>学历:帝吧军";
}
er_mc.addEventListener(MouseEvent.CLICK,er);
function er(e) {
 wb = wb2;
 nr_mc.play()
// nr_mc.nr_txt.htmlText="22222222222222";
}
san_mc.addEventListener(MouseEvent.CLICK,san);
function san(e) {
 wb = wb3;
 nr_mc.play()
// nr_mc.nr_txt.htmlText="3333333333";
}
si_mc.addEventListener(MouseEvent.CLICK,si);
function si(e) {
 wb = wb4;
 nr_mc.play()
// nr_mc.nr_txt.htmlText="4444444444";
}