Play when time come's up

I need your help with next script. I get a good digitaltimer
script but I need to play a movieclip when 3 passes using the
digitaltimer script.
The digitaltimer script is:
//initial variables
var timing:Boolean = false;
var paused:Boolean = false;
var remaining:Number;
var elapsedTime:Number;
var elapsedHours: Number;
var elapsedM:Number;
var elapsedS:Number;
var elapsedH:Number;
var startTime:Number;
var remaining:Number;
var hours:String;
var minutes:String;
var seconds:String;
var hundredths:String;
_root.play_btn.onPress = function() {
if(!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
//start timer
_root.paused = false;
_root.timing = true;
_root.stop_btn.onPress = function() {
//stop the timer
_root.timing = false;
//reset the paused variable
_root.paused = false;
//reset the display textbox
_root.timer_txt = "00:00:00";
_root.pause_btn.onPress = function() {
//only pause if the timer is actually going
if(_root.timing) {
_root.timing = false;
_root.paused = true;
_root.onEnterFrame = function() {
if (timing) {
//calculate values
elapsedTime = getTimer()-startTime;
//hours
elapsedHours = Math.floor(elapsedTime/3600000);
remaining = elapsedTime-(elapsedHours*3600000);
//minutes
elapsedM = Math.floor(remaining/60000);
remaining = remaining-(elapsedM*60000);
//seconds
elapsedS = Math.floor(remaining/1000);
remaining = remaining-(elapsedS*1000);
//output to text box
//add a 0 on the front of the numbers if the number is less
than 10
if (elapsedHours<10) {
hours = "0"+elapsedHours.toString();
} else {
hours = elapsedHours.toString();
if (elapsedM<10) {
minutes = "0"+elapsedM.toString();
} else {
minutes = elapsedM.toString();
if (elapsedS<10) {
seconds = "0"+elapsedS.toString();
} else {
seconds = elapsedS.toString();
_root.timer_txt = hours+":"+minutes+":"+seconds;
The script for playing movieclips is:
clip.stop(); //clip is the name of the movieclip
button.onRelease = function(){ //button is the name of the
button, this script works when the button is released
animation_mc.play();
I need to make the above script to work when 3 seconds passes
or let's say when
elapsedS=3
THX

That's because you can't downgrade.

Similar Messages

  • I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • After effects running prerendered @ 17 FPS and fluctuating up to 20 when it should be playing @ real time.  After effects 2014 CC  , brand new Mac pro strapped 10.10.1

    I have this on both machines running 10.10.1 OS X and AE 2014.  I see on line that others are having this issue.  I think it needs a Patch ASAP. 

    Hello.  Basically I can create a  new comp  that is set to 1920 x 1080, @ 30 frames per second for 1 minute TRT.  I create a new solid layer, say red.  I hit space bar or play on the screen,  and it does not play in real time.  ITs on my Imac as well.  same OS and Same Version software. 
    After effects running prerendered @ 17 FPS and fluctuating up to 20 when it should be playing @ real time.  After effects 2014 CC  , brand new Mac pro strapped 10.10.1
    created by Dave LaRonde in After Effects - View the full discussion
    Well, before you hit the panic button, why don't you tell us precisely what you're doing when AE plays at 17fps -- the keys you hit, the buttons you click to begin play.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7102588#7102588 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7102588#7102588
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in After Effects by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.
    Geoffrey M. Wetzel
    [email protected]
    [email protected]
    302.353.0798

  • My iphone will not revert back from silent mode. It will play when i am scrolling through ringtones but when a text or incoming call comes in all it does is vibrate. Anyone having this issue??

    My Iphone will not revert back from silent mode. It will play when i am scrolling through ringtones but when a text or incoming call comes in it just vibrates. Anyone having this issue??

    I have the same problem with my iPhone 5c after update to iOS 8 every time i have to restart my phone to solve the silent issue

  • My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    Genius reservation http://www.apple.com/retail/geniusbar/

  • TS1424 I ve downloaded a song, and when it plays no sound comes out

    I downloaded the flo rider song I cry and when it plays no sound comes out however other songs I ve purchase do play please help

    Will the media file play with Quicktime Player? If it will then it's an iTunes issue. If it won't then you need to delete the file and download it a second time.

  • I'm confused about sound on my iPad 2. I know it has speakers and it makes sounds for notifications, etc. But when I play the Time Warner TV app, there is no sound. Do I need to buy speakers or headphones?

    I'm confused about sound on my iPad 2. I know it has speakers and it makes sounds for notifications, etc. But when I play the Time Warner TV app, there is no sound. Do I need to buy speakers or headphones?

    Here is my situation, iPad 1 Time Warner app works fine with or without headphones, ipad2 I can unplug headphones and it works but when headphones are plugged in I can barely hear it even cranked up, my husbands ipad2 works fine with both so what that tells me is that there is something physically possibly programmed differently.  It really makes no sense.  I might just take my ipad2 back and swap it out.  It is weird all the other sound through the iPad comes through on headphones and speakers fine.  You are not alone with your time Warner app sound issues.

  • I bought my mac with iMovie in it when it comes time to upgrade it, it doesn't let me upgrade and says to sign into the account I bought it with, but it already came included when I bought it from the apple store. How can I upgrade it?

    Like I said when I bought my mac in the apples store, iMovie was already included. When it comes time to upgrade it, it won't let me and it says to sign into the account I used to purchase it. But I didn't purchase it, it came along with the computer. How do I get it to upgrade?

    Try opening the Mac App Store and go to the Purchases tab. See if you see the preinstalled iMovie App there. You may have to accept it into your Apple ID if you have not done so already. Then it should upgrade.

  • I have purchased and began to download music several times.  While i is downloading iTunes quits and when I come back to iTunes my account has been charged and my songs have not been downloaded? How do I get my songs?

    I have purchased and began to download music several times.  While i is downloading iTunes quits and when I come back to iTunes my account has been charged and my songs have not been downloaded? How do I get my songs?

    Hi there Angel T,
    You may find the articles below helpful.
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    -Griff W.

  • When I click on an article to read in yahoo news,why does the timer come on and the message" mozilla firefox not responding"?

    When I sign out of e-mail, go to yahoo news, and select an article to read, The sidebar will not go up and down to read the article and the timer comes on for quite some time.The message "mozilla firefox not responding. This has been going on for quite some time. Thank you

    hello, please try if you can resolve the issue by resetting firefox (this will keep your bookmarks & passwords): [[Reset Firefox – easily fix most problems]]

  • What will happen when the time come?

    I have upgrade eligibility so when the time come iphone will be available on the list of phones that I'm eligible for upgrade? Is the iphone just gonna appear on the list of phones to purchase on the website?

    Login into MY Verizon....go to your upgrade line, and you will see i buy iphone button... 

  • Every time I turn the computer off or put it in sleep mode... when I come back my wallpaper is gone. I have to keep going to my pics and getting it back. Does anyone know why this keeps happening??

    Every time I turn the computer off or put it in sleep mode... when I come back my wallpaper is gone. I have to keep going back to my pics and getting it back.
    Does anyone know why this keeps happening??

    Are you choosing it from one of these folders (in my screenshot) or you can also put that picture into the correct folder. The path is:
    HD > Library > Desktop Pictures
    If you add it to the folder manually, please restart your computer.
    And yes, letting it sleep is a good idea, or else the startup disk will spin and the screen may suffer from image persistence if you leave a window or image parked in the same spot too long, so the screensave is a good idea.

  • HT1657 After downloading a film rental in itunes, a when pressing Play, following message comes up: We could not complete your Itunes Store Request, an unknown error -42110 has occured

    After downloading a film rental in itunes, and when pressing Play following message comes up: We could not complete your Itunes Store request, -42110 an unknown error occured

    Perhaps try the "Error 3001," "-42110," or "5103" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • When I come from outside and press the home button to turn my iPod on, there is white, light blue and red lines but it is transparent enough that I can see my background, time, etc. It hasn't been water damaged, so that cant be the problem.

    When I come from outside and press the home button to turn my iPod on, there is white, light blue and red lines but it is transparent enough that I can see my background, time, etc. It hasn't been water damaged, so that can't be the problem. I was thinking maybe it is just because of the cold but, I don't like having my iPod doing that whenever I come back from the cold. However, I was in class too and this problem happened but it was inside! So I am very worried, I have dropped my ipod a few times but it hasn't fallen that hard to effect it.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • TS1362 just purchased new cpu ,windows 8 recieved new updates and now I Tunes not play when play button hit.nothing happens??Rsvp please .time is fleeting:)

    just purchased new cpu ,windows 8 recieved new updates and now I Tunes not play when play button hit.nothing happens??Rsvp please .time is fleeting:)

    RealPlayer can cause conflicts with Flash Player because it tries to assign EVERY TYPE of video or audio file to itself by default. I haven't used RealPlayer in years for that reason. It's an unnecessary program anymore. There are apps loike VLC media player that cna do EVERYTHING it does without conflicting with other apps like Flash Player.
    With WIndows 8, Microsoft began embedding FlashPlayer themselves into Internet Explorer. Because of that, you cannot download and install it from here. You cannot uninstall it from Internet Explorer without removing a specific Windows Update first. And you cannot update it via this website. ONLY through Windows Update can Flash Player for Internet Explorer be updated.
    That said, you probably DON'T have a virus that's causing the problems with Flash Player and Internet Explorer. Many, many websites are not "recognizing" the browser.
    This is a known problem with Internet Explorer 11, which Microsoft has been aware of since October 18 when they released IE11 The pages can't recognize the browser, so they don't recognize any of the plugins, like Flash Player.
    So far, Microsoft has made NO indication that they have any plan to fix it soon.
    Microsoft's recommendation is to use Compatibility View for affected pages, and "pretend" you're using an different browser. Trouble with that is it has seen limited success at best, and you have to individually enable it for EVERY page that has problems.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

Maybe you are looking for