ÕÒ²»µ½ÉÏ´«SWFµÄ¿Õ¼äÁË£¬ÉÁ¿ÍµÛ¹úÉϲŴ«ÉÏÈ¥¼¸Ìì¾Í±»É¾³ýÁË£¬ÕæÊÇÓôÃÆ£¡
½ñÌìÑо¿³öÁË°é×àÓëÔ³ªÏàÇл»µÄ´úÂ룬¼°Êó±ê¾¹ýʱµÄÌáʾ£¬µ«ÕâÖÖ·½·¨Í¬²½ÉÏ»á³öÎÊÌ⣺
ÒÔÏÂÊǵÚÒ»èå
stop();//Í£ÔÚµÚÒ»èå
var yc:Sound = new Sound();//Ô³ª
var bz:Sound = new Sound();//°é×à
yc.attachSound("yc");
bz.attachSound("bz");
bzbtn.onRelease = function() {//°´Ï°é×à°´Å¥
play();²¥·Å¶¯»
ycbtn.enabled = false;//½ûÓÃÔ³ª°´Å¥
ycbtn._alpha = 20;//Ô³ª°´Å¥»ÒÏÔ
bz.start();//°é×ಥ·Å
};
ycbtn.onRelease = function() {//°´ÏÂÔ³ª°´Å¥
play();//ÒÔÏÂͬÉÏÒ»¶Î
bzbtn.enabled = false;
bzbtn._alpha = 20;
yc.start();
};
ÒÔÏÂÊÇbzbtnµÄ´úÂ룺//°é×à
on (rollOver) {//Êó±ê¾¹ýʱ´¥·¢Ê¼þ
tellTarget ("/1") {//ÔËÐÐӰƬ1
gotoAndStop(2);//Ìáʾ°´Å¥¹¦ÄÜ
}
startDrag("1", true);//ÌáʾÎÄ×ÖÍ϶¯
}
on (release, rollOut) {
tellTarget ("/1") {
gotoAndStop(1);
}
}
ÒÔÏÂÊÇycbtnµÄ´úÂ룺
on (rollOver) {
tellTarget ("/1") {
gotoAndStop(3);
}
startDrag("1", true);
}
on (release, rollOut) {
tellTarget ("/1") {
gotoAndStop(1);
}
}