利用Tweener製作動畫 – 其他參數
因為這陣子馬老師擔任了崇右數位媒體設計系的系主任後業務繁忙,好久沒在部落格上貼文章了,現在總算有些空檔可以繼續貼文,之前寫了有關利用Tweener製作動畫的文章,接著這篇文章來介紹在Tweener中其他可用的參數,請各位參考,不過詳細的部分還是可以參考官網的說明。
delay:可以設定在動畫完成後多久,再接續進行下一動畫(Tweener delay 範例)
import caurina.transitions.Tweener Tweener.addTween(ball, {x:150, time:1}); //用一秒鐘的時間移動ball元件至x為150的位置 Tweener.addTween(ball, {y:100, time:1, delay: 2}); //等待兩秒後用一秒鐘的時間移動ball元件至y為100的位置
getTweenCount:取得目前動畫的補間數量(Tweener getTweenCount 範例)
import caurina.transitions.Tweener Tweener.addTween(ball, {x:150, time:2}); Tweener.addTween(ball, {y:100, time:2,delay:2}); txt.text="元件Ball共有" + Tweener.getTweenCount(ball) + "段補間動畫"
getTweens:取得目前動畫所更改元件的屬性(Tweener getTweens 範例)
import caurina.transitions.Tweener Tweener.addTween(ball, {x:150, y:100, alpha:1, time:2}); txt.text="元件Ball共被製作了" + Tweener.getTweens(ball) + "的屬性變化" //輸出元件被補間的屬性
getVersion:取得目前使用Tweener的版本(Tweener getVersion 範例)
import caurina.transitions.Tweener Tweener.addTween(ball, {x:150, y:100, time:2}); txt.text="本動畫使用Tweener版本為:" +Tweener.getVersion() //輸出元件使用Tweener的版本
onStart、onUpdate、onComplete:分別在補間「開始」、「進行中」、「結束」呼叫不同的函數執行(Tweener complex 範例)
import caurina.transitions.Tweener import flash.events.MouseEvent; Tweener.addTween(ball, {x:150, y:100, time:3,onStart:startFn,onUpdate:updateFn,onComplete:completeFn}); /*用三秒鐘的時間移動ball元件至x為150和y為100的位置 開始時執行startFn函數 過程中執行updateFn函數 完成後執行completeFn函數 */ function startFn(){ ball.alpha=0.1 } function updateFn(){ ball.alpha+=0.02 txt.text="球體正在移動" } function completeFn(){ ball.alpha=1 txt.text="現在可以拖曳球體" ball.addEventListener(MouseEvent.MOUSE_DOWN,downFn) ball.addEventListener(MouseEvent.MOUSE_UP,upFn) function downFn(e:MouseEvent){ ball.startDrag() } function upFn(e:MouseEvent){ ball.stopDrag() } }
addCaller:在指定的時間內呼叫某函數N次(Tweener addCaller 範例)
import caurina.transitions.Tweener var i=0 no.text=i Tweener.addCaller(no, {onUpdate:go, time:10, count:10 , transition:"linear"}); //在10秒內針對no執行10次go函數 //Tweener.addCaller(no, {onUpdate:go, time:10, count:10 , transition:"easeinquad"}); //在10秒內針對no執行10次go函數且速度越來越慢 function go(){ i++ no.text=i }
controlTweens:控制由Tweener所產生的動畫(Tweener controlTweens 範例)
import caurina.transitions.Tweener Tweener.addTween(ball, {x:280, time:20,transition:"linear"}); pauseBtn.addEventListener(MouseEvent.CLICK,pauseFn) resumeBtn.addEventListener(MouseEvent.CLICK,resumeFn) function pauseFn(e:MouseEvent){ pauseBtn.visible=false resumeBtn.visible=true Tweener.pauseAllTweens(); } function resumeFn(e:MouseEvent){ pauseBtn.visible=true resumeBtn.visible=false Tweener.resumeAllTweens(); }
soundVolume:利用Tweener來控制音量(Tweener soundVolume 範例)
import caurina.transitions.Tweener; import caurina.transitions.properties.SoundShortcuts; SoundShortcuts.init(); var snd:Sound = new heavy ; var chn:SoundChannel = new SoundChannel ; chn = snd.play(0,1000); btn.addEventListener(MouseEvent.CLICK,clickFn) function clickFn(e:MouseEvent){ Tweener.addTween(chn, {_sound_volume:0, time:10}); } //點選按鈕後聲音會在十秒內逐漸歸零
FilterShortcut:Tweener也可以控制Flash中的各種濾鏡,利用濾鏡來製作動畫或互動(blurFilter 範例、dropShadowFilter 範例)
blurFilter –
import flash.filters.*; import caurina.transitions.properties.FilterShortcuts; import caurina.transitions.Tweener FilterShortcuts.init(); var blur:BlurFilter=new BlurFilter stage.addEventListener(MouseEvent.CLICK,clickFn) function clickFn(e:MouseEvent){ Tweener.addTween(ball, {time:0,_Blur_blurX:20,_Blur_blurY:20}); Tweener.addTween(ball, {x:mouseX, y:mouseY, time:2,_Blur_blurX:0,_Blur_blurY:0, transition:"easeOutQuart"}); }
dropShadowFilter –
import caurina.transitions.properties.FilterShortcuts; import caurina.transitions.Tweener import roMc FilterShortcuts.init(); stage.addEventListener(Event.ENTER_FRAME,shadowFn) function shadowFn(e:Event){ Tweener.addTween(ball, {time:0,_DropShadow_angle:roMc.ro(ball)+180,_DropShadow_distance:6}); }
以上是有關Tweener參數的一些範例,這邊也把Tweener Parameters 壓縮檔給各位,提供有興趣的同學參考。
provigil canada
“A”}], {
“X”: 20, “Y”: 20},
{ “X”: 42, “Y”: 21},
{ ” http://rosizolit.com/bitrix/rk.php?goto=https://necapvega.weebly.com
6add127376 monmory
buy modafinil without prescription order provigil online provigil 200mg uk
It is one of most prominent third-party program applications, today, from community facets at no cost, and some are even available fee of charge, is on the list of well-liked and recognized applications. It is one of several best i.e. Cleaner applications, worldwide today from easy trends at no cost, and some are also available fee of charge, is on the list of well-known and popular applications.
Personally I’m having used 3 quite a bit of third https://www.google.sm/url?q=https://chrisconduri.weebly.com
6add127376 crisnahv
modafinil 100mg canada order modafinil pill
If you have problems using the application, the forum provided by maker is at your disposal.
Cons:-
Missing more advanced features;
Takes lots of time to restart the computer;
Takes time in order to apply customization.
Bottom Line:
Must have
Have used this product? And how does it compare to other products listed here? Share your thoughts and experience and help your fellow users make the right choice – it is after all the https://cas.mon-ent-occitanie.fr/login?service=http://lnx.russellonline.it/elearning/claroline/document/goto/?url=https://rarisole.weebly.com
6add127376 orddemo
Please update your profile unless you are reselling
PLEASE do not resell if you are a business. You must update your profile to be able to list that product. When you agree to leave this product alone, you’re agreeing not to say you’re reselling.
Amazon Product Advertising Notice
CompileSoft.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking https://brakokaweer.weebly.com
6add127376 vinras
The main features of DiskIndex are:
* Index only data – no software
* Shows unique, duplicated and common files (small and large files)
* Shows file types (not only text), file sizes, file attributes, compression, dates created
* Custom output formats
* Simple interface
* Very small files index and so on.
DiskIndex displays detailed information on any chosen drive or partition.
It allows you to see details such as:
* The name http://www.ziraatciyiz.biz/redirector.php?url=https://dunbipiwi.weebly.com
6add127376 clevgil
Functionality and ease of use 6.3
Vover EasyMobile is a forensics product for mobile devices that allows you to recover deleted files, restore partial files, and analyse disk images. It has a user-friendly interface, supported by both Windows and Mac systems. When the deleted icon disappears, start to look for it in the last place where you might have stored it. All you need to do is find the file and save it in one of the hard drive, USB drive https://ciatebephal.weebly.com
6add127376 garlau
■ MonstaVault
■ MonstaChorus
How to use:
■ To hear
Mute other plugin in use
■ To adjust
Touch Original, Setting or Live Depth
■ To apply
Drag to Effect and drop.
MonstaVault Stereo Chorus
MonstaChorus.at https://www.krseo.cn/wp-content/themes/begin5.2/inc/go.php?url=https://trucmemypo.weebly.com
6add127376 vangrac
https://facepager.com/upload/files/2022/05/fSTrVh62rg69uoTnYKCY_17_24591267fda53b7b4600c9323be426f0_file.pdf
341c3170be callenge
chrynana 341c3170be http://pamshomes.com/RealtorWebPage?template=embed&customlink_id=1652321948&content=https://everyonezone.com/upload/files/2022/05/3KYuuCvwDWv7SgTDpv9A_17_ddd5690502e653637829603e881fd414_file.pdf
best price for daily cialis cialis 20 mg price cialis pills
ualhard 341c3170be https://influencerstech.com/upload/files/2022/05/TwUkVUvjIYZRegudBl9o_17_6d420632ed621c6c08eee7463d28dfe0_file.pdf
leiojan 341c3170be https://whoosk.s3.amazonaws.com/upload/files/2022/05/uRxl5jOPhyK6Y8NlmMFZ_16_cc5b8f7223c5c413b69b1af99693ef23_file.pdf
buy generic modafinil 100mg
raemann 341c3170be https://www.gubkin.ru/bitrix/redirect.php?event1=&event2=&event3=&goto=https://hestur.se/upload/files/2022/05/nug5Wi9HeBlMjK2x4b9u_17_b06be8a4355e9626745e668fad26b114_file.pdf
modafinil 100mg for sale provigil 100mg ca provigil 200mg over the counter
baylcous 341c3170be http://cse.google.is/url?sa=i&url=https://social111.s3.amazonaws.com/upload/files/2022/05/pm2NtGjkTkXnGFqQpjtR_17_89196d5a862c980c082965242ee446f5_file.pdf
purchase modafinil modafinil 200mg for sale
pavidori 341c3170be http://belfinance.ru/bitrix/rk.php?goto=https://talkitter.com/upload/files/2022/05/hDSL6YXipWPaCNaUQuuI_17_beedf8bb99192e2dc098f45042100952_file.pdf
order cefuroxime 250mg generic – ceftin oral cialis 20mg us
tammtill 341c3170be https://google.com.tj/url?q=https://www.yapi10.com.tr/upload/files/2022/05/pRIDY4qgn8xLSfFYYsKh_17_a984ad1e347a0015f50774960f2c20e7_file.pdf
modafinil ca modafinil 100mg ca
oral modafinil 100mg provigil 100mg cost
nathsand 341c3170be https://cse.google.com.br/url?sa=i&url=https://technospace.co.in/upload/files/2022/05/2jE8kI8B4r9VjApXQNOe_17_0f86fdcb48731d1c45dbba58d93ef333_file.pdf
nervanne 807794c184 https://www.fincasanagustin.es/es/blog/posts/light_box/426/image1?return_to=https://www.grisial.com/profile/astownalfredaslaurlalea/profile
buy provigil 100mg generic order modafinil 100mg for sale
stromectol 3 mg tablets price stromectol for sale stromectol 12 mg tablets
karneli 341c3170be https://3d.skr.jp/cgi-bin/lo/refsweep.cgi?url=https://makenix.com/upload/files/2022/05/lzMJTYkJWhNxN7hWEKEH_17_5a1afd63a7ea4caf32e2c3ad11006065_file.pdf