Flashadvisor logo
:: Desktop Shortcut
:: Flash Help
Advices from Experts

 Submit Here! · Link to Us · Newsletter · Tell a Friend ·

      Add Tutorial |

 

Advertise here

Create Speaking Characters for your website and Flash movies. 15 Day Free Trial




PHP Scripts

 

 Home > Tutorials  > ActionScript

No need to extend flash animation , here comes delay animation using actionscript..

Author: Saravanan | Email
Website : sara-intop.blogspot.com/2007/07/delay-animation-in-flash-using-as.html


Advertisement

step1: Animate a ball in stage for 30 frames

step2: Paste the below code and place it in first frame


function timer_fun(delayy:Number) {
this.stop();
var timer:Number = getTimer();
var inter:Number = setInterval(function () {

if (getTimer()-timer>delayy) {
trace("here");
clearInterval(inter);
play();
}
}, 10);
}

step3: Paste the below code in Frame where you want to pause for some sec's

timer_fun(1000);//call the function in frame where you want to pause
//1000--1sec

Also view on http://sara-intop.blogspot.com/2007/07/delay-animation-in-flash-using-as.html

| 1 |

Rate This Tutorial :
We hope the information helped you. If you have any questions or comments, please don't hesitate to post them on the Forums section
Submit your Tutorial at Click Here
  

Home | About Us | Contact Us | Feedback | Advertise with us

Best viewed in 800x600 resolution with Internet Explorer.

Site Developed and Hosted by  ethicsolutions.com
All rights reserved with FlashAdvisor

Flash is a registered trademark of Adobe Systems, Inc.

13 users online