ActionScript 2.0 :: When Click On Colour / Movieclip's Color Is Changed
May 12, 2010how exactly I'd be able to make a color wheel so that when I click on a color, the movieclip's color is changed.
View 1 Replieshow exactly I'd be able to make a color wheel so that when I click on a color, the movieclip's color is changed.
View 1 RepliesWhen I change color with
var blue:ColorTransform = new ColorTransform();
blue.color = 0xFF00B8E7;
MovieClip.transform.colorTransform = blue;
[Code]....
How can I add this bevel over or on the new color that I changed?
It seems like that the bevel takes all colors as the new color that I changed, not taking the one I specified
myBevel.highlightColor = 0xFFFFFF;
myBevel.shadowColor = 0x000000;
i want to know that when i click on a movie clip it is changed by a image on click using action script any ver.
View 3 RepliesI'm trying to get a movieclip fill color to change once clicked. I'm able to get the mouseover and mouseout working. But the click state isn't working properly.Here's my code:
Code:
Code:
my_mc.addEventListener(MouseEvent.MOUSE_OVER, onFolderOver, false, 0, true);
my_mc.addEventListener(MouseEvent.MOUSE_OUT, onFolderOut, false, 0, true);
my_mc.addEventListener(MouseEvent.CLICK, showMovieclip, false, 0, true);[code]......
When I use the above code, nothing happens once clicked. I tried using the color property, but, although that made a color change (black),it wasn't the color I had indicated (white).What I have is a movieclip ("my_mc"). Inside the movieclip are other movieclips. When one is clicked, only that movieclip ("my_mc.movieclip01"), is highlighted.
I'm looking to change the color of text in a movieclip when the user clicks it(IE it'll turn red for wrong, and green for correct). I've set it up so it can do other things, like gotoAndPlay, I just can't get it to change color. Here's what I've got so far for AS. The movieclip on the stage with the text in it is called q1, for question 1.
Code:
stop();
q1.addEventListener(MouseEvent.MOUSE_DOWN, navPress);
function navPress(event:MouseEvent):void{
[Code]....
I am trying to load a colour image and then it is changed to black and white image. Here I am using a mask. But it is not getting worked. The code that i am using for this purpose is attached following: import
[Code]...
I have created a flash file that allows you to click on a thumbnail image and larger image appears ontop of a tshirt. The same way as a gallery would work. The images and thumbnails are pulled in through xml. However I have a problem, I need the images that appear on the tshirts to be .png files or gif files as the tshirt colour can be changed. At the moment my flash file will only display jpegs! I dont knwo why. The jpegs leave me with a white background, so I need the transparency of a png/gif. My actionscript is:
[Code]...
i got some examples am working on i have this project that has falling stars but when i run my project and test the movies the stars are colored in yellow,i have checked the sprites and the shapes color and changed them to white but nothing changed
View 1 RepliesI have a graphic (behaving as a movie) that has a motion tween. Color selector buttons let the user change the color (using setTransform) of this moving image.
BUT... as soon as one clicks a button to change the color, it stops moving (eveything else carries on moving though).
A good example of what happens is: picture a red car moving across the screen. A potencial buyer wants to see what the car will look like in yellow and as soon as they click the yellow button, the body work of the car becomes yellow and stops dead. The rest of the car carries on. Buyer not impressed and I loose the sale!
I have a graphic (behaving as a movie) that has a motion tween. Colorselector buttons let the user change the color (using setTransform) of this moving image.BUT... as soon as one clicks a button to change the color, it stops moving (eveything else carries on moving though). good example of what happens is: picture a red car moving across the screen. A potencial buyer wants to see what the car will look like in yellow and as soon as they click the yellow button, the body work of the car becomes yellow and stops dead. The rest of the car carries on.
View 2 RepliesI have a movieclip object and I want to tween the color of this object from colorA to colorB when I click a button. What is the best way of doing this, is it possible to do it with the tween class? As far as I can see its not possible to tween a tint with the Tween class?
View 2 RepliesI just wanted to know about a website's logo application. The website is www(dot)Logomaker(dot)com and I have question about how can the images be selected at various regions and their color can be changed ? What format are the images in the flash?
View 0 RepliesCan the background color of the stage be changed from an external XML file?
View 5 RepliesI am learning about sharedobjects and have worked out how to save info to an so. Then i came across this script that creates an input field and allows the text color to be changed, how do I use this package and save the textfield input to a so.[code]........
View 3 RepliesI am creating an searchbox for a tablet application. On entering any text the results appear below as a list. Now I want to change color of that part of the text that is there in searchbox.So which text control would allow me to do that. I found that RichText is one such control but Adobe recommends not to use it for mobileDevices.
View 1 RepliesI'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};
[code].....
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 want to do as follows: * click a "red" button write in textarea with red color font click "blue" button
* write in textarea with blue color font Isn't this possible in flash 10 using AS3 I tried using setTextFormat but the problem is i have to have text before inserting format on that.
i made a project using list and data grid componant is there any way make me chage the color of it.
View 1 Repliesclick a "red" button write in textarea with red color fontclick "blue" buttonwrite in textarea with blue color font Isn't this possible in flash 10 using AS3 ? I tried using setTextFormat but the problem is i have to have text before inserting format on that.
View 20 RepliesI'm building an activity for young kids where they click on a colour in a palette (mouse cursor will be a paint brush) then click on various shapes that I'll layer to create a picture.
depending on the colour they select they should be able to fill the shapes with that colour. Change colors half way through change their mind etc.
I've a basic portfolio page with 5 links. The idea being that 4 stay small and the active page is a larger font. When one link is clicked, itself and whatever font is currently large both swoop down and then the large text is replaced by whatever section the user chose.
I haven't keyframed anything, it's all done with actionscript and here it is. I made one of the links show what the var is currently set to in a dynamic text box. That all seems right. But whenever the 'currentchoice' mc is asked the swoop down, it just disappears rather than animates out. Here's the actionscript.
import mx.transitions.Tween;
import mx.transitions.easing.*;
var currentchoice:Object = new Object();
currentchoice.selection = large_anne;
[Code].....
Changing the width and height of the parent MovieClip does not bring change in the width and height of the inner MovieClip. The parent MovieClip is placed at Stage and is resized manually. When I assign the dimension of the parent MovieClip to the inner MovieClip through code, the parent MovieClip dimension is changed. I want both MovieClip to be of same width and height at runtime. However, parent MovieClip dimension is changed at design time by me.
Example:There are two MovieClip, one inside another. Now parent MovieClip is placed at Stage at design time and its dimension is (50,50) and the child MovieClip which is inside the parent MovieClip has also same dimensions (50,50). Now, I manually change the parent MovieClip dimension by pressing Q and stretching it with mouse, the dimension of the parent MovieClip is now (100,150) or whatever I like. Now double-click on parent MovieClip and check that inner MovieClip dimension remains same i.e. (50,50)Now in AS3 code, I change the width and height of inner MovieClip like this:
saveheight = parentmc.height;
savewidth = parentmc.width;
now I change the child MovieClip according to the dimensions of the parent MovieClip like this:
parentmc.inner_mc.width = parentmc.width;
parentmc.inner_mc.height = parentmc.height;
but this brings change in parentmc also so I reassign value to parentmc like this:
parentmc.height = saveheight;
parentmc.width = savewidth;
In above case, parentmc and inne_rmc dimension should be same i.e (100 ,150). With swapping the values as above, I get parentmc and inner_mc to be of same dimension, but object size is never (100, 150), I have checked it with pixel-perfect air app.
I have a movie clip where it contains an instance of text
I able to change the movie clip and text color individually
but when i try to change both at once the text color is same as movie clip color
ActionScript Code:
myColor = new Color(myMovieClip);
myTextColor= new Color(myMovieClip.myText);
[Code].....
I have one Sprite which acts as a container for two other Sprites. One has a picture the other has a series of hotspots.
If i change the scaleX and scaleY of the picture, the hotspots don't line up anymore. Do you know the correct equation so that any scale i set will always make the hotspots appear at the right place?
I'm trying stuff like this:
hotspot.x *= scaleFactor;
hotspot.y *= scaleFactor;
but i can't quite sort it.
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.
View 3 RepliesBasically, I want to change the colour of a component in my fla file that is called 'EDL Arrow' using Actionscript
'EDL Arrow' is a Movieclip and is part of another movileclip called 'EDLClipDisplay' - which exports to my actionscript file: 'Export: CIS.FLVPlayer.EDLClipDisplay'
How can I change the colour of the component 'EDL Arrow' from the actionscript file 'EDLClipDisplay'
I understand how to do colorTransforms but I just don't understand how to connect this component 'EDL Arrow' with my Actionscript file.
In My movie the color of certain movieclips how do i save the changes to my local computer and call it again when in need
View 2 Repliesi have been working on a rts game for a little while now and i am struggling to find a way to implement a game menu. I want to have a small menu at the top of the screen and a large menu on the bottom with gameplay in the middle.
I am trying to use 2 movieclips for the menu's and one in the background contains my game content. However when i create these movieclips i need the movieclip itself to be transparent only showing a single image in order to have a unique shape. However when i create a new movieclip without filling in a rectangle my movieclip does not seem to be visible even when i have added an image as a child to the movieclip.
i have a movieclip within a movieclip placed on the main stage, when someone rolls over it, i want it to change the colour of another movie clip on the stage (its just text on the stage that i turned into a movieclip.) I have my roll over script and everything else working fine, just this. All i'm basically trying to do is highlight someones name from a list (i've turned each persons name into a movieclip) once they select that persons picture.
View 5 Replies