利用Tweener製作動畫 – 廣告看板
依然是Tweener範例清倉,本篇範例大致是搭配Tweener讓目標物移動到指定座標的效果,話不多說看範例吧!
Tweener 橫幅廣告 範例:主要為利用Tweener針對廣告看板進行移動,以下為本範例的程式碼:
import caurina.transitions.Tweener; var i:int;//迴圈用變數 var pic:int = 1;//播放張數紀錄變數 var clock;//計時器變數 //按鈕變色與監聽 btnChange(); function btnChange() { for (i=1; i<=4; i++) { this["b" + i].gotoAndStop(1); this["b" + pic].gotoAndStop(2); } } for (i=1; i<=4; i++) { this["b" + i].addEventListener(MouseEvent.CLICK,clickFn); } function clickFn(e:MouseEvent) { clearInterval(clock); clock = setInterval(autoChange,5000); pic = e.currentTarget.name.substr(1,1); bannerChange(); btnChange(); } //計時器設定(每5秒更換) clock = setInterval(autoChange,5000); function autoChange() { pic++; if (pic>4) { pic = 1; } bannerChange(); btnChange(); } //圖片切換函數 function bannerChange() { Tweener.addTween(banner, {x:(pic-1)*-560, time:1, transition:"easeOutQuint"}); }
Tweener 移動看板 範例:與上面範例大致相同,不過本範例增加了縱向的移動。
import caurina.transitions.Tweener var i var j var targetX var targetY for(i=1;i<=3;i++){ for(j=1;j<=3;j++){ this["b"+i+j].addEventListener(MouseEvent.CLICK,moveFn) } } function moveFn(e:MouseEvent){ targetX=(e.currentTarget.name.substr(2,1)-1)*-450 targetY=(e.currentTarget.name.substr(1,1)-1)*-450 Tweener.addTween(nb, {x:targetX, y:targetY, time:2, transition:"easeOutQuint"}); }
15 Startling Facts About Buy A Legal Driving License That You Never Knew registrierten führerschein kaufen ohne anzahlung
(https://oeclub.org/index.php/User:BenSansom7)
15 Presents For Those Who Are The Damian The Puppy Lover In Your Life Arvin biewer yorkshire terrier mini kaufen
From greeting to checkout, always a pleasant experience.
https://clomidpharm24.top/
The pharmacists are always updated with the latest in medicine.
9 Signs You’re A Lightweight 3 Wheeled Mobility Scooter Expert Three Wheeled Scooter For Adults
The team embodies patience and expertise.
what are the side effects of gabapentin withdrawal
The best choice for personalized care.
They have an impressive roster of international certifications.
where to get clomid
They have expertise in handling international shipping regulations.
11 Ways To Completely Sabotage Your Glazing Doctor double glazing doctor
How To Explain Link Login Gotogel To Your Grandparents Trik Togel
1win официальный сайт регистрация http://1win13.am .
The best in town, without a doubt.
lisinopril chest pain
Some trends of drugs.
1вин войти https://www.1win12.am .
1winj http://www.1win12.am .
1win live 1win live .
1winn 1winn .
They keep a broad spectrum of rare medications.
https://gabapentinpharm24.top/
Their health and beauty section is fantastic.
1 win.am https://www.1win11.am .
Always greeted with warmth and professionalism.
https://lisinoprilpharm24.top/
Get warning information here.
Unrivaled in the sphere of international pharmacy.
gabapentin used for shingles pain
A harmonious blend of local care and global expertise.
They offer international health solutions without borders.
gabapentin dosage dogs pain
I’m grateful for their around-the-clock service.
1win баланс http://1win13.am .
1win online https://www.1win11.am .
Providing international caliber services consistently.
misoprostol cytotec 200 mcg tablet
Speedy service with a smile!
Some Of The Most Ingenious Things Happening With Small Shipping Containers For Sale container suppliers
Are You Sick Of Pragmatic? 10 Inspirational Resources To Invigorate Your Love 프라그마틱 슬롯 무료체험 (ai-db.science)
1win официальный сайт войти https://1win12.am .
Their global health initiatives are game-changers.
https://gabapentinpharm24.top/
A touchstone of international pharmacy standards.
10 Meetups On Buy A Real Driver’s License You Should Attend commander un permis de conduire français; https://licencefrancexpress62169.thekatyblog.com/,
Their global health resources are unmatched.
https://clomidpharm24.top/
Always up-to-date with international medical advancements.
Some are medicines that help people when doctors prescribe.
gabapentin 1a pharma 100 mg hartkapseln
Their cross-border services are unmatched.
The Reason Why Buy Axel Terrier Puppies Is Everyone’s Obsession In 2024 Marta Mini Yorkshire Terrier Kaufen (Kellee)