看板 Flash 關於我們 聯絡資訊
_alcohol._alpha=80 _alcohol.onRollOver=function(){ this._alpha=100 } _alcohol.onRollOut=_alcohol.onRelease=_alcohol.onReleaseOutside=function(){ this._alpha=80 } _alcohol.onPress=function(){ this._alpha=50 } ※ 引述《chacha226 (Ivy)》之銘言: : 我用的是 flash 8的版本, : 語法我用的是action script 2的版本 : 我想要讓"某罐藥品"(我的老師規定檔案屬性要設成"影片片段")的alpha值變化 ,當 : (1) 此藥品"沒有被點選"的時候, alpha值就給它80% : (2) "滑鼠移上去"此藥品時 , alpha值就給它100% : (3) "點選"此藥品時, alpha值就給它50% : 請問這段語法要怎麼寫呢? : 以下是我目前寫出的語法 ,要如何做修改呢? : _alcohol.onRelease = function() { : if (!contain("alcohol")) { : _alcohol._alpha = 50; : arr.push("alcohol"); : _global.tools.push("alcohol"); : _global.actualTools.push(_alcohol); : } : else { : _alcohol._alpha = 100; : trace("alcohol has been allocated"); : } : } : 請了解的人幫忙我解答 ,謝謝囉! -- 挖~~店員辭職啦~~~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.27.234