打印

[軟件] 急問:actionscript問題

急問: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都係行唔到,究竟乜料子

TOP

得左~thanks!!!!

原來D野去晒個咩FlashAICB assets度

TOP