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

37,010 Responses

  1. Porterfax表示:

    discount drugs online pharmacy without prescription discount drugs

  2. The One B1 Driving License Trick Every Person Should Know passez Votre permis de
    conduire dès 749€ – 599€ (http://www.question-ksa.com)

  3. эскорт модели [url=www.t.me/escort_moscow_pro/]www.t.me/escort_moscow_pro/[/url] .

  4. A Step-By Step Guide To SEO Near London affordable seo near me

  5. москва эскорт [url=https://t.me/escort_moscow_pro]москва эскорт[/url] .

  6. Charleskepsy表示:

    cheapest pharmacy to fill prescriptions without insurance https://easycanadianpharm.com/# easy canadian pharm

  7. WillieRap表示:

    MegaIndiaPharm: MegaIndiaPharm – cheapest online pharmacy india

  8. WillieRap表示:

    easy canadian pharm: canadapharmacyonline legit – easy canadian pharm

  9. Davidmoits表示:

    buying prescription drugs in mexico: best online pharmacies in mexico – buying prescription drugs in mexico

  10. MichaelGeony表示:

    canada drugs coupon code http://discountdrugmart.pro/# discount drug mart

  11. Porterfax表示:

    buy prescription drugs from india MegaIndiaPharm top 10 pharmacies in india

  12. Davidmoits表示:

    family pharmacy: Cheapest online pharmacy – Best online pharmacy

  13. MichaelGeony表示:

    prescription drugs online https://easycanadianpharm.com/# easy canadian pharm

  14. A Provocative Remark About 2 In 1 Stroller 2 in 1
    stroller with car seat (images.google.be)

  15. See What Assessment In Mental Health Tricks The Celebs Are Using Assessment in Mental Health

  16. Porterfax表示:

    easy canadian pharm easy canadian pharm easy canadian pharm

  17. Charleskepsy表示:

    canadian pharmacy world coupon code https://easycanadianpharm.shop/# canada cloud pharmacy

  18. Davidmoits表示:

    easy canadian pharm: easy canadian pharm – easy canadian pharm

發佈留言

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