PDA

View Full Version : Changing Background Colour


ateale
02-28-2003, 04:59 AM
Hi Guys,

I'm fairly new to flash.

I am making a webpage, and am using flash to do it.
So far it is very simple. I have some text layers which move the playhead to different points in the timeline, using the actionscript goto...

I want to know if it is possible to have the background colour fade to different colours independant of where the playheaad is in the timeline?

Any ideas?

Thanks

AT

Billy T
02-28-2003, 07:04 AM
well you can't change the stage colour with actionscript but you could put an mc over the stage and change that

hamzaf
02-28-2003, 07:11 AM
hi,
you could make a big movie clip that recovers all the stage, and put it on the lowest layer (so that it doesn't hide your content).
and in this movie clip, you put the animation for when (for example) the background moves from red to white (using motion tween).
and when the user presses a button, you gotoAndPlay the big mc to the frame where you have your animation.

you could make the color fading by actionscript also if you want. here's a link to a tutorial on how to fade colors using actionscript:
http://ericlin2.tripod.com/color/colorBand5.html

hope this helps.
Hamza.