利用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(); } }
Normally I do nnot learn article onn blogs, but I wish to
saay tat this write-up very complelled me to take a look aat and do
so! Yoour wrifing taste hhas besen amazed me. Thnk you, quite great post.
What i ddo noot reslize iss in fact hhow you’re no longer ctually
much ore neatly-appreciated thazn you mmay be
riht now. You’re very intelligent. You already kknow therefode considerably with
regards too tgis matter, made mee personnally imahine it frm sso manjy
various angles. Its like women annd meen aare not involved
excrpt it’s one tjing too accomploish wih Girl gaga!
Youur individual stuffs outstanding. Always haandle itt
up!
Greetings from Colorado! I’m bored to teas att work sso I decided
to browse your website on my iphyone during lunch break. I
lopve the iinfo you provide here annd can’t wawit too take a look whewn I geet home.
I’m surprised at how quick yoyr blolg loaqded oon myy phone ..
I’m not even using WIFI, just 3G .. Anyways, gret blog!
Hello! Thiis iis my firs visdit tto your blog!
We are a group of volunteers annd starting a new prject inn a communityy in thee same niche.
Your blog provided us beneficial infkrmation to wofk on. You haave
done a extraaordinary job!
What’s up, I desire too subscribe for this webpage too take newestt updates, terefore whre ccan i ddo it
pleasee help.
It’s remarable inn favor off me tto havee a weeb page, whixh is usdful
for myy knowledge. tthanks admin
Thwre is certainly a grteat dedal to ledarn about tbis topic.
I lije all tthe ponts youu made.
Can I just say what a relidf tto unjcover someone whoo actually unerstands
what thsy are discussing ovesr thhe internet. Youu definitely undersatand howw tto brihg a prroblem to liught and mzke iit important.
A loot molre peoploe must look at this and understand this sidfe
oof your story. I can’t believe you’re not morde popuular since you certainky
hav the gift.
Great beat ! I would like tto apprenjtice while you amend yopur website, howw caan i subscribe forr a blog webb site?
The account helped me a acceptable deal. I had been tiny bit acquainted off tyis yyour broadcast offereed bight clrar concept
best price tadalafil online cialis professional wikipedia generic tadalafil price
connecting singles online members best sites for online dating
online viagra pharmacy sildenafil 50mg tablets coupon viagra tablet 25 mg price in india
Hello this is a wonderful write-up. I’m going to e mail this to my friends. I came on this while searching on yahoo I’ll be sure to come back. thanks for sharing.
You appear to know so much about this, and I see you’re a published author. Thanks
cialis 10 mg over the counter cialis 10mg cialis
ramipril buy online brand arcoxia glimepiride oral
how to buy viagra in us sildenafil 20 mg without a prescription how much is viagra 50 mg
canadian pharmacy viagra online generic viagra online usa viagra cost in india