dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: different page for different times?

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    7

    different page for different times?

    i'm making a flash site and i'm wondering if there's a way i can have a different backround for different times of the day

    for ex: in the mornin it is cloudy, afternoon- sunny. at nightime-there are stars

    is there a way to do this in flash?
    --or html, programming?


    thanks

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    A background movie clip that changes frames according to time of day... Sure it's possible.

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    7
    Is this code correct/would it work for my purposes?
    Code:
    hours = instanceName.getHours();
    //haven't thought of a instance name yet
    	if (hours >=3 && hours <= 11)
    		//load backround A
    		//how do I load a backround?
    	else if (hours >=12 && hours <= 4)
    		//load backround B
    	else if (hours >=5 && hours <= 3)
    		//load backround C
    How do I load a specific backround and how do I differentiate between AM and PM?
    Last edited by jettpinc; 01-28-2004 at 11:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center