Day and Night background

I have made my website:
http://cpower.co.il
and I have to SWF's one for the day and one for the night. I
used a JS script to detect the user's
time and by that to activate the currect SWF but I find it
hard when I want to update the FLA of the day.FLA I have also to
update the night.FLA. Therefore, is there a way I can make that
detection of user's time using ActionSctipt in the FLA of so I will
have one FLA and in the preloading time it will detect the time and
by that will put the correct background?
Thanks.

var d:Date = new Date()
var t:Number = d.getTime();
You can also use: d.getHours(); d.getMinutes();
d.getSeconds();
Look up the Date class for further information.

Similar Messages

  • How to filter IN and OUT punch timings for Attendance in Day and Night shifts in oracle SP?

    I am developing Attendance system which having day and night shift I am unable to filter the IN and OUT punches of the employees? below is my current logic
    shift timings on 29-Jun-2013 IN 22:00 OUT 07:00 and on 30-Jun-2013 IN 15:00 OUT 22:30
    I am filtering the IN and OUT punches based on shift timings and swipe time along with date, but when the employee changing from night shift to day shift I am getting problem.
    the below is the one scenario
    the employee : 101 has worked on 29-Jun-2013 on night shift punched at 22:00 and he left at next day means 30-Jun-2013 07:00 AM and again the same day (30-Jun-2013) he came to office at 15:00 on 30-Jun-2013 and he left at 22:30 on the same day now if the punches will come daily then there is no problem, however due to any problem punches are not received for 30-Jun-2013 07:00 AM then the punches IN 15:00 OUT 22:30 on 30-jun-2013 already in database now the out punch of 29-Jun-2013 is 30-Jun-2013 at 07:00 AM it is difficult to find this as previous day out punch
    Note: some times the employees forgot to swipe IN/OUT punch
    so if any body have solution please update

    Like
    Employee ID
    Date
    Time
    PunchType
    Comments
    101
    29-Jun-13
    22:00
    IN
    101
    30-Jun-13
    7:00
    OUT
    If this row is not there & next row is with IN flag, the email should be triggered to employee
    101
    30-Jun-13
    15:00
    IN
    101
    30-Jun-13
    22:00
    OUT
    I have another scenario for you -
    Employee ID
    Date
    Time
    PunchType
    Comments
    101
    29-Jun-13
    22:00
    IN
    101
    30-Jun-13
    7:00
    OUT
    101
    30-Jun-13
    11:30
    IN
    how do you know it is not the continuation of 29-Jun shift? I believe you might have to define a rule here that if a person swipes IN say in n(4.5 in this case) hrs gap, it would be considered as Next Day
    101
    30-Jun-13
    22:00
    OUT
    Regards,

  • My phone keeps ringing at all hours day and night

    My house phone keeps ringing at all hours day and night.  It only rings once or twice.  If I pick it up the line is dead.  I think it might be from skype because I noticed a strange California area code phone number once and a friend said that was a phony number that skype uses to send out calls.  Can I find out who keeps calling me?  This is telephone harassment!

    I think you can try contacting your telephone service provider first for possibly more specific/accurate information.  Then if it is indeed a Skype number/call, you can submit a report to Skype.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Comparing HP to Toshiba is like day and night!

    Hi! I guess this is kind a like posting in the back woods. Not many visitors come here. I will post my message here, as it would probably get moved here any way.
    I was a register member on the Toshiba forum for a considerable time. I have a Toshiba laptop, but only until it starts having hardware problems and then I will purchase a HP. I have only been a member here for a short time, but I can see the difference between HP and Toshiba is like day and night. Not only is HP a better product, the support is 100 times better than the support for Toshiba. There are more smarter and qualified people helping on this forum by far. There are maybe 3 members on the Toshiba forum that have any computer skills and the moderators seem to want it that way. I can see that the hp products are improving every day and so is the HP support here on the forum.
    You're doing very well in my books HP. Keep up the good work. I recommend you to all the senior citizens in my Village. I felt like I had to post this message on the HP forum even though i doubt if many will see it.
    Thanks HP!
    Dokie!
    I wish Google would pick this up and post it on the internet. That would make old Dokie's day.

    Dokie thanks for the nice post and thanks for the words of encouragement.
    - I worked for HP.

  • Youtube Slow in the day and night.

    I've had the fios package for about 3 months now and i've got the Westell router not the Actiontec. For the first couple of months youtube videos have loaded very fast to my satisfaction, but up until now for about 4 weeks and going, youtube videos have been stopping to buffer every second, even the crappy quality videos.
    But the thing is its happening during the daytime and night time until 10 pm, after that the videos load extremely fast. But admittedly I have never stayed up to see when the slow down begins again the next day.
    So what do you fellow fios users think is the problem.

    actually that is one of the things that Verizon has going for it above other companies. They dont content filter.
    That is why tracerts are so important. they tell us where the possible bottlenecks or slowdowns may be occuring. In the case of MarkyMark there, the tracert told us that the problem is between the computer and router. We know with a great deal of certanty that the problem is one of 3 things, computer, cable, or router.
    Now for Markmc, we would need a tracert from you as well before any determinations can be made. Since both you and your friend are having similar issues with youtube, it could be a Verizon issue, or it could be an issue with a youtube server, or it could be a router inbetween Verizon and Youtube. A tracert would give us somewhere to start. I can connect to youtube just fine so it is likely to be an issue in your regional area. But it likely different than the one experianced by MarkyMark as his is a problem inside his house.
    Message Edited by spacedebris on 08-19-2009 09:59 AM
    ====================================================================================
    Error exists between keyboard and chair.

  • My Iphone 4 32GB started having this issue when I downloaded the 2 last 6.1.X... VOICE CONTROL pops-up even when I sleep and calls random people just by the sound of the snoring... in FACETIME even more annoying. I confirm that it does this day and night

    My Iphone 4 32GB started having this issue when I downloaded the 2 last 6.1.X... VOICE CONTROL pops-up even when I sleep and calls random people just by the sound of the snoring... in FACETIME even more annoying. I confirm that it does this day and night

    Turn off Voice Control.
    Otherwise, basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).

  • Mountain Lion update continues all day and night.  How do I finish it, or stop it?

    this "update" (2013 003 1.0) continues days and months now.  I can't get it to stop.  Can't use ITunes because of it.  Can't turn off the machine (Mac) because of it.  Got any suggestions?

    Never mind, I see it's Mountain Lion.
    Can you check in your Applications Folder to see if the installer is still there. You are confused on some things, because the installer should be giving you a DOWNLOAD text on the purchases page, not install.

  • How to Compare day and night based on current time

    Hi,
    Day starts 08:00 -18:00(start time-end time)
    Night starts 18:00-08:00(st-et)
    for day it's easy I compare current time between st and et in logs table.
    for night if I use the same the process it falls after midnight coz current time is not in between st and et. 
    Example : 00:00 between 18:00 and 08:00.
    To over come above I stared comparing with datetime.
    for day it's fine.
    for night , it inserts one log at 18:00 and updates till 23:59, after 00:00 it's not updating and adds new record then problem starts.
    can anyone give me some idea how to handle this please?
    Cheers :)

    create table #t (st time, et time)
    insert into #t values ('08:00','18:00')
    insert into #t values ('18:00','08:00')
    declare @time time='00:00';
    select st, et from #t
    where case when @time='00:00' then '23:59'
    else @time end >st and et< st
    or @time between st and et
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I have an ipad wi-fi cellular 32gb. Died in march after 3 month has been replaced now the replacement has died, holding home key and button on top doesnt work at all,  not even if left over night and the next day and night, still nothing.

    I was given a ipad after xmas 2012. Within a month it was freezing up and returned to apple to replace. It was sent straight back to me saying it was fine. The day I got it back it was faulty again only this time it was worse, it was switching itself off and turning itself back on when it liked. A back up and restore was completed AGAIN. 3 weeks later it was sent straight back to apple to be replaced, this time a higher authority from apple in brisbane said it was to be replaced immediately. Which it was. Then within 6 weeks this ipad the replacemetn ipad has started having issues by turing itself off. Now it has completely shut itself down and off. Charge was at 81%. I put it on charge as maybe the %% was wrong. A few hours later, tried turning it on by holding top button, nothing happened  I have also held down top button and home key for 10 sec, nothing so I tried longer nothing happened. Rang apple support and they have suggested holding top button down for 10 sec then add home key for 10 sec both top button and home for 10 sec then they top button off followed by leaving home key for 10 sec by itself. This did not work. I have tried this again this morning and again at lunch at work and again now tonight. Still nothing at all. Even plugging it into the computer doesn't do anything at all. Has anyone else come across this at all with two ipads doing exactly the same thing. My power points are fine, I've had an electrician check them and my computer is fine aswell. I stumped as to what can be going wrong. Thanks

    Is your battery dead or alive?
    If the battery is dead, we must find out if it is:
    1. Charger problem
    2. Cable problem
    3. Docking port problem
    4. Wall socket problem

  • HT201401 How to stop iphone from calling people randomly day and night

    My phone keeps going to voice control and calling random people nigh ad day ań idk how to fix this can u guys plz help me

    Standard troubleshooting...
    1. Remove apps from the Recently Used (multi-tasking) list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    2. Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    3. Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    4. Restore with your backup.
    5. Restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • I've been trying to reach someone online to chat for days now, at all times day and night, but the message always says that all agents are busy...All the time?  I want to find out why I should continue with Verizon when Sprint can offer me $50/month with

    How can you get anyone from Sprint to respond? They're never available online to chat, and there is no place to send an email message....

    I'm sure you meant Verizon not Sprint. Even if you got a hold of someone what do you expect to happen? CS reps do not have the power to lower pricing or offer you any special rates. CS reps can't say "Well we'll give you $20 off and double your data to keep you form leaving". It doesn't work that way. Your options are A) stay B) leave

  • I shut my iphone off over night and tried to turn it back on the next day and it would not turn on... or charge or anything.....anyone know what causes this..or what happened??

    pleas help me out my iphone 5c is only a month old...i shut it off over night and went to turn it back on the next day and it wouldn't turn on or charge or anything.....

    Plug it in to wall power.  If it doesn't automatically come on within 15 minutes, try a Reset... press the home and sleep/lock buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.  You might need to hold the buttons for as long as a minute.
    If it still doesn't turn on, you likely have a hardware problem.

  • Lion Recovery (Command R- reinstall Lion) Says 148 hours after being on for one day and over night

    I accidently deleted some file on my computer that wouldn't let me start up my MacBook pro, 13 Inch, so I had to press Command- R at start up (brought me to Lion Recovery) and I choose reinstall lion and I started it yesterday morning and all day and over night. It's barely half way through and it says "148 Hours Left" which is crazy.. Should I just wait? is this normal? what do I do? Pleasee help someone!

    It seems Apple is having problems with there servers or you have a Very Slow Internet connection. Best is to let it run as you can't use the computer anyway without the files you deleted.
    There are reports of other that can not even get to the Lion download or any downloads for updates and such.

  • I was wondering how to get my background back? it just quit on me one day and I can not get it back, I was wondering how to get my background back? it just quit on me one day and I can not get it back

    I was wondering how to get my background back? it just quit on me one day and I can not get it back, I was wondering how to get my background back? it just quit on me one day and I can not get it back

    explain further please...
    Is this your problem?
    Program, Utility, Desktop picture, Screensaver won't open or save changes
    https://discussions.apple.com/docs/DOC-3046
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • HT1339 My iPod classic shows that memory full in "other" category however there is nothing on it. I have left it connected all day and over night trying to restore it but the progress bar  never goes away.

    My iPod classic shows that memory full in other category however there is nothing on it. I have left it connected all day and over night trying to restore it but the progress bar  never goes away. Is it shot or are there other options to restore to factory settings?

    Hi pbworth,
    When troubleshooting issues with iPod classic, it may be helpful to place the iPod into Disk Mode. For information on how to do so:
    Putting iPod into Disk Mode
    http://support.apple.com/kb/HT1363
    Thanks,
    Matt M.

Maybe you are looking for

  • DVD player Tempo link doesn't work

    Toshiba Tempo advised me that a new DVD player driver was available dvdpl-20070807102909.zip but the link just will not work in Internet Explorer. The link is http//www.download1.stage.toshiba.eu but I get a message that Internet Explorer cannot find

  • Messages in Bex Analyzer

    Hi Unlike the WAD solution for BI-IP, the BEX Analyzer front-end does not give proper messages. We inserted the message item but the End user does not get error messages even the planning is locked or the infoprovider is not active. Does some of you

  • Updates not showing up in "updates in last 30 days" list

    I just updated the iWork apps pages and numbers, 8/21, but they are not showing up as updated in the "updates in the last 30 days" list.  I have seen this happen before but I don't understand why some app updates show up there and some don't.  Also,

  • Hp photosmart 1218 driver for windows 7

    Hp photosmart 1218 printer driver for windows 7. This question was solved. View Solution.

  • I have two problems I would like to announce:

    Good day. I have two problems I would like to announce: 1- I have several websites that I have done to my clients and when you put a slider conveyor show to java no pictures only the data for each are appreciated, but in chrome or explorer if you loo