課堂範例 – UNIQLO衣服選單

暑假在幫學生加強Flash ActionScript利用UNIQLO衣服做了這樣的案例,提供大家參考,因為是上課作品,所以程式部分沒有太完美。

//變數宣告
var ldr:Loader=new Loader
var path:URLRequest=new URLRequest

//開始載入外部圖片
path.url="ut1.jpg"
ldr.load(path)
clothes.addChild(ldr)
ldr.x=-285
ldr.y=-300
clothes.scaleX=0.5
clothes.scaleY=0.5

//衣服拖曳監聽與函數
clothes.addEventListener(MouseEvent.MOUSE_DOWN,downFn)
clothes.addEventListener(MouseEvent.MOUSE_UP,upFn)
function downFn(e:MouseEvent){
	clothes.startDrag(false)
}
function upFn(e:MouseEvent){
	clothes.stopDrag()
}

//滑桿滑動監聽與函數
stage.addEventListener(MouseEvent.MOUSE_MOVE,moveFn)
function moveFn(e:MouseEvent){
	clothes.scaleX=slider.value/100
	clothes.scaleY=slider.value/100
}

//下拉式選單監聽與函數
changeBtn.addEventListener(MouseEvent.CLICK,changeFn)
function changeFn(e:MouseEvent){
	path.url=menu.value
	ldr.load(path)
	clothes.addChild(ldr)
	ldr.x=-285
	ldr.y=-300
}

UNIQLO 衣服選單 原始檔 下載

註:本範例所使用的圖片版權屬於UNIQLO公司所有。

You may also like...

36,055 Responses

  1. AlbertNer表示:

    https://cytpharm.shop/# cytotec pills buy online
    steroids prednisone for sale

  2. пропуск в москву для грузовых автомобилей пропуск в москву для грузовых автомобилей .

  3. Waltererync表示:

    SemaPharm24: SemaPharm24 – buy semaglutide

  4. DanielZek表示:

    https://kamapharm.com/# buy kamagra online usa
    п»їkamagra

  5. пропуск в москву для грузовых автомобилей пропуск в москву для грузовых автомобилей .

  6. Enjoyed reading through this, very good stuff, appreciate it.

  7. AlbertNer表示:

    http://kamapharm.com/# Kama Pharm
    prednisone price

  8. 15 Of The Best Documentaries On Wall Mount Fireplace fireplace Inserts

  9. Brianlit表示:

    Pred Pharm PredPharm Pred Pharm

  10. Brianlit表示:

    semaglutide tablets price SemaPharm24 semaglutide tablets store

  11. пропуск в москву для грузовых автомобилей пропуск в москву для грузовых автомобилей .

  12. LarryLog表示:

    CytPharm: buy cytotec over the counter – buy cytotec over the counter

  13. DonaldKap表示:

    микрозаймы онлайн на карту заим

  14. Waltererync表示:

    Pred Pharm: Pred Pharm – Pred Pharm

  15. пропуск в москву для грузовиков [url=http://urilin.ru /]пропуск в москву для грузовиков[/url] .

  16. LarryLog表示:

    PredPharm: Pred Pharm – Pred Pharm

  17. 10 Erroneous Answers To Common Upvc Door Panels With Cat Flap Questions Do You Know
    The Right Ones? Upvc Door Panel With Cat Flap (Pickletoad27.Bravejournal.Net)

  18. Waltererync表示:

    Sema Pharm 24: semaglutide tablets for weight loss – generic rybelsus tabs

  19. 15 Things You Don’t Know About Buy Telc B1 Exam Certificate goethe zertifikat c1 kaufen (http://www.footballzaa.com)

  20. AlbertNer表示:

    https://cytpharm.com/# buy cytotec online
    order prednisone from canada

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。