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

Flash动画制作
Flash的事件机制:从AsBroadcaster到EventDispatcher
Flash脚本的执行顺序
完全掌握AS中点(.)语法的应用
抗日Flash集之:万里长城永不倒
抗日Flash集之:地道战
抗日Flash集之:抗日新闻
抗日Flash集之:三一八惨案
抗日Flash集之:五四运动
抗日Flash集之:抗日一隅
抗日Flash集之:血染的风采
抗日Flash集之:淞沪抗战
抗日Flash集之:终日到底
抗日Flash集之:东京功略战[游戏]
抗日Flash集之:大中华·1937
抗日Flash集之:长征
抗日Flash集之:抗日宣言
抗日Flash集之:血战钓鱼岛
用Flash MX制作MOV短片
用flash打开本地文件夹
Flash打造迷你特色音乐播放器

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-04   浏览: 86 ::
收藏到网摘: 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";
}