Help with a timer?

Here's what I want to do:
When the mouse is pressed (on mouseDown), set sprite.BlendLevel to a value (I know how to do this).
When the mouse is lifted, begin a timer. If the mouse has not been pressed after 30 seconds, the sprite.BlendLevel value changes.
(I want this timer to reset every time the mouse enters a mouseUp state. HOWEVER, it should not reset every frame update - ONLY when the mouse is first lifted.)
Basically, I'm making it so a touch screen app fades if it hasn't been touched for 30 seconds (with just one big sprite overlaying it at varying blend levels). That's all.
I can't wrap my mind around timers, so that's why I'm having problems with figuring this out.
Thanks for any help you can offer. I truly appreciate it. I feel like there aren't enough people out there working with Director anymore, so finding help like this is valuable.

Type this in your Message window, and then press Enter:
go movie "http://nonlinear.openspark.com/tips/sprites/TimerFade.dir"
Is that the sort of thing that you are looking for? It's currently set to trigger after 5 seconds, but you could use...
  the timeOutLength = 1800
... in line 13 of the Fade Behavior, to make it wait 30 seconds (1800 = 30 seconds * 60 ticks/second) before it triggers.

Similar Messages

  • Need help with new Time Capsule/Airport express setup!

    I just hooked up a 500g time capsule to replace an airport extreme, and now my airport utility on my MacbookPro Retina no longer recognizes the airport expresses I had on my network for airplay purposes.  Can anyone help with this issue?

    Instead of a switch you need a wireless router, because your modem will only assign one public ip address to the switch and that ip address will be forwarded to any one computer at a given time...You should replace the switch with a wireless router and it should resolve your concern...

  • Help with quick time video on iphone

    Received e-mail on iphone with quick time video.Will not play.Do I need to donload quick time on iphone or is there a app for that????

    Import it into iTunes and create an iPhone version. In iTunes highlight the video, then Advanced>Create and iPod or iPhone Version.  Sync this version to your phone.

  • Making a Quiz in Flash. Need help with input time

    Hi Flash Community,
    I'm making currently a quiz using Flash Pro CS5. What I want to implent is a time bar which will load once the bar is loaded it will go to the next frame.
    So what I need is first a timer which will start immediately when the user sees the question and I need a time bar which will indicate how far the timing is. So let's say you have 30 seconds to answer the quiz. When the timer is at 15 seconds the bar will be at half.
    Something like this http://www.google.nl/imgres?imgurl=http://theportablegamer.com/wp-content/uploads/2009/10/ question.jpg&imgrefurl=http://theportablegamer.com/tag/quizquizquiz/&usg=__xsykgRnehmB9P97 gg3W9tAx2Dfg=&h=320&w=480&sz=57&hl=nl&start=0&sig2=tdKlW2Iv6zHo3THsHwdVpQ&zoom=1&tbnid=ToM bL22o-D7BOM:&tbnh=107&tbnw=160&ei=aiz7TcGONI2gOpic0b4E&prev=/search%3Fq%3Dquiz%2Binterface %26um%3D1%26hl%3Dnl%26sa%3DN%26biw%3D1902%26bih%3D909%26tbm%3Disch&um=1&itbs=1&iact=rc&dur =317&page=1&ndsp=68&ved=1t:429,r:13,s:0&tx=100&ty=47
    Could anyone help me with this? How do I need to do this?
    Thanks!

    Create a movieclip with tween about 30 frames and actions stop() in the first frame
    AS3 code:
    import flash.utils.Timer;
    var timer:Timer=new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER,fn);
    timer.start();
    function fn(e:TimerEvent):void{
        trace(mc.currentFrame);
        if (mc.currentFrame==30){
            timer.removeEventListener(TimerEvent.TIMER,fn);
        mc.gotoAndStop(mc.currentFrame+1);
    AS2 code:
    var n=setInterval(mcfn,1000);
    function mcfn(){
        trace(mc._currentframe);
        if (mc._currentframe==30){
            clearInterval();
        mc.gotoAndStop(mc._currentframe+1);

  • Help with incrementing time (in excel)

    Hi!
    I need to find the difference between a start time and end time, calculate how much time has elapsed and divide that time period by a variable number of workers. (I have gotten that far with the formulas).
    Then I need to take the resulting minutes in that time period per worker, and add it to the start time, and that is where I could use some help!
    For an example, if the start time is 5:30 pm, and the end time is 6:00 pm, and I have 5 workers, I will get the amount of time per worker as 6 minutes.  How would I create a formula to add the amount of time per worker back to the original start
    time so that I can get a result of 5:36 PM?  

    Hi!
    I need to find the difference between a start time and end time, calculate how much time has elapsed and divide that time period by a variable number of workers. (I have gotten that far with the formulas).
    Then I need to take the resulting minutes in that time period per worker, and add it to the start time, and that is where I could use some help!
    For an example, if the start time is 5:30 pm, and the end time is 6:00 pm, and I have 5 workers, I will get the amount of time per worker as 6 minutes.  How would I create a formula to add the amount of time per worker back to the original start
    time so that I can get a result of 5:36 PM?  
    1. In cell A2 I have:-
    17:30:00
    2. In cell B2 I have:-
    18:00:00
    3. In cell C2 I have:-
    =(B2-A2)
    This displays a result of:-
    00:30:00
    4. In cell D2 I have:-
    5
    5. In cell E2 I have:-
    =(C2/D2)
    This displays a result of:-
    00:06:00
    6. In cell F2 I have:-
    =(A2+E2)
    This displays a result of:-
    17:36:00
    Does that give you what you want?
    The information above is in European time system (what Americans call, "military" time).
    If you are in the US just input the times in the formats that you would normally do and you should get the same results as I do except in AM / PM format.

  • Help with PC- Time Capsule direct ethernet connection

    First let me say that PCs are a total mystery to me - I am a Mac person all the way. That being said, I do own a PC for the occasional situation where I can't do what I need to do on a Mac (something that is happening less and less these days).
    I just got a TIme Capsule that I configured through my MacBook and which is working fine. I am trying to hook up my PC (which does not have wireless capability) via a direct ethernet connection. The PC seems to recognize that it's on a local network, but cannot connect to the Internet. I have tried going through the various network configuration wizards on the PC and nothing seems to be what I need. Help has been useless. Can anyone help give me some hints about what I need to do to get the PC to recognize that there is an Internet on the other side of the Time Capsule connection?

    I am still interested, thanks! Just couldn't get to things during the week. I am running WIndows XP Home Edition. I have to ask you to spell out things a little bit more. To start with setting DHCP - I am not sure how to do that. I tried using Help and it gives me nothing useful.
    When I run Network Connections I see a Local Area Connection listed. Type: LAN or High-Speed Internet. Status: Connected: Device Name: Broadcom 440x 10/100 Integrated Controller. Phone # or Host Address: <blank> Owner: System.
    Double click it, get Status: Connected, Duration: <counting up> Speed: 100.0 Mbps.
    Under Support, Connection Status, everything is blank (Address Type, IP Address, Subnet Mask, Default Gateway). This does not seem good. But I am not allowed to enter anything on this screen. If I click Repair, it says "Window could not finish repairing the problem because the following action cannot be completed: Failed to query TCP/IP settings of the connection. Cannot proceed. For assistance, contact the person who manages your network. (LOL - that would be me)"
    There's a control panel for the Broadcom Advanced Control Suite. The IP Address is 192.168.0.101. I don't see anything there about DHCP or TCP/IP.
    There's an "Internet Options" controller, where I found an Internet Connections Wizard, but that doesn't seem to do it. I say I want to connect to the internet using an ethernet connection, and then it says "Your broadband connectiion should already be configured and ready to use. If your connection is not working properly, click the following link. (Which is "Learn more about broadband connections"). This is a help page that sends me back to Network Connections (where I started).
    Nowhere have a found a place to set DHCP or addresses.
    Please, if you can, tell me where to look to adjust these settings. Thanks very much for your help.

  • Help with Quick Time on Iweb

    I'm wondering if someone will be able to help me. I'm new to iWeb and published an iMovie. When I publish to iWeb, the only thing that appears is the Quick Time logo. I'm sure that I must have done something wrong but I don't know what it is. The link is below.
    http://web.mac.com/conniefitzgerald1/iWeb/Site/Lu%20and%20Ron1.html
    Any suggestions would be greatly appreciated.

    I checked out your movie and it's already quite small. Making it much smaller is going to hurt quality. What we need to do is have it Fast Start at least so that people waiting for it to download will be able to see a part of it.
    Try the QuickTime export
    File -> Export
    Choose QuickTime
    Choose Web
    Click Share
    (save it to your desktop so it'll be easy to find for the next step).
    Then open iWeb and find that movie page, delete the movie that's there and replace it with the one you just exported. Post back once it's up and I'll take another look.
    (It should be just as straightforward as you think it should be, but the iWeb export has been found to be lacking as far as not being able to resize for widescreen video, so maybe it's not setting Fast Start as well).
    EDIT: And, just as I test a widescreen movie, it exports to iWeb just fine!

  • Any help with a Time Capsule install and Mac Mini server screen share?

    Installed a Time Capsule, now I can't access my mac mini server.  I see the files/folders, but cannot screen share with the mini from my macbook pro.  Any help?  Error below when trying to use the "screen share" button in Finder.  Macbook Pro and Mac Mini are using Mountain Lion 10.8.2.
    Connection Failed Error: Please make sure that Screen Sharing (in the Sharing section of System Preferences) is enabled on the computer to which you are attempting to connect. Also make sure your network connection is working properly.
    Please help, I'm really stuck on this one!

    Try removing the TC and see if the problem disappears.
    Screen Sharing has a checkered histroy looking back through the posts..
    https://discussions.apple.com/message/16026896#16026896
    There are many discussions about failing after changes in Lion.. I haven't seen the equivalent ML yet.. the TC may not be root cause, just the initiator of the problem.
    It could be the BTMM associated with the TC.
    https://discussions.apple.com/thread/4160415?start=0&tstart=0

  • I need help with this Time Capsule and External HD problem!

    my time capsule is working perfectly and i decided to hook up a seagate 500 external hd thru the usb on the back of the time capsule!
    well i can see both drives on my macbook and i can transfer files from my mac to both hd with a breeze
    one major problem i cannot extract files from my external hd only put files in! i tried checking the setting and everything but with no avail! anyone have this problem and how did they fix it? thank you!
    Message was edited by: aphextwin007

    Try connecting another USB storage device to the TC - HDD or memory stick. Format the device while it's connected to the TC, then try writing and reading to it.
    It does seem very odd that you can write to the HDD but not read from it. Presumably when you copy files to it they appear in Finder - you can see them OK? Do they appear to be the right size ("get info", or click in "columns" view). What exactly happens if you try to drag them back to the desktop?
    I can only think that you may have a hardware or formatting problem, hence trying a different, freshly formatted, drive.

  • Requesting help with a time/date synchronization problem--thanks

    I'm having a bear of a time trying to get my desktop outlook to synchronize with my 8820 blackberry. Running XP and Outlook from Office 03.  Date/time show correct on my desktop and on the device but, every time I synchronize, the calendar seems to get messed up with hour shifts on different entries. Sometimes I can see a time appear on the "details" screen when I'm synchronizing that is an hour off from the time that is on the device?  Any ideas? Many thanks.

    Sorry--meant to also say that I had reviewed the most recent similar thread on this.  In addition to both the PC and device having the right time, I did confirm both are set to the same time zone.  Really stumped on this one--thanks again.

  • Please help with first time PC build

    As a guy coming from a 8 year old 3,1 MacPro into PCs I need a bit of help evaluating all the different combinations when it comes to building a PC.
    I'm woking in CC mainly with After Effects and Premiere. In AE I'm working with Element 3D/optical flares, getting into some C4D.
    Premiere mainly with HD and Blackmagic cinema dng & prores. Working with some 4k Red footage. Additional CC applications but After Effects and Premiere are the main concern. Also, hoping to use Resolve, but haven't.
    I'm not going to be building it myself, there is a computer place that will be assembling and this was their suggested build with parts that they usually use with workstations along with some of my input from looking online. I think the vast amount of work they do is for gamers, and since I won't be gaming at all I want to make sure this is a solid work machine.
    Motherboard : 2011-v3 : ATX : X99S SLI PLUS : MSI
    CPU : Intel Core i7 5820K (6 x 4.0 GHz Overclock, 12 x threads)
    Case : ATX : No PSU : P70 Silence (Black) : Antec
    PSU : 750W : Smart Standard 80 Plus : SP-750PCBUS : Thermaltake
    RAM : Desktop DDR4 : 16GB/Kit : PC4-17000 : Crucial
    Cooling : CPU : Liquid : 120mm : Kuhler H2O 650 : KuhlerH2O650 : Antec
    Video Card : PCI-E : NVIDIA : GTX 970 : 4GB : ZT-90101-10P : Zotac
    HD : SSD : 250GB : SATA3 : Samsung 850 EVO (OS, Programs)
    HD : HDD : 2TB : SATA : WD2003FZEX Black : Western Digital (media, projects)
    HD : SSD : 500GB : SATA3 : BX100 Series : CT500BX100SSD1 : Crucial (media cache, previews, exports)
    I have a couple of 500GB 7200 seagate drives that were in my mac pro that I will probably bring over to keep photos, documents and other personal stuff.
    I have a 3TB caldigit vr raid that I'm thinking I can connect to the pc via esata
    As a potential extra I'm considering a 4TB backup drive where I can copy everything over incase of a drive failure.
    I appreciate any input, thanks

    Thanks,
    I've been reconsidering my build in light of what you said and I'm hoping you could look it over.
    PSU - EVGA SuperNOVA 850 - $174.99
    CASE - Fractal Design Define R5 - $139.99
    I'm still not sure about cooling. The R5 has 2 fans included, on on the back and one of the front. Is that enough or do I need another?
    CPU cooler - From what I understand I will still need a fan on the CPU and I've seen the Noctua NH-D15 and Cooler Master Hyper 212 EVO on other forums. Thoughts?
    I have no experience over clocking so I'm thinking I will just leave the CPU as is.  Correct me if I'm wrong but I've heard the 5820 is a better price/performance value than the 5930 so I'm thinking it's worth it to save the $250. Unless this CPU only makes sense if you OC
    CPU - i7-5820K Haswell-E 6-Core 3.3GHz- $469.99
    Motherboard - Asus 99-A - $334.99
    Originally I had the regular Crucial Ram picked out but It looks like the Crucial Ballistix Sport has a higher speed and is on sale for basically the same price. Latency is 15 for the regular and 16 for the ballistix? Is that the right call?
    RAM - Crucial 32GB (4x8GB) DDR4 2133 PC4-17000 - $449.99
    OR
    RAM - Crucial Ballistix Sport 32GB (4x8GB) DDR4 2400 PC4-19200  - $439.99
    Video Card - GIGABYTE GV-N970G1 Gaming-4GD GTX 970 - $449.99
    System Drive - Samsung 850 Pro 256GB - $194.99  2 of these one for system and another for media cache, previews, and exports.
    Am I forgetting anything?
    Thanks for taking a look

  • Help with Date/Time Field

    Hi,
    I'm very new at using Adobe LiveCycle Designer 7.0. For the past little while I've been using it to create a bunch of interactive forms. The only problem I've run into so far is a date and time stamp I've put in that is a Calculated - Read Only field. Only users with Adobe Reader and Professional can see this field. All other users with Adobe Standard can not see this field. Has anyone run into this same problem and know what I'm doing wrong?
    The field is using a Runtime Property for the current date and time, instead of a Calculation Script

    Thanks Niall,
    The format of date and time is fine. When I open the file up myself (in Adobe Professional, not Designer), the form looks great and when others who only have Reader can also see this form fine. For some reason, it's only people with Adobe Standard that don't see this field and this field only in the form. Btw, we are all running Adobe 7.0 currently, but have plans in the future (hopefully soon) to upgrade.
    Thanks again.
    Rowena

  • Help with transmission times over a 2 gig link.

    We are getting 2 GE links that we can etherchannel together between to sites that are across the state from each other. We need to transfer up to 55 terabytes across this link on a one time basis, and the normal latency of the gig link is 8ms.
    These two gig ethernet links will be connected to Gig ports on SPA-2X1GE modules on a 7600-SIP-400 blade in a 7604 router at both ends.
    Approximately how long will it take to move 55 terabytes across this 2 gig etherchannel? Can it be done over a weekend?

    Hi,
    One can do the math in various ways, but please consider, if there is a single host sending the data, only a single link will be used. This is because even with etherchannel, to prevent out-of-order packet arrival, one flow sticks to one link all the time.

  • Please can anyone help with a Time Capsule query?

    I'm setting up time capsule and a home network.  All the lights are green and my pc laptop has joined but my iPhone4, iPad and iMac haven't.  The iPhone settings tell me it has joined and the wifi indicator is there.  Any suggestions?  What have I missed?  Everything has been turned off and then turned back on again.  Thanks Moss and Roy!

    OK, thanks. I suspect that the cable modem has associated itself with your PC and is looking for it, not finding it, and not allowing the Time Capsule to connect.
    If this is the case, the remedy is this:
    Push the reset button on the cable modem and then power it off
    If there is no reset button, simply pull the power plug on the modem
    Pull the internal battery in the modem if it is easily accessible
    Leave the modem powered off at least 15 minutes, 30 is better
    Power off everything else on the network, all devices, order is not important
    Make sure that the ethernet cable from the modem is connected to the WAN (circle of dots icon) port on the Time Capsule.
    Start the modem (install the battery first if you pulled it) and let it run by itself for 3-4 minutes
    Start the Time Capsule and let it run a moment or two
    Start each device one at a time the same way until everything is powered back up
    Check for proper network operation.
    If still no luck, open AirPort Utility and click Manual Setup
    Click the Internet icon in the row of icons
    Settings should look like this on the Time Capsule if your modem has a single ethernet port:
    Connect Using = Ethernet
    Connection Sharing = Share a public IP address
    Update to save settings

  • Can You Help With Face Time Issue?

    I am in Milwaukee for the summer and my wife is in Los Angeles. We both have iPhone 4s. She uses a wifi connection that is 20 MB down and 2 MB up. I am on a much slower wifi connection that's 756 K down and 256 K up. We can face time each other but when we try to use the second rear facing camera (she showing me something in Los Angeles or me showing her something in Milwaukee), I can easily see what she shows me, but my stream to her freezes as soon as I switch cameras. Is this because of my poor upstream connection? Or is there some setting that we can change - or what??? Help appreciated.
    BTW, reception and bar issues no problem at all. Better connections sustained in all conditions than previous phones.

    I agree. You are trying to push megapixel video images through a 256K upload speed. The front camera is lower resolution so it's not overloading the upload speed like the rear camera.

Maybe you are looking for

  • How to maintain payment term descriptioin in other languages in TVZBT table

    Hi all, i have to maintain the payment terms in different language. For that, i am updating the table TVZBT by using TCODE SE63 in development sys. it has not asked any change request.but table is updated . so i can not move the changes to production

  • SOD Risk P003 and transaction F-44

    In the use of our version of SOD Rule P003, we are encountering SOD violations caused by access to F-44  from the AP01-AP Payment Processing functional group and various AP02-Process Vendor Invoice functional group transactions (such as F-42, FB60, F

  • Tags in Elements

    Just upgraded both PC and Elements 5 to 9.When I imported the picture files into the organiser in Elements 9, only a very small number of tags were imported. There were also only a few picture files in each imported tag as well, where there should ha

  • Content Type Description is not adding on list

    Hello I have some custom content type on site level and each content type I have different description. When I add content type manually  in existing document library, description is also coming for added content type. But when I add content type pro

  • Unable to install Java EE SDK Update 5

    I am not able to install Java EE SDK Update 5. When I run the installer, I am able to get to the "Select Installation Directory" screen. The Installation Directory is I:\Sun\SDK. When I click Next, nothing else happens. I have attempted several times