利用Tweener製作動畫 – 即時時鐘

前面已經介紹了很多利用Tweener所產生的動畫方式,接下來的幾篇文章,馬老師將會分享一些利用Tweener所製作出來的效果給大家參考,相信只要用心,大家都可以做出很酷的效果!

Tweener 即時時鐘 範例

主要利用Tweener和Flash擷取時間的功能,製作了一個時鐘,最主要是秒針移動的效果。

import caurina.transitions.Tweener;

pointerFn();
function pointerFn()
{
	var now:Date = new Date  ;
	var nowH:int = now.hours;
	var nowM:int = now.minutes;
	var nowS:int = now.seconds;
	pointerH.rotation=nowH*30+(nowM*6/12);
	pointerM.rotation = nowM * 6;
	pointerS.rotation = nowS * 6;
}

setInterval(clockFn,1000);
function clockFn()
{
	Tweener.addTween(pointerS, {rotation:pointerS.rotation+6, time:0.5, transition:"easeOutElastic"});
	if (pointerS.rotation == 0)
	{
		pointerFn();
	}
}

即時時鐘 原始檔 下載

You may also like...

15,559 Responses

  1. Everything You Need To Learn About G Spot Stimulators G spot Vibrators

  2. 8 Tips To Increase Your Replacement Upvc Window Handles Game Repairs to
    Upvc windows; duke-Woods-2.blogbright.net,

  3. What’s The Current Job Market For Modular Sleeper Sofa Professionals Like?
    modular sleeper Sofa

  4. Leonardpar表示:

    https://mexicopharmacy.win/# mexican pharmaceuticals online

  5. mspeech.kr表示:

    The 3 Greatest Moments In Buggy 2 In 1 History car seat pushchair 2 in 1 (mspeech.kr)

  6. DouglasGed表示:

    cheapest online pharmacy india: Cheapest online pharmacy – reputable indian online pharmacy

  7. A Peek In ADHD Diagnosis In Adults’s Secrets Of ADHD Diagnosis
    In Adults Adhd diagnostic criteria

  8. Suzuki表示:

    What’s The Job Market For Suzuki Replacement Key Professionals?
    Suzuki

  9. Bianca表示:

    See What Patio Sectional Sofa Tricks The Celebs Are Utilizing patio sectional
    sofa (Bianca)

  10. DouglasGed表示:

    edmeds: online ed prescription same-day – best online ed treatment

  11. 9 Lessons Your Parents Teach You About Online Shopping online shopping (jahc.inckorea.net)

  12. Keys Mercedes表示:

    The 10 Most Terrifying Things About Keys Mercedes Keys Mercedes

  13. What’s The Job Market For Best Clitoris Toy Professionals? best clitoris toy

  14. Leonardpar表示:

    https://mexicopharmacy.win/# reputable mexican pharmacies online

  15. qooh.me表示:

    You’ll Be Unable To Guess Small Sectional Sofa With Chaise’s Secrets small sectional sofa with chaise; qooh.me,

  16. telegra.ph表示:

    14 Cartoons On Nissan Juke Key Fob To Brighten Your Day nissan 350z key; telegra.ph,

  17. Leonardpar表示:

    https://mexicopharmacy.win/# buying prescription drugs in mexico online

  18. Are You Confident About Doing Upvc Window Locks?
    Check This Quiz Upvc Window Repairs

  19. Bimqco表示:

    cheap deflazacort online – brimonidine oral purchase alphagan without prescription

  20. DouglasGed表示:

    mexican online pharmacies prescription drugs: Best online Mexican pharmacy – mexico drug stores pharmacies

  21. onbet表示:

    This page certainly has all the info I needed concerning this subject and didn’t know who to ask.

  22. Leonardpar表示:

    https://indiapharmacy.shop/# indian pharmacy online

  23. yerliakor.Com表示:

    How To Create An Awesome Instagram Video About Buy Panty Vibrators Remote control vibrating
    Panty (yerliakor.Com)

  24. Zabiwx表示:

    buy generic duphalac – betahistine cost purchase betahistine generic

  25. Guide To Online Shopping Uk Reviews: The Intermediate Guide In Online Shopping Uk Reviews
    online shopping Uk reviews

  26. You’ll Be Unable To Guess French Style Fridge Freezer With Water
    And Ice Dispenser’s Tricks french style Fridge

  27. Leonardpar表示:

    http://mexicopharmacy.win/# medication from mexico pharmacy

  28. DouglasGed表示:

    buy erectile dysfunction medication: ed pills online – get ed meds today

發佈留言

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