Colour Slider
Hey people
I saw on a website, that there was a colour slider, that changed the colour scheme of the hole site...i think its the same you do in photoshop, with a whole picture...but so far, i've only found something to change backgrounds, so i hoped you could help me out of this one. if you have a link to an easy tutorial it would be great...
Thanks
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 08-12-2003, 01:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
16 Bit Colour Mode Problem With Alpha Fades On Colour
Please help me out. I have tried many other forums and people, but no one can give me an answer. Hopefully you can.
Have a look at a site I designed for a school.
http://www.brineleas.co.uk in 32-bit mode this is great, now try 16 bit colour mode and you will see my problem.
Please help if you know how
Trev:
Colour Picker / Colour Transform
Hi...
This query has been bugging me for a little while, and it may be easy to answer, I don't know.
I'm using a fairly simple colour transform script to change the tint of a mc...
code:
myColor = new Color(_root.bgdvideo);
if(!ccc){_root.bgdvideo.setRGB(0x990000);
}else{
myColor.setRGB(ccc);
}
MovieClip.prototype.beginFade = function(dstX, durationOfFade) {
this.myColor = new Color(this);
this.srcX = this.myColor.getTransform();
this.dstX = dstX;
this.startOfFade = getTimer();
this.durationOfFade = durationOfFade;
this.onEnterFrame = function() {
var r = (getTimer()-this.startOfFade)/this.durationOfFade;
if (r>1) {
r = 1;
this.onEnterFrame = null;
}
var tX = {ra:this.srcX.ra*(1-r)+this.dstX.ra*r, rb:this.srcX.rb*(1-r)+this.dstX.rb*r, ga:this.srcX.ga*(1-r)+this.dstX.ga*r, gb:this.srcX.gb*(1-r)+this.dstX.gb*r, ba:this.srcX.ba*(1-r)+this.dstX.ba*r, bb:this.srcX.bb*(1-r)+this.dstX.bb*r, aa:this.srcX.aa*(1-r)+this.dstX.aa*r, ab:this.srcX.ab*(1-r)+this.dstX.ab*r};
this.myColor.setTransform(tX);
ccc = this.myColor.getRGB();
};
};
I know you have to change the ra, rb, (etc) values to alter the colour which you get (as in)...
code:
_root.bgdvideo.beginFade({ra:50, rb:204, ga:0, gb:0, ba:50, bb:255, aa:100, ab:100}, 1000);
...but I wondered if anyone knows a trick / way to find out the values you'd put in for (ra, rb, etc) to get a particular colour, rather than just aimlessly playing around with different values until you get the desired colour fade you want (which takes some time for me!)
Cheers
Jeff
*sorry if this is a dumb question...
A Colour Palette For Colour Matching
I'm new to actionscript and trying to creating a pretty simple colour palette which can let users to choose up to 8 different colours. First of all users will be presented with a range of different shades, and each time they choose a colour it can be saved to a movie clip, so finally they will have all 8 movie clips showing all the colours they've chosen.
The way I do is create a movie clip that contain all the colour shades in the palette in different frames. Then make 8 copies of it and give them different instance names. When the user come to select a colour then the movie clip will change to that colour, keep it, then the other colour will go to the second movie clip... and so on... I've tried different ways to simulate the saving function but it still doesn't work (one of them is using if / else statement on the button and declare different Number value on the movie clips)
Pls bare with me if my explaination is not clear... but any help will be greatly appreciated!! Pls tell me if you got idea how to do it or any similar work that you've done. I can also email / msn the file if you wanna have a look. Thanks in advance!! vinkc@hotmail.com
Slider To Scroll Thumbnail Mc W/ Buttons Inside...onRollover Text Moves With Slider
I'm using a slider to scroll a movieclip made up of thumbnail images that are buttons. When I put my mouse over each button, I want it the image to change from black and white to color, and for a text description to appear in one fixed location on the main stage. Right now the image change to color is working, and the text appears as well, BUT the text scrolls as well, since it's within the scrolling movieclip. I want the text to appear static at a fixed location of: x=-947 and y=65. HELP!!!
It should look similar to: http://www.ehdd.com
Here's my code:
for my movieclip:
onClipEvent (enterFrame) {
_root.scrollMC._x = -.295*(_root.slider.b);
}
for my slider (set to scroll along "path"):
on (press) {
startDrag(this, false, 4, 270, 802,270);
}
on (release, releaseOutside) {
stopDrag ();
}
onClipEvent (enterFrame) {
a = new Object();
a.y = this._y;
a.x = this._x;
_root.path.globalToLocal (a);
b = int(a.x*2);
}
Slider In Reverse - Typed Text Makes Slider Move...help?
http://www.kirupa.com/developer/mx/slider.htm
Great tutorial...thanks by the way
But I was just wondering if anyone knew how you would go about doing this kinda in reverse? In that you type the percentage number in the text box and the slider moves up to that number?
Thanks in advance for your help
Slider Menu - Resize Slider And Change Btn Color
Hi there,
I am using code from http://www.kirupa.com/developer/mx20...ith_slider.htm. and
I found how to make slider smaller or bigger in this forum but I don't know what wrong of my buttons. The width of the slider is not same as all buttons. It looks smaller and on the right more.
Actually, I would like to make the same slider menu at <A href="http://www.grouplotus.com/grp/">http://www.grouplotus.com/grp/. Their buttons can change color even mouse out. Could you or someone else can teach me how to do that?
my flash file
http://www.halfuncorner.com/flash/btn.swf
http://www.halfuncorner.com/flash/btn.fla
many thanks,
jo
Fade Slider Not Image Slider HELLLP
i am trying to bulind a slider to fade btween 3 image Image 1(Past0, Image 2 (Present), Imag2 3 (Futher)
info
Image 1 is Constant as it is the base layer
Image 2 is Variable inatly set at 100% Alpher (middle LAYER)
Image 3 is Variable inatly set at 0% Alpher (top LAYER)
i want the slider to star off in the middle posing an image 2 100% and image 3 is 0% and when the slider moves left Image 2 alper will go down revlling image 1, and when the slider moves right i want Image 2 to remain a 100% and image 3 to go from 0% to 100%
can any on help
thanks blue
Slider Wont Work For My Menu Slider
i tried following this tut on a menu slider http://www.kirupa.com/developer/mx20...th_slider2.htm, but I cant seem to get the slider to work, whenever I test the movie the slider just slides to the left corner and than doesnt move after that. anyone know what is going on or have any advice??
i posted my swf file to show you and then the fla file if anyone actually wants to see everything.
Im kinda new to flash so I obviously dont know what is wrong. Any help would be very appreciated.
Slider Menu - Resize Slider And Btn Color
Hi there,
I am using code from http://www.kirupa.com/developer/mx20...ith_slider.htm. and
I found how to make slider smaller or bigger in this forum but I don't know what wrong of my buttons. The width of the slider is not same as all buttons. It looks smaller and on the right more.
Actually, I would like to make the same slider menu at <A href="http://www.grouplotus.com/grp/">http://www.grouplotus.com/grp/. Their buttons can change color even mouse out. Could you or someone else can teach me how to do that?
my flash file
http://www.halfuncorner.com/flash/btn.swf
http://www.halfuncorner.com/flash/btn.fla
many thanks,
jo
Volume Slider -- How Do I Center Slider?
http://www.kirupa.com/developer/mx/volume_slider.htm
Using the tutorial above, the volume slider always starts at the left end which is starting to become annoying because you always have to move it in order to listen.
How can I place it in the center? I've attempted just dragging it in the middle while editing, but the file ends up not working.
Slider Stop Outside Slider ( Hm...?)
hi,
please help....or give me some tips...
i work with flash mx and have a problem with my slider
i want the slider to stop when my mouse leaves the slider...
if possible also when i click on a button.
greetings
rancune
sliderproblem.fla
When Is A Web Colour Not A Web Colour?
when it's in flash apparently.
what's going on with the colour shifting?
how do i get around it?
and why is it when i import an alpha channel (.png)
it actually has a really light background?
what can i do? this looks really lame now.
please help.
Colour Fx
How do you get colour effects like Fire and Sky on Flash?
Colour ?
Hello ,
How do you have a picture or a button that when you move the mouse over it ,it changes colour , like it goes brighter or darker or it fades away.
Colour
and now that we have buttons and scripts floating all over the place, where on earth would you start writing a script to change the colour/alpha of the second movie clip when you curser over the first ???
drive me round the twist this flash stuff : )
Colour Changes By Day
Hello all,
I'm new to the forum - thanks in advance for any help.
I have an idea, but so far that's all it is.
I'd like to have a flash animation, with my logo, a small animation and...
I'd like the background of the flash file to change depending on what day of the week it is.
E.G.
array
If today = Monday, background colour = blue;
" " = Tuesday, background colour = green....
and so on.
Any help is much appreicated.
After that, I'd like to do the same with Javascript, but thats for another section.
Dan
Get Colour At X And Y
I am wondering if it is possible to get the colour of a pixel at the mouse coordinates. I tried using BitmapData but I can't seem to get that to work. The colour data I want is on a MovieClip and I'm not sure if BitmapData supports that. Any help is appreciated.
AS Colour Changes.
I need to be able to change background/object colour/tint with keyboard inputs.
I have already figured out the AS for making keyboard input change the alpha of a given object at various increments, but now i need something similair with the colour of an object.
Is there an AS way to do this? Or am i going to have to setup a network of variables and movie clips?
Cheers
Colour Help
this wokrs just fine for me, but i can't change the 8 digit color there as I wish. Like; i cant make it white, or any specific color. I've tried " couleurCadre='#FFFFFF'; as in Java, but not working. here : couleurCadre = 90000000; this 90000000 is some kinda dark blue, I can make it black but not white. please help :)
onClipEvent (construct)
{
cheminPHP = "php/size.php";
cheminPhoto = "/";
couleur = 0;
couleurBar = 16777215;
couleurText = 16777215;
couleurCadre = 90000000;
alphaCadre = 100;
speed = 25;
}
MC. Colour
Hi Is there any maner so I can change a MC colour ( background ) for example in the 1st lint to have a red button then in the 2nd to have blue buttons!!
thnx
Gllanci
Colour Troubles
ok guys me again can u help me?
what i want is.....well ive got like three buttons all diferent colours and when they are pressed i want them to tell a movieclip to change to the same colour is there any script where you can say like
onmouse down tell target (whatever) to use the RGD of me
if you know what i mean
does anyone know a script for that and can u please tell me it
thanks guys
PHENIA
COLOUR CHANGES ACROSS SCENES
I have built a site and included the option to change the backround colour with buttons. However, I am not that good at scripting and need to know how to keep the selected colour when I change scenes (it goes back to the first col) Any help would be appreciated.
Colour Problem
My problem is that i use different colour for button. After it mouseover it all change to #00ff00 colour but I need it to change back to original button colour and not #ceedc4.
Look for
shpcolor.setRGB(0xceedc4);
-----------------------------------------------------------
Below is my code:
-----------------------------------------------------------
function mouse_event (shpid, action) {
this.shpid = new String(shpid);
var i = shpid.slice(3);
if (action == "mouseover") {
tellTarget (mc6.mainmap) {
shpcolor = new Color(shpid);
shpcolor.setRGB(0x00ff00);
}
_root.UC.news = _root.petlist[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild.nodeValue;
} else if (action == "mouseout") {
tellTarget (mc6.mainmap) {
shpcolor.setRGB(0xceedc4);
}
} else if (action == "mousepress") {
shopurl = _root.petlist[i].firstChild.nextSibling.nextSibling.firstChild.nod eValue;
fscommand ("openWindow", shopurl);
}
}
-----------------------------------------------------------
Colour Problem
Hi,
Could you please help.....
I have assigned a hex color to a variable and fed this to a
movie clip using new color (variable) and then setrgb etc.
This changes the color of my mc but all i want to change is the Fill color or background not any text or other stuff on the same instance. Is this possible without having to layer all of my text etc....
The code used is as follows on an instance of change ........
onClipEvent (load) {
ToColour = new Color(change);
ToColour.setRGB(0x003399);
}
cheers
JugLugs
Cursor Colour
I have aform inmy flash movie,but the back gorundis black with white text.
The problem is that you cannot see flashing black line telling where the cursor is (because its blackaswell)
Can the color of this be set?
Thanks In advance
Colour Looks Grainy
My nav bar in my flash movie looks cool on my pooter, but its backgournd comes up grainy on the nasty ones the university has in the public computer rooms.
Is this cos my colour is not web safe, or is it cos it's got an Alpha effect on it?! I have to change every #@**P@~ symbol in every movie now so I don't wanna get it wrong again!
I Need A Ttraparent Like Colour
I was looking a movie done by some one else. In it he created a button that had a dotted like transparent colour. I know he did not add any effects to it because it woul showed up when I look at the effects added to the instance.
When you place it over another instance it looks like it changed colour. It is kind of hard to explain. I am willing email a copy of the instance if you guys do not understand what I am saying.
How can I get that!!!
Thaanks buddy
The Great karlzoe
Background Colour Should Be Nothing
I'm pulling out my freshly streaked locks in an effort to remove this bloody light green background from the swish sprite I imported into FrontPage. How can I get rid of it? In swish the "background" colour I have selected to work a simple text sprite on is "white"... when I import it into Front Page, my sprite works just fine, but I have a NASTY GREEN BOX behind it... HELP. I have tried deleting "bgcolour" in the html but this turns the box white and deleted my text sprite altogether...
Changing Colour
Can anyone tell me how I can gradually change the colour of a clip from one colour to another using A/S? I need to be able to calculate the hex values in a series of steps from one to the other.
Any help will be much appreciated
Thanks
Loss Of Colour
When importing PSD files from Photoshop the colour output is different. What format can you use in Photoshop to ensure the same colour output in Flash? I am using Photoshop 6.
Scroll Bar Colour?
I've noticed that alot of sites have the right hand side scrollbar a different colour. Does that make sence? Could anyone point out what I need to make mine a different colour.
Many thanks for any thoughs
Colour Change
I need help. I have a scene where the viewer picks a colour for an object. I want the object to be the colour they picked in the next scene. what is the action script. can anyone help please?
Change The Colour Of A
I used this code to change the frame of my movie depending on the time of my PC clock, now I want to change the colour of a "Graphic" using the time on my clock.
How do you tell a "Graphic" to alster it's RGB values?
mydate = new Date();
days = mydate.getDay();
month = mydate.getMonth();
day = mydate.getDate();
year = mydate.getFullYear();
//
if (year == 2002 && (month == 4 || month == 5)) {
if (month == 4 && day<27) {
tellTarget (stages) {
gotoAndStop(1);
}
}
if (month == 4 && day == 27) {
tellTarget (stages) {
gotoAndStop(1);
}
}
if (month == 4 && day == 28) {
tellTarget (stages) {
gotoAndStop(2);
}
}
if (month == 4 && day == 29) {
tellTarget (stages) {
gotoAndStop(3);
}
}
if (month == 4 && day == 30) {
tellTarget (stages) {
gotoAndStop(4);
}
}
if (month == 4 && day == 31) {
tellTarget (stages) {
gotoAndStop(5);
}
}
if (month == 5 && day == 1) {
tellTarget (stages) {
gotoAndStop(5);
}
}
if (month == 5 && day == 2) {
tellTarget (stages) {
gotoAndStop(5);
}
}
if (month == 5 && day == 3) {
tellTarget (stages) {
gotoAndStop(6);
}
}
if (month == 5 && day == 4) {
tellTarget (stages) {
gotoAndStop(7);
}
}
if (month == 5 && day == 5) {
tellTarget (stages) {
gotoAndStop(8);
}
}
if (month == 5 && day>5) {
tellTarget (stages) {
gotoAndStop(8);
}
}
} else {
tellTarget (stages) {
gotoAndStop(8);
}
}
Nice Colour..
was wondering if anyone knew how to make a MC change colour
dynamically? say from white to orange, when the user rolls over it and back to white again when the users rolls off it.
have done it using setRGB but i would rather have it so it eases in and out... my code is this...
Code:
onClipEvent(load){
buttonColor = new Color (this);
}
onClipEvent (enterFrame) {
if (_root.myColor5) {
buttonColor.setRGB(0xFF3300);
}else .. . . ... blah blah..
any help would be rewarded with one of those toys you get in a kinder egg... on joking..
thanks..
.txt Text Colour?
Hi there flash gurus
I usually create flash sites that get large text areas
from .txt documents, that way my clients can usually
change/add text without needing to open the .fla file.
Is there any way to assign colours in the .txt itself
(i.e. a red coloured text header)?
Thanks! Greetings!
Colour Changing
hi all,
I have three buttons and one rectangle which is blue, when button 2 is pressed I want the rectangle to fade to red and when button 3 is pressed the rectangle to fade to green...and so fourth
thanks,
tom
Colour Morphing
i just started a new site, and its taking longer then i expected. i want the background to change colour when i click on a link to a different section, and depending on what page its going to will dpend on the colour.
so this means i need 4 or 5 backgrounds, and the colours morphing from each on to each other. this seems like it will take too long how im doing it, manually in one movie. is there a quicker, easier way to do it?
thanks a lot.
Colour Morphing
colour morphing
i just started a new site, and its taking longer then i expected. i want the background to change colour when i click on a link to a different section, and depending on what page its going to will dpend on the colour.
so this means i need 4 or 5 backgrounds, and the colours morphing from each on to each other. this seems like it will take too long how im doing it, manually in one movie. is there a quicker, easier way to do it?
thanks a lot.
Colour Tween?
could someone please direct me to a tutorial on how to do colour tweens. or even better give me a breif description on how to do them. i've searched macromedia.com and here but so far have had not joy.
thx, squid.
Input Txt Colour
Hiya
I have created a mail form and am trying to load it into my main swf, which I can do, the only trouble is the input txt does not have any colour to it when typing in the fields. It works on its own its just when i'm loadin it in to my main movie.
can anyone tell me why?
Bg Colour Change
How do you change the bg colour during a scene.
Ex when i play my movie i wnat the bg colour to start off witha white bg then change to a black bg in the same scene how do I do that.
Colour Change
hello again!
i have another questions for the minds of the great out there. i have a movie and above that movie i have a 50% alpha blue toned square that colours the whole movie. what i am after is a drag bar that chnges the colour of this box, hence changing the colour of the overall site.. . .
can this be done, and if so, please could you help...
many thanks
tasvin
Colour Question
Ok - i am trying to make a fire like effect (candle) - unfortunately i am not sure how to make a different radial colour type on a movie clip symbol???? any suggestions?
Colour Picker
Hi
While trying to sort out a car colour picker I stumbled on to this example (that is attached) and I was wandering how would be this converted to work on any level , like for example if I placed these frames into another movie instance - empty clip called "car". The problem seems to be with the sliders , is that to do with "this" used to refference the sliders ? Um if anyone understands the concept please let me know. Also would anyone know how they created the car so it looks like it's out of glass and it's easy to manipulate it's colour.
CHeers
Menu Using Colour
I am trying to create a very simple menu bar - using only the colour of the buttons to indicate where the user is on the page.
Confused? I have a list of names - when the user presses one name it should change colour - and stay that colour untill another button is pressed. How do I achieve that?
How Am I Going To Do This? (colour Control)
Hello all, well here is my problem...
so try to keep up as im not very good at explaining...
imagin a background colour (blue). through the middle is the navgation (a row of buttons)
each button goes to a different section on the site whch is represented by a colour.
the animation i want is...
when a button is clicked, a colour block (the colour of that section) drops down from the button then expands to fill the bottom half of the page in that colour...
then when the next button is clicked, the same thing happends on top of the previouse colour. get it??
my prob is..
if i do the animation by key framing, then if have it goes back in the time line
say going from a contact page to home then the backround colour jumps back to what the previous colour for that section was, what i wanted to happen was from the colour to drop down in the block (over the top of that section) then expand to fill like before.
I was thinking about loading in swf's on top of each other but it would knock out the previous level (colour) before the new one had animated.
so im guessing either i animate everything for each button (so each combination is animated, very long winded) or there was some guru action scripter out there who could help me.
HHHHEEEELLLPP!!!
thanks guys, if you need any further explaination then just ask
sorry for any spelling mistakes as im not gonna re read this to check...submitting now!
edit, i did check in the end as what i had wrote didnt make sense
How To Set Background Colour?
I have 10 buttons for changing the background colour of a movieclip. Movie clip is a square with linear gradient. When I click 10th button I want to have the movieclip retain its original linear gradient colour, but right now it turns to some solid colour even though I have mentioned the RGB value of the linear gradient.
On the button I have
on (press) {
colour.text="#A0C4EB";
}
On the frame of the main timeline I have
myColor = new Color(colour);
c1.onRelease = function() {
myColor.setRGB(0xA0C4EB);
}
Is this right?
How to make the same linear gradient colour appear?
|