最近練習的時候想做個球可以點到滑鼠點的X,Y去的小東西,但是明明大概怎麼算都懂,但是每次點了以後他總是跑一點點…要一直點一直點… 情急之嚇跑去問了好麻吉T神… 才知道Event.ENTER_FRAME這東西
其實找資料的時候有看過這個不過一直不太了解這什麼…
問了T神才知道原來是類似timer的東西,無時無刻都在執行,所以只要…..
- iBall.addEventListener(Event.ENTER_FRAME, ballHaldler);
- function ballHaldler(evt:Event):void {
- ...計算的部分...
- }
這樣就好了…
我也是現在才知道耶!
我不太懂這個耶~~
I will keep your new article. I really enjoyed reading this post, thanks for sharing.
I really enjoyed reading this post, thanks for sharing.
Welcome to UK Mulberry Factory Shop! Shop luxury Mulberry Bags at online Mulberry factory shop,here you can enjoy many different kinds of fashionable mulberry bags. Mulberry bag is a classic and fashionable brand of Britain. It becomes more and more popular among people in UK.