ActionScript 2.0 :: Dynamically Change The Colour Of A Graphic Once A Certain Button Has Been Clicked?
Jul 5, 2004
I'm looking at creating some template designs for presentations and stuff like that. The only problem I have is not being able to get the consumers tastes down to a tee. The thing that is letting me down at the moment is that im not sure how to dynamically chage the colour of a graphic once a certain button has been clicked. e.g "say if i have index as my default page and the colour scheme is different tones of red how would i be able to change this to blue or green once another button has been clicked."
It would be much better to have this layed out as 'AS' rather than having many different (goto frame label and stufflike that. Im trying to phase myself out of tweens and focus more on the AS side of the whole game.
View 3 Replies
Similar Posts:
Sep 1, 2004
I am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 Replies
Mar 31, 2006
i need to change the colour of a graphic in a specific movie in a specific frame. if i have a movie clip instance-named "sidetext" thats 15 frames long, and i want a graphic in the movie, called "letterp" to change to one of four colours that i want it to randomly at frame 10 and stay that colour uintil frame 15, how can i do this?
View 2 Replies
Mar 7, 2010
It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time.See: http:[url]....I have a datagrid where I need to change row colours to red then back to normal frequently based on changes to the bound ArrayCollection. So I'm looking for a way to change the row colours dynamically.Obviously as the changes are happening frequently it would be nice if changing the background colour of the row wasn't an expensive process.
View 2 Replies
Jul 30, 2009
I have a motion tween that adds effect to a Symbol of type Graphic. My question is this:How can I change the graphic dynamically? I want to change the graphic to one inside my xml file. I am reading through my xml file fine, I just need to know how I can take the url to my new image and put it into my symbol.
View 1 Replies
Jun 11, 2010
As the title suggests I am looking for a way to dynamically change graphic on a MovieClip object the best way.Currently I have a setter function:
ActionScript Code:
public function setGraphic(cGraphic:Class):void
{
[code].....
View 3 Replies
Jul 26, 2011
the only thing I found in the documentation was loadBitMapdata and methods of that type. Not sure if that's what I want.
In particular, I have an existing movieclip that is linked in my library. It has a graphic, a timeline, etc. However, I want to dynamically change it to another graphic and timeline.
Do i have to create a new movie clip with the new graphic and timeline? But I still want to keep all the attributes of my original movieclip, I just want the new graphic and timeline.
View 4 Replies
Mar 27, 2010
I am working on creating an interactive map. When a button is clicked a circle graphic fades in. When the same button is clicked I want the graphic to fade out the same way. I can only figure out how to make the graphic instantly disappear instead of fading out. I am following a tutorial and changing it to my needs. The tutorial can be seen here: [URL] The steps for the animation start at step 8. Here is the code I am using:
[Code]...
I am using Flash CS3 and Action Script 2.0. I would also like to have the circle graphic have a small photo pop up by it when the mouse hovers over it. What do I need to look into to make something like this happen? I haven't been able to find anything similar to doing this.
View 4 Replies
Jun 30, 2011
i wan to change and resize image object in graphic or button dynamiclly, how?
View 3 Replies
Jul 24, 2007
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?
View 1 Replies
Nov 6, 2004
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
View 1 Replies
Jun 29, 2005
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.
View 1 Replies
May 24, 2005
I'm currently trying to use actionscript to change the colour of an MC on the rollover of a button - I've succesfully used the following script to change scale and alpha but I'm thrown as to to how to add the colour change:[code]please can someone explain how to add some script for colour ? I've looked at setRGB and Transform but I can't work out how to implement it with a button.
View 4 Replies
Jun 27, 2006
The following code is written to disable the button that is clicked but enable it when the next is clicked. Similarly i require the same buttons to change colour. All buttons start as #170A67 and which ever is clicked changes to #9900FF until the next button is clicked. Is it possible to include that in this code?
Code:
function disableButtons(disableMe) {
for (i=0; i<btnArray.length; i++){[code]......
View 3 Replies
Nov 6, 2004
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... hope that i made myself clear!
View 1 Replies
Jul 14, 2010
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 Replies
Sep 29, 2009
This is the website that I'm working on. Not much going on yet but I have this invisible button that turns the radio on and off.. what I would like to do is have an image of the radio that I made up where the light is on for when it turns on and then back to off for when it's off.
[URL]
View 2 Replies
Nov 10, 2008
I am streaming sound files for a customer with a simple button I created using text, using this stock behaviour code below. I would like the text in the button to change colour while the audio streams and return to its previous state when the audio is finished streaming. Is this possible? And if so, is there anyone who could offer up some sample code to to get me started?
on (release) {
Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};[code].............
View 5 Replies
Jun 2, 2009
how do we change the button colour using action strip. for example , i have created a button , and the fill colour for the button is green now. After i click on the button , i want the button to change to red colour .
View 5 Replies
Sep 1, 2004
I am trying to make a button in such a way so that after you clicked on it, the button will change colour, indicating that the link has been visited.
View 3 Replies
Feb 8, 2010
I am trying to simulate adjusting an LCD screen's contrast using two buttons.
The LCD is one graphic on ONE key frame that runs the entire length of the timeline.
Not sure how to start with the action scripting for this... i would like to use hex values if possible, but had no luck so far with my AS2.
The hard part is that i have a text box on top of the LCD on many different keyframes and the color / brightness of the this will have to change accordingly with the LCD screen.
View 32 Replies
May 12, 2010
I was wondering if it is at all possible to change the "Graphic" used in a frame dynamically using actionscript.
I was hoping to either change the image the Graphic is an instance of or change the Graphic I am using in the current frame.
Addition: Could I have a layer for each Graphic and then using action script choose which layer shows?
View 1 Replies
Aug 13, 2009
I'm trying to "fade" out a movie clip when I click on another movie clip. I know how to change the visibility to false or alpha to 0, but I want it to do this gradually rather then instantly.This is the code I currently have placed on the movieclip I'm using as a button, I am only trying to fade the SolidPurple, everything else is working exactly like I want it to...
Code:
on (press) {
this._parent.holderGreen.attachMovie("PathGreen","PathGreen2",1);
this._parent.SolidBlue._visible = false;
this._parent.SolidOrange._visible = false;
[code]....
View 1 Replies
Nov 24, 2004
can change the color of the button when clicked, however I want to make sure when you click on a different button, it changes the previous button back to its original color.I know i can do this the ghetto way and list out all the buttons i want with no color each time but if later i have 50 buttons i dont want to list them. So i built a loop but the loop is not working rightThis code is an example of what might be on the first button:
Code:
on(release){
for(i = 0; i<11; i++){
[code].....
View 7 Replies
Jan 12, 2012
have a loop that creates buttons. Each button stays on the screen, but scrolls off, meaning there are at any one time upto 4 buttons on the screen. There are a total of 241 buttons.t is to my understanding that using an array will allow me to access these buttons later, and that is great, but I can not find a way for it to tell me exactly which button was clicked.Am I missing something very simple here?
if (canAdd == true)
{
canAdd = false;
[code].....
View 1 Replies
Dec 31, 2011
I posted a question like this yesterday but I was not clear in the description....i have an app i'm making in flex and I'd like to have a button's text change to a random entry within an xml when the button is clicked....the xml is in the assets folder and is titled games.xml. I would like to have a random game name be selected from the XML when the button is pressed.[code]...
View 2 Replies
Nov 21, 2009
I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??
View 1 Replies
Aug 19, 2009
allow the user to clip a button and then place a sybmol (either movie clip or graphic) where the user clicks. I would like to use AS2. The project is simply to label a supply and demand curve graph and user needs to plot, or place points wherever they want on the canvas.
View 3 Replies
Dec 8, 2004
I have a swf file that displays data from an external text file, alongside a bunch of buttons that link to html pages. What i would like to achieve is to somehow use the external text file to alter the URLs of the buttons.
The swf i am building is getting used as a 'what's new' section, so it will be updated almost weekly, hence it reading the external text file (so i can update it without using the fla). And because the whats new section changes alot, so too does the button links. Hence, the buttons need to be updated aswell, and ideally, that can be done from the external text file.
Why don't i just use the dynamic text to <a href> to the new page you ask? because that would be sucky.Besides, i think that something like this could open more opportunities to the way we (well at least I) construct our fla's.
View 5 Replies
Dec 8, 2004
i have a swf file that displays data from an external text file, alongside a bunch of buttons that link to html pages. What i would like to achieve is to somehow use the external text file to alter the URLs of the buttons.
The swf i am building is getting used as a 'what's new' section, so it will be updated almost weekly, hence it reading the external text file (so i can update it without using the fla). And because the whats new section changes alot, so too does the button links. Hence, the buttons need to be updated aswell, and ideally, that can be done from the external text file.
Why don't i just use the dynamic text to <a href> to the new page you ask? because that would be sucky. Besides, i think that something like this could open more opportunities to the way we (well at least I) construct our fla's.
Hope the Kirupa Krew can help, if not then have a great day anyways.
Adios
View 4 Replies