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

Flash动画制作
我是大导演 MTV创作速成教程
二合一按钮的制作
[DIY]这种相册你有吗?
教你一招绝的!把Flash动画转换成VCD视频
使用Flash MX的3个小技巧
Flash课件一网打尽
Flash Player 7 安全策略解析
FlashMX特效之扩散与挤压
Flash MX 2004 体验之旅
Flash使用技巧--用Flash制作拖拉式菜单
Flash使用技巧--用Flash制作转动的地球仪
Flash使用技巧--用Flash 5制作Winamp光谱柱的效果
Flash使用技巧--用Flash制作落地有声的瓶子
Flash使用技巧--用Flash 5巧做“弹出”效果菜单
Flash使用技巧--用Flash制作即指即现的广告条
用大师级软件MixFX轻松打造专业FLASH
用Flash MX快速制作沟通留言程序
用Flash制作动感效果的网页链接提示框
巧妙运用Flash MX 2004制作“拖曳配对题”
用Flash MX制作精彩的粉荷清波动画特效一例

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


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