24h購物| | PChome| 登入
2010-12-14 20:04:00 | 人氣1,979| 回應0 | 上一篇 | 下一篇

12/14ac上課資料(一)

推薦 0 收藏 0 轉貼0 訂閱站台

計分版

for(var i:int= 0;i<8;i++){
 var romio :toy = new toy();
if(i<4){romio.y = 120
        romio.x =20+120*i}else{
     romio.y = 260
        romio.x=50+120*(i-4)  
 } 
 this.addChild(romio)
 }
bar.startDrag(true)
Mouse.hide()
bar.mouseEnabled = false
this.setChildIndex(bar,this.numChildren-1)
this.addEventListener(MouseEvent.CLICK,removeRomio)

var point = 0
function removeRomio(e:MouseEvent):void{
 var juliet = e.target
 if(this.removeChild(juliet)){
 point +=10
 this.point_txt.text = point
  }
 
 }

 

 

 

 

台長: genie1215
人氣(1,979) | 回應(0)| 推薦 (0)| 收藏 (0)| 轉寄
全站分類: 男女話題(愛情、男女、交友) | 個人分類: with my love |
此分類下一篇:12/14ac上課(二)
此分類上一篇:12/9ac上課資料(2)

是 (若未登入"個人新聞台帳號"則看不到回覆唷!)
* 請輸入識別碼:
請輸入圖片中算式的結果(可能為0) 
(有*為必填)
TOP
詳全文