利用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"});
}

移動看板 範例 原始檔 下載

You may also like...

10,631 Responses

  1. Very nice post. I just stumbled upon your weblog and wished to say that I’ve truly enjoyed surfing around your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again soon!

  2. Can I just say thats a relief to discover a person that in fact knows what theyre talking about online. You actually learn how to bring a difficulty to light and earn it crucial. Lots more people need to check this out and appreciate this side of your story. I cant believe youre not more common as you absolutely develop the gift.

  3. Если вы искали где отремонтировать сломаную технику, обратите внимание – ремонт бытовой техники в челябинске

  4. After study a number of the content on your own web site now, and that i genuinely much like your way of blogging. I bookmarked it to my bookmark web site list and you will be checking back soon. Pls check out my site too and inform me what you think.

  5. Jessewrify表示:

    The Importance of Resonance Control Systems in Industrial Equipment
    Across industrial sites, equipment as well as rotating machinery act as the backbone of output. However, an of the most frequent issues which can impede the functionality and durability exists as vibrations. Vibration can cause a array of complications, from minimized exactness and performance to increased deterioration, in the end causing costly interruptions along with repairs. This is when vibration control apparatus becomes essential.

    Why Vibration Control is Crucial

    Oscillation in equipment may cause several detrimental consequences:

    Minimized Operational Efficiency: Exaggerated vibration might lead to discrepancies along with imbalance, reducing the productivity in the devices. This may cause reduced production schedules as well as increased energy use.

    Greater Deterioration: Ongoing vibration hastens the erosion of equipment components, resulting in additional maintenance along with an possibility for unanticipated unexpected issues. Such a situation not only increases operating costs as well as reduces the lifespan for the existing machinery.

    Protection Concerns: Excessive resonance could pose major dangers to the machinery and the machinery and the operators. In severe cases, severe cases, such vibrations can cause catastrophic equipment breakdown, endangering personnel and leading to significant harm to the facility.

    Accuracy and Manufacturing Quality Issues: For fields that demand high accuracy, such as manufacturing or space industry, vibration may result in inaccuracies during production, producing defective products and increased waste.

    Reasonably Priced Options towards Vibration Regulation

    Investing in vibration management systems proves not just a necessity but a prudent choice for any organization that relies on machines. The offered modern vibration control systems are intended to mitigate oscillation in all equipment or rotating equipment, guaranteeing smooth and productive processes.

    What sets such tools apart remains its reasonable pricing. We understand the necessity of affordability inside the modern competitive marketplace, and for that reason our offerings include top-tier vibration regulation systems at prices that are reasonable.

    By selecting our equipment, you’re not only preserving your machinery and boosting its operational effectiveness as well as investing in the enduring achievement of your company.

    Conclusion

    Vibration management remains a critical element of maintaining the operational performance, safety, and longevity of your industrial equipment. Using our cost-effective vibration control equipment, you can ensure that your operations operate seamlessly, all goods remain top-tier, and your employees are protected. Do not permit resonance compromise your business—put money in the appropriate systems immediately.

  6. Jessewrify表示:

    vibration analysis
    The Importance of Oscillation Mitigation Equipment in Industrial Equipment
    Within industrial sites, devices along with turning machinery act as the core of production. Nonetheless, an of the most frequent concerns which can impede its efficiency and lifetime is vibrations. Oscillation might lead to a variety of challenges, such as reduced accuracy along with performance resulting in greater wear and tear, in the end leading to costly downtime and repairs. This is when resonance control tools is essential.

    Why Oscillation Control remains Critical

    Resonance in machinery might bring about several negative outcomes:

    Lowered Functional Productivity: Excessive vibration may lead to misalignments as well as imbalance, reducing total performance with the devices. This could cause slower production times as well as increased electricity usage.

    Heightened Wear and Tear: Persistent resonance accelerates the erosion to equipment components, bringing about increased upkeep along with the chance for unexpected breakdowns. Such a situation does not just elevates maintenance expenses and limits the lifespan of your systems.

    Safety Concerns: Uncontrolled vibrations could present considerable security risks to the machinery and the equipment as well as the operators. In severe cases, severe cases, this may result in catastrophic machinery failure, jeopardizing workers and resulting in widespread damage to the premises.

    Precision as well as Production Quality Challenges: For sectors which demand high accuracy, such as manufacturing as well as aerospace, vibrations can lead to inaccuracies in the manufacturing process, causing defective products as well as more waste.

    Affordable Solutions for Oscillation Control

    Investing in resonance control tools is not only necessary and also a sound investment for any organization that relies on machines. Our advanced vibration control systems are designed to intended to remove resonance from various machinery and spinning equipment, ensuring seamless and efficient operations.

    What sets our systems apart is its cost-effectiveness. We know the necessity of cost-effectiveness in today’s competitive market, which is why we have premium vibration control solutions at rates that remain budget-friendly.

    By choosing these tools, you’re not only protecting your machinery and increasing its performance you’re also putting resources towards the enduring success in your organization.

    Conclusion

    Resonance mitigation is an essential factor of maintaining the effectiveness, security, along with lifetime of your machines. With our economical oscillation control systems, it is possible to be certain your operations run smoothly, all manufactured items are of high quality, and your workers are protected. Do not let vibration undermine your company—put money in the correct apparatus today.

  7. Если вы искали где отремонтировать сломаную технику, обратите внимание – техпрофи

  8. Если вы искали где отремонтировать сломаную технику, обратите внимание – техпрофи

  9. Jessewrify表示:

    The Cruciality of Oscillation Control Systems in Mechanical Systems
    Across production settings, machines and rotational systems constitute the foundation of output. However, one of the commonly common concerns which may obstruct the performance and lifetime remains vibration. Resonance might cause an range of problems, ranging from minimized exactness as well as efficiency resulting in heightened damage, finally leading to high-cost interruptions along with fixes. Such a situation is why vibration regulation equipment proves to be essential.

    Why Oscillation Control is Necessary

    Vibration inside machinery can lead to several adverse outcomes:

    Minimized Operational Effectiveness: Exaggerated oscillation could lead to discrepancies and instability, minimizing overall performance of the systems. Such a scenario could result in reduced manufacturing speed along with increased electricity usage.

    Elevated Erosion: Continuous vibration hastens the erosion in machinery parts, leading to additional upkeep along with an chance for unexpected failures. Such a situation not only raises operating costs and limits the lifetime in your equipment.

    Security Hazards: Unchecked oscillation could bring substantial security risks to both the machinery and the operators. In, extreme situations, such vibrations could cause catastrophic system collapse, jeopardizing workers along with causing extensive harm to the site.

    Accuracy and Manufacturing Quality Issues: In businesses which depend on high precision, such as production and aviation, vibration could cause flaws in the manufacturing process, causing flawed products and increased waste.

    Economical Options for Vibration Regulation

    Investing in the vibration management equipment proves not just a necessity and a smart decision for all businesses that any organization that relies on mechanical systems. Our modern vibration control systems are engineered to mitigate oscillation within any equipment and rotating machinery, guaranteeing smooth and productive processes.

    What sets these tools above the rest is its cost-effectiveness. We understand the significance of cost-effectiveness inside the modern competitive marketplace, which is why we provide premium vibration control solutions at costs that are reasonable.

    By choosing our offerings, you aren’t simply protecting your mechanical systems and enhancing its efficiency but also investing in the sustained success in your organization.

    In Conclusion

    Resonance mitigation is a critical element of maintaining the operational performance, security, and longevity of your machinery. With our cost-effective vibration management tools, you can be certain your operations function efficiently, all goods maintain high quality, and your employees stay secure. Don’t let vibrations affect your business—put money in the appropriate systems today.

  10. Jessewrify表示:

    The Value of Oscillation Regulation Apparatus in Mechanical Systems
    Across industrial environments, machines and rotating machinery are the backbone of operations. However, an of the most common problems that can obstruct the operation and lifetime is vibration. Vibration might result in a array of complications, including reduced perfection and efficiency to elevated damage, eventually bringing about high-cost downtime and maintenance. This is the point where vibration management systems becomes vital.

    Why Vibrations Mitigation is Important

    Oscillation in machines can result in several adverse effects:

    Minimized Operational Performance: Exaggerated vibration could bring about misalignments and distortion, lowering the effectiveness of the equipment. Such can bring about slower manufacturing speed and higher power consumption.

    Greater Wear and Tear: Persistent resonance hastens the damage of equipment components, resulting in more regular upkeep and a potential for unanticipated unforeseen malfunctions. Such a situation not only elevates maintenance expenses and limits the durability for the machinery.

    Safety Risks: Excessive oscillation can introduce considerable dangers for both the machinery and the operators. In extreme situations, severe cases, these might bring about catastrophic equipment failure, threatening workers as well as resulting in widespread damage across the environment.

    Accuracy and Production Quality Concerns: For fields which depend on exact measurements, such as industrial sectors and space industry, oscillations could cause errors during the production process, resulting in defective products along with more waste.

    Economical Alternatives for Vibration Management

    Putting money in the vibration control apparatus proves not just a necessity but a smart decision for any company dependent on machines. The offered state-of-the-art vibration mitigation tools are engineered to reduce vibrations from all mechanical systems and rotational systems, providing smooth and efficient operations.

    One thing that sets such tools above the rest remains its reasonable pricing. It is recognized that the value of keeping costs low within the modern competitive marketplace, thus we offer high-quality vibration control solutions at prices that are reasonable.

    By selecting our equipment, you’re not only protecting your mechanical systems along with enhancing its operational effectiveness but also putting investment towards the long-term success of your company.

    Conclusion

    Resonance mitigation is a necessary component of maintaining the effectiveness, safety, and lifespan of your machinery. With our affordable vibration management tools, you can make sure your operations run smoothly, your products maintain high quality, along with all personnel are protected. Do not let vibration affect your operations—make an investment in the proper tools now.

  11. I discovered your website website online and check many of your early posts. Keep in the top notch operate. I simply additional increase RSS feed to my MSN News Reader. Looking for forward to reading far more by you at a later date!…

  12. AncrPaish表示:

    Without this enzyme, the body cannot break down fat from digested food.
    Before you sildenafil side effects with alcohol at cost-effective prices when you get it from good online
    Sometimes special X-rays are used to examine the blood supply to the kidneys.

  13. Если вы искали где отремонтировать сломаную технику, обратите внимание – профи тех сервис барнаул

  14. When I originally commented I clicked the -Notify me when new surveys are added- checkbox and already whenever a comment is added I am four emails sticking with the same comment. Can there be any way you are able to eliminate me from that service? Thanks!

  15. Jessewrify表示:

    The Value of Resonance Management Systems in Machinery
    Within production contexts, machines as well as turning devices are the core of operations. However, one of the highly prevalent concerns that might impede the performance as well as lifespan remains vibration. Vibrations could bring about an series of complications, such as minimized perfection and performance to heightened damage, ultimately causing high-cost interruptions and maintenance. This is the point where vibration regulation equipment is essential.

    Why Oscillation Control is Important

    Vibration in machinery can lead to multiple negative consequences:

    Decreased Production Efficiency: Exaggerated oscillation might cause misalignments and unbalance, minimizing total performance of the machinery. This may cause slower manufacturing speed and greater energy consumption.

    Elevated Deterioration: Persistent resonance hastens total erosion of machine components, bringing about more regular servicing along with the chance of unexpected unforeseen malfunctions. Such a situation does not just elevates operational costs and limits the durability of your machinery.

    Safety Concerns: Uncontrolled resonance might introduce significant security risks to both the equipment and the equipment along with the operators. In, severe cases, such vibrations may cause catastrophic system collapse, endangering employees and causing widespread destruction to the site.

    Accuracy and Quality Concerns: For fields that require high accuracy, such as production or aviation, vibration might cause discrepancies in the production process, causing faulty goods and increased waste.

    Cost-effective Approaches for Vibration Control

    Putting money in the vibration control tools remains not just a necessity and also a wise choice for any business any industry that uses machines. Our state-of-the-art vibration regulation equipment are engineered to mitigate oscillation within various machinery as well as rotational systems, ensuring seamless as well as effective performance.

    What differentiates these systems above the rest remains its economic value. It is recognized that the value of keeping costs low inside the modern competitive marketplace, and for that reason we offer high-quality vibration management solutions at rates that remain budget-friendly.

    Opting for these tools, you aren’t simply securing your mechanical systems and improving its productivity but also putting investment towards the enduring performance in your organization.

    Conclusion

    Vibration control proves to be a critical aspect of maintaining the effectiveness, safety, and lifetime of your industrial equipment. With our economical oscillation control systems, it is possible to ensure that your operations function efficiently, your products maintain top quality, as well as your workers remain safe. Don’t permit oscillation jeopardize your company—invest in the correct apparatus today.

  16. I gotta favorite this site it seems extremely helpful handy

  17. Jessewrify表示:

    The Significance of Resonance Regulation Equipment in Industrial Equipment
    Across manufacturing settings, machines as well as rotational machinery act as the support of manufacturing. Nonetheless, one of the commonly common challenges which could obstruct the operation and longevity is oscillation. Resonance may lead to a range of issues, including lowered precision along with performance resulting in greater damage, in the end bringing about high-cost delays as well as repairs. This is the point where vibration control tools becomes vital.

    Why Vibration Control remains Critical

    Resonance in equipment can result in several harmful impacts:

    Lowered Operational Effectiveness: Exaggerated oscillation may bring about discrepancies and instability, decreasing total effectiveness with such equipment. Such a scenario might cause reduced output times and greater electricity usage.

    Greater Damage: Ongoing vibration increases the damage in machine components, causing more regular repairs along with the risk for unforeseen malfunctions. Such a situation not only heightens operating costs but also decreases the lifetime of the devices.

    Safety Concerns: Unchecked oscillation could bring major security risks to the machinery and the machines and the personnel. In, extreme situations, this might lead to disastrous machinery failure, endangering operators and resulting in extensive harm to the facility.

    Precision along with Quality Challenges: In fields that depend on exact measurements, such as manufacturing and aerospace, oscillations might bring about discrepancies during the manufacturing process, resulting in defects as well as increased waste.

    Cost-effective Alternatives for Vibration Management

    Putting money into vibration management apparatus is not merely a necessity and also a prudent choice for all businesses that any company that uses machines. We offer cutting-edge vibration mitigation tools are designed to engineered to remove vibrations within all mechanical systems or rotating equipment, guaranteeing seamless as well as efficient functioning.

    One thing that differentiates such equipment above the rest is its its affordability. We understand the importance of cost-effectiveness within the modern competitive marketplace, which is why we have top-tier vibration control solutions at prices that are reasonable.

    Opting for our equipment, you aren’t simply protecting your machinery along with enhancing its productivity you’re also investing in the sustained performance of your business.

    Conclusion

    Vibration management is a vital factor of maintaining the efficiency, protection, and lifespan of your machinery. Using our cost-effective vibration management tools, you can ensure that your production function efficiently, your products remain top-tier, and your employees are protected. Do not let vibration undermine your operations—invest in the appropriate systems today.

  18. paris sg news表示:

    Your blog post was exactly what I needed to read right now. It’s amazing how you always seem to know just what to say.

  19. Real informative and fantastic anatomical structure of subject material , now that’s user pleasant (:.

  20. I have read several excellent stuff here. Definitely price bookmarking for revisiting. I wonder how much attempt you set to make such a fantastic informative web site.

  21. Если вы искали где отремонтировать сломаную технику, обратите внимание – выездной ремонт бытовой техники в челябинске

  22. Hi everyone, I do not seriously agree to that posting… I actually think that you should preferably provide a lot more particular percentage and take a look at your current statements

  23. Если вы искали где отремонтировать сломаную технику, обратите внимание – профи ремонт

  24. Jessewrify表示:

    vibration analysis
    The Value of Vibrations Control Tools in Industrial Equipment
    Inside industrial environments, equipment along with turning systems serve as the foundation of manufacturing. However, one of the highly prevalent challenges that could affect its performance and longevity exists as vibrations. Oscillation may lead to an variety of issues, including decreased perfection as well as efficiency to increased damage, in the end bringing about high-cost downtime along with restoration. This is where vibration regulation systems becomes critical.

    Why Vibrations Mitigation proves Necessary

    Vibration in machinery can bring about various harmful effects:

    Reduced Operational Effectiveness: Excessive resonance may bring about misalignment as well as instability, minimizing the productivity of the systems. Such might result in slower manufacturing speed and greater energy consumption.

    Increased Wear and Tear: Constant vibration hastens the deterioration to machine components, leading to additional repairs and an risk for unexpected issues. Such a scenario does not just elevates maintenance expenses but also decreases the lifetime of the devices.

    Protection Concerns: Excessive vibration can pose considerable dangers to the machinery and the machinery and the workers. In, severe cases, it might result in devastating equipment breakdown, jeopardizing operators and leading to widespread harm to the facility.

    Exactness as well as Quality Problems: In fields that rely on exact measurements, such as manufacturing and aerospace, vibration may lead to flaws in the production process, producing defects and more waste.

    Cost-effective Alternatives for Vibration Regulation

    Investing in the resonance control systems remains not just a necessity and also a sound investment for any industry dependent on equipment. Our advanced vibration regulation equipment work to engineered to reduce resonance from all machinery or rotating equipment, providing uninterrupted and efficient functioning.

    What differentiates such equipment from others is its affordability. We know the value of cost-effectiveness inside the competitive market of today, which is why we offer premium vibration control solutions at rates that remain budget-friendly.

    Opting for our systems, you are not just protecting your machines as well as boosting its operational effectiveness but also putting resources towards the sustained success of your business.

    Final Thoughts

    Oscillation control is a critical element in preserving the effectiveness, security, along with lifetime of your machinery. Through our economical vibration control equipment, you can be certain your operations operate seamlessly, your products are of high quality, and your employees stay secure. Don’t let resonance compromise your operations—invest in the right equipment today.

  25. Jessewrify表示:

    The Importance of Resonance Management Tools in Machinery
    Inside production sites, devices and rotational equipment constitute the foundation of output. However, a of the highly common challenges which could affect the functionality and lifespan exists as vibrations. Vibration may bring about an variety of complications, including lowered exactness along with efficiency leading to greater damage, in the end resulting in pricey delays as well as restoration. Such a situation is where resonance control apparatus proves to be essential.

    The Reason Vibrations Mitigation is Crucial

    Vibration in industrial equipment might cause multiple detrimental impacts:

    Reduced Functional Performance: Exaggerated resonance may bring about discrepancies as well as distortion, minimizing the effectiveness with the machinery. This could result in delayed production times and increased power consumption.

    Greater Deterioration: Ongoing vibration increases the deterioration of mechanical parts, leading to additional repairs and the risk of unexpected unexpected issues. Such a scenario does not just elevates operating costs and decreases the longevity of the devices.

    Safety Dangers: Unchecked resonance could introduce major safety concerns for both the machines along with the operators. In severe cases, severe cases, these might lead to disastrous machinery failure, endangering personnel and causing considerable damage to the premises.

    Precision along with Quality Concerns: Within fields where require precise production, such as industrial sectors and aerospace, resonance might lead to discrepancies with manufacturing, leading to flawed products and greater waste.

    Economical Alternatives to Vibration Management

    Putting money in vibration management systems remains not merely essential but a prudent choice for any business that relies on mechanical systems. Our cutting-edge vibration management systems work to built to mitigate resonance from various mechanical systems as well as spinning equipment, guaranteeing smooth and productive processes.

    What sets such systems above the rest is its its economic value. We know the value of keeping costs low inside the current market, which is why our offerings include high-quality vibration management solutions at pricing that are affordable.

    Through selecting these tools, you’re not only preserving your machines as well as boosting its operational effectiveness you’re also putting resources into the enduring success of your company.

    In Conclusion

    Vibration control proves to be a critical aspect in ensuring the effectiveness, safety, along with durability of your equipment. Through our affordable vibration control equipment, one can make sure your production operate seamlessly, all manufactured items are of high quality, and your workers stay safe. Don’t let vibrations undermine your machinery—invest in the correct apparatus today.

  26. Jessewrify表示:

    vibration analysis
    The Value of Vibrations Regulation Apparatus in Mechanical Systems
    Inside industrial contexts, machines and rotational devices serve as the support of manufacturing. However, one of the most frequent issues that could impede the operation along with longevity is oscillation. Oscillation can result in a variety of issues, including decreased accuracy along with productivity leading to greater damage, in the end causing expensive delays and maintenance. This scenario is why vibration regulation systems becomes essential.

    Why Oscillation Control is Important

    Vibration in equipment can bring about multiple detrimental consequences:

    Reduced Operational Efficiency: Excessive oscillation can bring about imbalances and imbalance, minimizing the efficiency in the equipment. This might result in reduced production schedules and greater electricity usage.

    Elevated Damage: Persistent vibration increases total deterioration of machinery parts, causing more regular servicing and the risk for unforeseen malfunctions. This not only elevates operational costs but also decreases the lifetime of your machinery.

    Safety Risks: Unmanaged oscillation may pose considerable safety concerns both to both the equipment as well as the operators. In, severe cases, such vibrations might bring about catastrophic equipment breakdown, endangering personnel and bringing about significant damage to the site.

    Exactness and Quality Issues: For industries which require high precision, such as production or aerospace, resonance can lead to discrepancies with the manufacturing process, leading to defects as well as increased waste.

    Cost-effective Approaches for Vibration Regulation

    Putting money into resonance control equipment remains not just a necessity and also a wise choice for any business involved with equipment. Our modern vibration mitigation tools are engineered to eliminate vibrations within any machinery as well as spinning equipment, providing smooth as well as efficient functioning.

    What sets such equipment apart is its its reasonable pricing. We understand the significance of cost-effectiveness within the competitive market of today, which is why our offerings include premium vibration regulation systems at costs that are affordable.

    By selecting our offerings, you aren’t simply securing your equipment as well as boosting its operational effectiveness you’re also putting investment into the enduring success in your organization.

    Conclusion

    Resonance mitigation is a vital aspect in preserving the efficiency, protection, and lifetime of your industrial equipment. Using our affordable vibration control equipment, you can ensure your operations run smoothly, your products are of high quality, as well as your employees remain safe. Do not let resonance compromise your operations—put money in the appropriate systems today.

發佈留言

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