Board logo

標題: [軟件] 急問:actionscript問題 [打印本頁]

作者: shirleyee    時間: 2012-4-15 00:10     標題: 急問:actionscript問題

咁小人整個program有幾粒movie clips,click果幾粒movie clips就會有唔同function,係click左movie clip先再select物件行果個function,好似photoshop咁

以下就寫左段野俾幾粒movie clips:
引用:
function change_F(e:MouseEvent) {
        if (e.target.name == "buttonCut") {
                trace("buttonCut selected");
                button_F = "buttonCut_F";
        }
        if (e.target.name == "buttonResize") {
                trace("buttonResize selected");
                button_F = "buttonResize_F";
        }
        if (e.target.name == "buttonCopy") {
                trace("buttonCopy selected");
                button_F = "buttonCopy_F";
        }
}
但係唔知點解只行到頭兩個,resize下面果D都唔work 試過將if轉做switch都係行唔到,究竟乜料子
作者: jackli    時間: 2012-4-15 00:14

COPY buttonCut OR buttonResize
PASTE CLIP NAME AS buttonCopy

DONT TRY DEBUG
作者: shirleyee    時間: 2012-4-15 00:22

得左~thanks!!!!

原來D野去晒個咩FlashAICB assets度




歡迎光臨 HKSpot (https://bbs.hk-spot.com/) Powered by Discuz! 6.0 Lite