11.07.2015 Views

第16 章變裝秀..

第16 章變裝秀..

第16 章變裝秀..

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

占 蟬 弘 一 斗 斗 斗 斗 」 一 一 一 - 一 一 I11III18-1程 式 說 明 :H 閉 a 噓 噓 各 部 位 元 件 的 接 但 模 式bair_m 嘲 的 耐 吋 吋 鵬 .....“" 叫 …………………………………...............cloth 個 L.)Ilc.buttonMod, 但 趴 鵬 ….....… ..ipants_m, 已 but 個 ,nMode 甜 , 輯..............isho 間 ,_m 已 buttonMode= 甘 ue;@ 將 hair_mc ' clothes_mc 、 pants_mc 、 shoes_mc 元 件 實 體 的 屬 性 buttonMode 設為 true 即 可 讀 這 些 影 片 片 段 元 件 在 滑 鼠 滑 過 時 的 指 標 為 手 指 。IIIt 壘 金 鐘 各 部 位 元 件 加 入 饋 籠 , 接 下 時 會 , 未 所 屬 還 項 區 塊showHair); .................1'.....bair_m 叫 “EventListener(MouseEvent.CLICK,clothes_mc.addEventListener(Mou 輯 Event.CLICK, showClothes); ....…..ipants_mc.addEventListener(MouseEvent.CLICK, 曲 owPants); …..........~shoes_mc.addEventListener(Mou 揖 Event.CLICK , showShoes); .•@ 為 hair_mc 、 clothes_mc 、 pants_mc 、 shoes_mc 元 件 實 體 加 上 滑 竄 動 作 的偵 聽 : 當 在 實 體 元 件 按 下 時 分 別 會 執 行 showHair 、 showClothes 、 showPants 及showShoes 的 自 訂 函 式 。fun 側 。n showHair(Event:MouseEvent):void{ …...................................….....HairChange. visible= 增 ue;fun 耐 .on showClo 也 叫 Ev, 組 t:MouseEvent):v 叫 ......…........… ......................8Clo 曲 esChange. 叫 “ble 置 信 ue;function 曲 .owPants(Event:MouseEvent):vo 姐 , ...............ó.............................PantsChange.visib 恥 叫 rue;function 伽 wSho 叫 Event:M, 叫 “vent):void{ .............................................Sho 閏 Change.visible 司 n 鵬., showHairO 自 訂 函 式 , 會 將 Hai rC hange 元 件 實 體 的 屬 性 visible 設 為 true ' 即 可 在 舞台 上 顯 示 該 元 件 。e showClothesO 自 訂 函 式 , 會 將 ClothesChange 元 件 實 體 的 屬 性 visible 設 為 true . 即可 在 舞 台 上 顯 示 該 元 件 。• showPantsO 自 訂 函 式 , 會 將 PantsChange 元 件 實 體 的 屬 性 visible 設 為 t 帥 , 即 可 在舞 台 上 顯 示 該 元 件 。• showShoesO 自 訂 函 式 , 會 將 ShoesChange 元 件 實 體 的 團 性 visible 設 為 t 帥 , 即 可在 舞 台 上 顯 示 該 元 件 。

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!