Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member ThePhoenix2006's Avatar
    Join Date
    Mar 2005
    Location
    Michigan
    Posts
    88
    Member #
    9431
    Hi All:

    Here is a question that might stump alot of people, but here it is anyways.

    I was wanting to find a script or something of that matter for Flash where I can have a background color that changes from one color to another from lets say 12am to 12pm and from blue to red or something of that sort. I know there scripts with the times to say Good Morning, Good Afternoon, or Good Evening but not sure if there are any for the color thing. If thats not possible my second idea was either a image of a moon or a sun.

    I hope someone can help me on this endless quest & Thanks in advance!


    .
    "Make sure the juice is worth the squeeze" ~The Girl Next Door

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Create a movie clip containing a black box filling the screen and use the colorTransform property to change it.

  4. #3
    Senior Member
    Join Date
    Mar 2004
    Posts
    241
    Member #
    5465
    I remember reading a while ago about how to convert a number into a color inside of flash. To test it, I made a movie with variables for the location of the mouse. I was able to change the color of a movie clip by moving my mouse around.

    I completely forget the code, but it is possible. In fact, you could get the clock time from getTime() or whatever it is, parse it into a number, or better yet, just take the hour. Then change the color accordingly.

  5. #4
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Something like
    Code:
    dt = new Date();
    hours = dt.getHours();
    if(hours >= 12)
       {
            // after 12 noon
       }
    Untested, but very doable.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com