課堂範例 – 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...

41,194 Responses

  1. Malcolmseern表示:

    Apotek hemleverans recept apotek pa nett apotek pa nett

  2. Derekgroum表示:

    Apotek hemleverans idag: Apotek hemleverans recept – apotek online

  3. HomerFaw表示:

    http://apotekonlinerecept.com/# apotek online recept

  4. Malcolmseern表示:

    Apotek hemleverans recept Apotek hemleverans idag Apoteket online

  5. Derekgroum表示:

    Apotek hemleverans recept: apotek pa nett – Apotek hemleverans idag

  6. Michaeltor表示:

    Kamagra kaufen: Kamagra Oral Jelly kaufen – Kamagra Gel

  7. Michaeltor表示:

    apotek online recept: apotek online – Apotek hemleverans recept

  8. Derekgroum表示:

    Apotek hemleverans idag: apotek online – apotek online

  9. HomerFaw表示:

    https://apotekonlinerecept.com/# apotek online recept

  10. jili no 1表示:

    Very good blog article.Thanks Again. Fantastic.

  11. HomerFaw表示:

    https://apotheekmax.com/# Apotheek online bestellen

  12. Derekgroum表示:

    Apotek hemleverans recept: Apotek hemleverans recept – Apotek hemleverans idag

  13. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:ремонт крупногабаритной техники в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  14. Derekgroum表示:

    ApotheekMax: Betrouwbare online apotheek zonder recept – ApotheekMax

  15. Michaeltor表示:

    ApotheekMax: Betrouwbare online apotheek zonder recept – Online apotheek Nederland met recept

  16. alex-machine表示:

    мастер холодильник коломна ремонт холодильников в москве

  17. HomerFaw表示:

    https://apotheekmax.shop/# Apotheek online bestellen

  18. Derekgroum表示:

    Online apotheek Nederland zonder recept: Online apotheek Nederland met recept – de online drogist kortingscode

  19. Malcolmseern表示:

    Kamagra kaufen ohne Rezept Kamagra kaufen Kamagra Oral Jelly

  20. Michaeltor表示:

    Apoteket online: Apotek hemleverans recept – apotek online recept

  21. Michaeltor表示:

    apotek online: Apotek hemleverans idag – Apotek hemleverans recept

  22. Derekgroum表示:

    apotek pa nett: Apoteket online – Apoteket online

  23. Malcolmseern表示:

    Beste online drogist online apotheek Online apotheek Nederland zonder recept

  24. Malcolmseern表示:

    Apotek hemleverans recept apotek online recept Apoteket online

發佈留言

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