ello everyone…can anyone point to me how to change the bg color dynamically when we press the button as u can see here http://www.itworks.com.pt
hope someone can give a hint…tq… :ninja:
ello everyone…can anyone point to me how to change the bg color dynamically when we press the button as u can see here http://www.itworks.com.pt
hope someone can give a hint…tq… :ninja:
hmmm really nice transitions on that site, but I would think that its not changing bg colour dynamically, but through loadMovie with nice bg graphic in the loaded movie…
But, say u wanted to change the bg colour, you could make a new mc that covers the entire stage, give it an instance name of bg. then make a button, and put the following code on the button. This code will make it grey.
[AS]
on(release){
myColour = new Color(_root.bg);
myColour.setRGB(0xCCCCCC);
myMC.color
}[/AS]
ok…tq dr.ew for the reply…emm i’ll look it to…
Kirupa recently made a color tutorial that is pretty basic, but explains how to set up this effect. http://www.kirupa.com/developer/actionscript/color.htm
I was wondering if there is a small way to modify this, to allow the color change to be a transition between two colors, and not an instant change…
Does anybody have a clue as to how to accomplish this??
Couldn’t you just use
endcolour //or some equivalent as in end_x for movement
Im not sure what i could and couldn’t use, as i am an actionscripting bonehead… however… i found this thread by searching actionscript.org
http://www.actionscript.org/forums/showthread.php3?s=&threadid=25756
In the second post, there is some actionscript, as well as a neat little *.FLA file to download… it solved my problem…
just add the goto command to your buttons, then send it to the appropraiate frame label were there will be a movie clip that loads the backfround
hope it helps
:: Copyright KIRUPA 2024 //--