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

11,261 Responses

  1. Williamces表示:

    order amoxicillin online no prescription: amoxicillin for sinus infection – amoxicillin 500mg buy online canada

  2. IrwinGlync表示:

    prednisone 1 tablet: what is prednisone used for in adults – prednisone canada pharmacy

  3. AnthonyPreep表示:

    how can i get prednisone online without a prescription prednisone 1 mg tablet buy prednisone online canada

  4. Danieliteds表示:

    prednisone pill: how long does prednisone last – prednisone 50mg cost

  5. Williamces表示:

    prednisone 20mg capsule: 2.5 mg prednisone daily – prednisone without prescription

  6. Как увеличить посещаемость сайта: лучшие практики
    3
    оптимизация сайта https://www.seo-prodvizhenie-sayta.co.ua/ .

  7. Danieliteds表示:

    prednisone pills cost: prednisone high – prednisone 20 mg prices

  8. BrianGub表示:

    https://amoxilst.pro/# generic amoxil 500 mg

  9. Waynerat表示:

    amoxicillin 500mg capsule: fish amoxicillin – amoxicillin 250 mg

  10. Danieliteds表示:

    prednisone canada: prednisone 30 mg tablet – prednisone online

  11. Danieliteds表示:

    can you buy prednisone over the counter uk: 50mg prednisone tablet – prednisone 50 mg for sale

發佈留言

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