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

Flash动画制作
Flash模拟老电影播放效果
快闪手册:双击如飞(1)
SWF文件结构大解剖(3)
Flash常用mc属性控制(1)
快闪手册:Alt键的妙用(4)
Flash影片的倒转播放控制(1)
用Flash实现移形换影效果(2)
Flash组件之旅(2):组件样式(1)
Flash组件之旅(3):使用第三方组件(3)
Flash变速滑动菜单剖析(1)
Flash MX 2004界面掠影(3)
Flash MX 2004界面掠影(5)
Flash MX 2004界面掠影(4)
快闪手册:Alt键的妙用(1)
Flash 实现的透视效果(2)
快闪手册:Shift键的妙用(1)
Flash雪景贺卡制作(3)
Flash实例:小桥流水(2)
用Flash实现移形换影效果(1)
用Flash MX组件制作测验题(2)

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


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