I created an animated button and copied this six times. i would like to chane the colour of each individual button, but when i do this it changes the colours of all the buttons. how can i do this so it changes the individual the colour of a single button.i need to know how to do this as also later i want to apply different sounds to each button.
I'm trying to make it so when the user clicks a button, it fades from it's current colour to a pre-defined one.[code]...
The script works, but not as hoped. The colour will only change when the user is "clicking" on the button, I want to it keep changing colour until it reaches the 'endColour' variable (like it should) - I have tried doing an "onRelease" statement, but this didn't help either
Secondly, like I said in my preamble, I want it to be able to fade from its current colour to a set colour, eg: I need var startColour to be dynamic, rather than fixed, but I don't know how to read in an objects current colour(!)
I need to change all the elements in my movie that have the color X and change their color to color Y. Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
I want to create a flash document that allows me to change the colous of an image using a colour palette of my own. I am a complete beginner and have no idea where to start this, hence i would need to know what to do and how to do it. I basically want the image to be a simple 2d image that i will create using different layers in photoshop and import them into flash, the layer images will all be one colour so the colour of the whole layer changes. so the colour palette will be on the side of this and when i click on an image and then a colour the image changes to the colour i clicked.
I have this code in a function to change the colour of a mc called Tab1. It works fine. But when the mc is tweened it doesn't move. If I don't change it's colour with this function it tweens fine. What have I done wrong?
I'm sure this question has been tackled previously, but is it possible to change the colour of the artboard in CS3 from white, or even get a line around the document?
The goal is to have a link to a url, that changes colour when you roll the mouse over it. I'd rather it wasn't a btn as there are a lot of links similar and it would be very time consuming to change them all to symbols and stuff. I'm using flash CS4 [AS2]. Currently, I have a dynamic text box on the stage and a link in the link box. ***please see attatched screenshot*** Please can someone send over some AS2 script that I can use to change the colour of the text on mouseover?
I have 2 buttons on the stage that when pressed birth MC onto the stage,these mc are dragable and have a transform manager applyed to each mc when clicked on stage.
I have a color_btn that when clicked will change the colour from default black to white
the problem is finding which instance the button is to change the color value as there can be multiple instances on stage at any one time.[code]...
I've got a function in the class of my game pieces that changes the pieces colour determined on the value given to it when it is created:
new Piece(x, y, type, Colour, angle)
the function is like this:
ActionScript Code: private function changeColour(newColour:uint) { var colourTransform:ColorTransform = transform.colorTransform;
[Code]....
How would I go about only changing the colour of one layer within the movieclip? I know it has to be converted to a movieclip but I'm not sure how to do that with the way that my code for changing the colour of the pieces works.
Currently I've created a file where using actionscript I can change the colours on the screen on the fly. I've hooked it up through a control panel I have added to the screen. The problem I am having is that when I attempt to do this to an animated graphic, the colour changes but the animation sequence then stops at the point I make the request to change colour.
Is there any way to pass the variable over and not have it stop the animation sequence?
I have a simple( i think!!) problem: I have up to 10 buttons that load jpgs to an empty movie clip. What I want is to change the colour of the button you press, so you know what picture you are seeing. And when you press a new one, this one changes colour, and the last one goes back to the first colour state
I will like to change the colour of my navigation button's when you click them.So when you are in a section that button will be on a different colour (people will know on which sections they are). The buttons are plain text only.
I would like to know if there's a way to change the color of various mc's at the same time.[code]What I need is that when onRelease change the color of some movie clips in the stage.
I finaly got the code I needed to change the colour of my background but it clearly needs altering. At the moment it works but I have to click the button twice for the colour to change. Now for once I see that this makes sense because I have onRelease twice!
This code is on the button:
on (release) { home_btn.onRelease = function() { var myColor:Color = new Color (this._root.background1); myColor.setRGB(0xFF8844);}
However i'm unsure how to alter the code correctly....I assume the second onRelease needs to change to something else? I tried just: home_btn = function() { but am really just guessing.
I got this code from Kax. This allows me to change colour of my background. This use to work on my movie but now is just not working anymore!Since i created a button loading a .swf file this has stopped working, Any suggestions anyone?[code]I understand that I have to replace "myMovieClip" with the name of my clip!
again I have this textfield being generated in a loop, so there are many textfields created.I've added a format to the textfield, but on a click I want to change the colour of a specific textfield. I tried adding a new format to the object, but it won't work.
I'm trying to make it so when the user clicks a button, it fades from it's current colour to a pre-defined one... simple enough in theory Here's the AS I've got so far:
Code: var startColour = {r:50,g:100,b:250}; var endColour = {r:250,g:0,b:120};
If I draw something manually, can I still change the colour by actionscript? I want to draw a cat, and the cat colour depends on the the user choice in the previous 'screen'. How should I go about this?
I've got a background behind the text that changes colour once the mouse is rolled over. However I'm trying to get the text to change colour at the same time. The text box is slightly smaller than the background box for the time being. When I put my most over the box it changes colou rto red as expected. However, when I roll my mouse over the text box, it turns completely white. This again is expected, but not what I want. This is happening because the text is turning white as its supposed to, and the background is as well when the mouse is taken off. The about text is a button, and its default rollover state is making the background turn white as it rolls over the text layer. Is there some way prioritize the background? What needs to be changed in the code? Also the drop shadow turns off when I put my mouse over them the first time and I m not quite sure why...Here's my AS code:
<!-- fill --> <!--- Defines the appearance of drop-down list's background fill. --> <s:Rect id="background" left="1" right="1" top="1" bottom="1" > <s:fill>
[Code].....
If you look closely you'll see that I've changed the default value for the bgFill color. However, when I run my application, the background color for the dropdownlist is still the default white.
Using this code I am filling a dynamic text box with numbers 1-number defined by xml:
Code: var pageNum:String; txt.text = ""; for (var i:int=1; i < myXML.*.length()+1; i++) { pageNum = String(i); txt.appendText(pageNum+" "); }
What I would like to do is be able to change the colour of one number. If the dynamic text box has the numbers 1-5 in it I would, for example, like to change the colour of the number 2. Have it set to blue but the rest to white. How would I do this without changing the colour of the entire text field?
How do I change the colour of the sprites border? I've got some working code using sprite.transform.colorTransform, but that changes the colour of the whole sprite.
ActionScript Code: function deck8x1MouseOver(event:MouseEvent):void { var deck8x1RedBorder:ColorTransform = new ColorTransform();
I have a Text MovieClip and am changing the text colour when the mouse rolls over the movieclip.This is good but I would like to be able to fade in and out the text colour change.