ActionScript 2.0 :: Changing Background Depending Time Of Day On Site

Apr 13, 2009

I'm building a site that will change the background depending time of day. I do want to show the time in the top of my page. What are good codes for showing a time and date in Flash and what would I use to change background depending on if the time is past 7PM or before.

Example.
If the time is before 7PM I want it to show a background with a clear blue sky. If not then the background will be a starry night. I'm using CS3.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Changing Background Image Depending On Character Position

Nov 5, 2003

I'm making a game...and I want to change my background image depending on where the character is. I thought I would make a MovieClip...with all the different background images on different keyframes. My question is....can I use AttachMovie, and if so...how do I reference the particular frame that I want to...? I've never used AttachMovie before, and wasn't sure of the syntax...and how to reference it...to go to a particular frame.

View 1 Replies

ActionScript 2.0 :: Changing A Background Picture With The Time?

Mar 9, 2007

writing a code that will change a picture base upon the time.

i want to have a picture of the sun rising between the time 6am to 11 am

then from 12pm - 5 pm a pic of the ocean showing

from 6 pm - 10 pm- a pic of the sun setting...

then from 11pm- 5am a picture of the northern lights..


ohh yeah i have the time being called in a # from 1-24, = var = hour

idk if u can write if statments with a range of numbers . ex. if (hour > "range of time/#'s") ....

or have a shape in the backround and have it change as the time changes??

View 4 Replies

ActionScript 3.0 :: Changing The Cursor Type (or Not) Depending On Where The Mouse?

Jan 4, 2009

Ok, so I'm making a Myst-type game as a simple first application, and one of the things I need this to do is not have the arrow change to a finger when over a manipulable object. How do I either tell the program to change a certain cursor to another in a given context, or to keep it at default even in situations where
it would not be so (over a link, etc)?

This is probably a step beyond the questions I've asked so far in complexity but I'm sure you gurus are up to it. :)

View 3 Replies

ActionScript 2.0 :: Changing Frames Depending On Mouse Position?

Jun 8, 2004

I know this can't be to hard too achieve, but my actionscript skills aren't quite up to it yet.

- I have 5 frames within a MC.

- In this MC there is text saying "center", "left", "right", "up", "down" on each frame.

- All I want to be able to do is make the MC change to frame 3 "right" when my mouse moves to the right of the MC.

I know the script below is wrong, but would it go something like, this. Would I have to use angle and math or is there a simpler way to achieve this?

onClipEvent (mouseMove)
get x position
get y position[code]......

View 1 Replies

IDE :: Changing An Object's Size Depending On Mouse Position?

Oct 6, 2009

I have a button symbol on my stage that I want to change size depending on where the mouse is on stage. ie: the y position of the mouse will make the x and y scale change (the symbol should get smaller as the mouse moves up the page and larger as it moves down - as if it is getting closer or further away).

View 1 Replies

ActionScript 2.0 :: Changing Frames Depending On Mouse Position

Jun 8, 2004

I know this can't be to hard too achieve, but my actionscript skills aren't quite up to it yet.
- I have 5 frames within a MC.
- In this MC there is text saying "center", "left", "right", "up", "down" on each frame.
- All I want to be able to do is make the MC change to frame 3 "right" when my mouse moves to the right of the MC.

onClipEvent (mouseMove)
get x position
get y position
if statement x= > -180 and y=> 0 (something like that)
_root.myMovieClip.gotoAndStop(3)

View 1 Replies

ActionScript 3.0 :: Changing Link Position Dynamically Depending On Image

Jun 19, 2010

I'd like to make sort of gallery with previous/next buttons. And on each image you'd have circles/link over important parts of the image.So each image wold have these circles on different locations. Question: how can I make that dynamically? And that it's not to complicated for the editor of the site? One way would be to write in XML x and y positions.

View 0 Replies

ActionScript 2.0 :: Images Depending On Time?

Feb 7, 2004

what i want to do is create a site that knows what the time is in your area via your pc clock hopefully and depending on the time puts a different background image up e.g. night time = night picture daytime = sunny daytime pic

View 8 Replies

ActionScript 2.0 :: Change Sky Depending On Time?

Aug 24, 2006

changing a colour of something depending on the time on the system of the user?

View 14 Replies

ActionScript 2.0 :: Changing Color Of Movieclip Depending On The Current Url _root._url.indexOf

Jun 22, 2008

I`m trying to set-up a script that changes the color of a movie clip, depending on the current url of the page... My code is:

Code:
var link = "http://localhost/v-v/indexSRP.php?kategorija=";
var link2 = "http://localhost/v-v/index.php?kategorija=";
if (_root._url.indexOf(link + "3") == 0) {

[Code].....

View 5 Replies

Automatically Show Different Images Depending On Time?

Sep 23, 2009

I currently have a slideshow for my restaurant that plays all day, is it possible to have 3 slideshows that will play depenind on the time, lets say slideshow 1 plays fom 12pm-3pm, slideshow 2 plays from 3-4 and then slideshow 3 plays from 4 til 11pm?

View 6 Replies

ActionScript 2.0 :: Control MovieClips Depending On Time

Oct 25, 2005

I download a tutorial to make a digital clock now what I want to do is make my movieclips go to a different frame depending of the hour. I want to make that effect of day/night.

View 6 Replies

IDE :: Playing Different Flash Movies Depending On Time?

Sep 27, 2009

i have a flash movie that has a clock , slideshow and text scroller that plays all day in my resaurant. I want to change it so that it plays a movie with special offers in the mornings, then plays a movie saying we're reopening at 4.15 in the afternoon and then play another movie wit clock/slideshow inteh evening. How can i set my flash code to play these 3 different movies at the specified times automatically.

View 14 Replies

ActionScript 2.0 :: RGB Changing Is Working But Not Changing All The Time

Feb 1, 2006

basically when you load the .swf it changed everytime u re-load it , i want it to keep on changing even when the user hasnt reloaded the image

[Code]...

View 1 Replies

ActionScript 3.0 :: Scale Movieclip Depending On Time Elapsed?

Nov 4, 2009

I having a hard time on a small task that I thought was easy to accomplish, but it is taking me longer than expected and not the results I am wanting.I am developing a shooting game. I have a hero that can shoot only so often (once every half second for example). I am trying to scale a MovieClip depending on how much time is left to be able to fire again.

So when the hero shoots the gun, the MovieClip will have a scale of 0. When 250 milliseconds has elapsed, the MovieClip's scale should be at .5, assuming the gun can only shoot every half second.

Can anyone provide code on how to accomplish this? This is what I have to keep track of when the hero can shoot next,

[Code]...

View 1 Replies

ActionScript 3.0 :: Using Date Class To Change Alpha Of Object Depending On Time

Jul 7, 2009

I'm trying (and struggling) to get my head around AS3 and am building a flash webpage. I have 2 layers in the timeline, each containing a movie clip matching the page size with instance names backgroundDay and backgroundNight. What I'm wanting is for the background to change for the day and night, so that from 18:00 to 06:00 the alpha of backgroundDay becomes 0 to show backgroundNight behind.

View 5 Replies

Actionscript 3 :: Make Progress Bar Change Value With Specific Speed Depending On Time Cumulated?

Mar 4, 2012

I have a progress bar as a healthbar in a game. The healthbar regenerates 10 pr millisecond for now because i like the smoothness. But if the delay increases it would take a lot longer to regenerate.

Aren't there any formular to calculate some kind of factor for this? so the lifebar would regenerate within a constant time no matter what. If the delay is 2 seconds it would just make the regen more choppy and if delay is 1 millisecond it would just update more.

View 1 Replies

ActionScript 2.0 :: Changing The Function Of A Button Depending On Previous Button Press?

Mar 14, 2007

I'm loading in 5 jpegs from an external file using "loadMovie" and i have 5 corresponding buttons (1-5) to load them with.

I want to change the jpeg the button loads in depending whether a separate navigation button has been pressed -

i.e.

navigation buttons:

-motorbike pics
-car pics
-lorry pics

If a user clicked on "car pics" then the loading buttons 1 to 5 would load "car1.jpg", "car2.jpg" and so on...

similarly if the user clicked on "lorry pics", the same loading buttons 1 to 5 would load "lorry1.jpg" and "lorry2.jpg"

View 1 Replies

IDE :: Site Background Color?

Jul 8, 2009

Is there a way to change your sites background color by the click of a btn (without using a large mc bg)?

Also this would be on a noscale site.

View 2 Replies

Looping Background While The Site Still Functions?

Jun 22, 2009

Like I said in the title. I want to loop my background/a single element, while my people can click on the nav bar and look at stuff on the website.I attached what i was working on. The headphones will be fading in and out between a few different pairs. Mean while I need the nav bar fuctional and not changing besides when they click.

View 3 Replies

IDE :: Flash Site With Fullscreen Background

Oct 21, 2009

I just wana use a full screen background one that fills up the screen and not the browser controls that's not what I want. I mean like this: [URL].

View 6 Replies

ActionScript 2.0 :: Moving Background Navigation On Site

Aug 30, 2005

New to this forum, but was wondering if the moving background on this site [URL] is actionscript or just an animation. It looks very cool. I wanted to use the same effect for a school project I'm working on, I am using MX 2004.

View 4 Replies

ActionScript 2.0 :: Add A Random Background To Flash Site?

Sep 22, 2004

how I can add a random background to my flash site. This script should generate a random background everytime someone views my site... Exactly like this site: [URL] Visit it 2-3 times to see how it does it.

View 1 Replies

ActionScript 3.0 :: Scaling Flash Site With Changing Backgrounds?

Jan 20, 2009

I've been tasked by a client to make a scaling flashsite that changes background through the various pages. In addition some of the other objects need to scale to page as well.

[URL]

This is the page in its current form. The background and the buttons on that layer scale with the size of the browser window. But if you click "who is the Rabblerouser" the box with text opens and I'd rather that not scale or atleast scale to a smaller size. I realize its scaling because its on the movie that the action script is set to scale... so I don't know what the best practice is here. All of the example sites with scaling pages had one background

I still need to code a PHP mailer and put in a video when the client supplies it.

Here is the link to the FLA file: [URL]

View 0 Replies

ActionScript 3.0 :: Create A Scrolling Or Parallex Background For Site

Dec 22, 2007

I am trying to create a scrolling or parallex background for my site. This is a pretty popular effect and I cannot find code for it anywhere on the web. The ones I have seen is for AS2, have used the if statement. Also, do I have to create an invisible movieclip that goes over the whole stage so that AS know where x of mouse is?

View 92 Replies

Professional :: Can't Change The Colour To Match The Site Background As 1

Feb 11, 2010

I've created a banner ad (attached) for my company and intended to have it appear as a rectangle with rounded edges (transparent corners). It seems like I need to create a transparent border or mask to have my animated banner appear in this way.
 
Can I add a mask or a border to the whole thing just to make the rounded corners transparent and see the background colour of the site I'm putting it on?
 
Note: the corners are currently white. I can't change the colour to match the site background as 1. the banner will be shown in different places, and 2. the background is a gradient.

View 1 Replies

Can't Get Rid Of White Background When Flash Site First Loads Into Browser

Jan 25, 2010

I have tried changing background colour to Black #000 in all fields but the white background is still there before Flash shows up on the page.

I am embedding the Flash in a html page using CSS to have it align center middle. I think that's where the problem is.

Here is my html page code:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[Code]....

View 4 Replies

ActionScript 2.0 :: Embed Flash Site And Background Stretch?

Oct 14, 2009

Is there an easy way to make a fluid flash website? And where do you enter this code

Stage.scaleMode = "noScale";
Stage.align = "TL";
var introListener:Object = new Object();
introListener.onResize = function() {

[code]....

View 4 Replies

ActionScript 2.0 :: Background Flv Video On Star Trek Site?

May 30, 2009

This is other part to my earlier question that i posted before for those of you that came across it.Part 2: What i'm actually looking for is to do something similar to the Star Trek Movie website [URL]..for those unfamiliar. The bit that im looking for is a solution to achieve the full screen video background they have that simulates the user walking through the starship. Everytime you navigate to a different part of the website, this background video walks you through to another section of the ship.

I'm presuming its all flv, and i'm presuming its one big flv file divided into various "scenes", as the problem with having a seperate flv file for each "scene" is that it take a few seconds to load in between flv's and you get a blank white screen for a few moments (i've tried). Am i presuming the right method to go about achieving what they've done?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved