ActionScript 1/2 :: Change Color Of Dynamic Menu Button?
May 19, 2010I have made a menu with many submenus
View 1 RepliesI have made a menu with many submenus
View 1 RepliesI have a menu text dynamically loaded from external data. It duplicateMovieClips on stage.The thing that does not work is the onRelease statement. The new color is not appliedAll others (onRollover, onRollout), works perfectly.How can I set the new color to the text menu when we press on it ?Here is the AS code on the MC that is duplicated:
Code:
mcbase = new Color(this);
orig = "0xFFFFFF";
[code]......
I *know* this is simple. I've read every thread on this board pertaining to this (including senocular's Best Of thread), done everything there and this still doesn't work and I can't see why.
I feel like an idiot even asking, because I've seen the examples and lengthy tutorials.
All I want to do, is change the color of a dynamic text field when you press a button. But I want the name of the field to be a variable.
Now, this is what's there:
1. the variable "_root.expinttype1" is equal to "branch" and is set elsewhere.
1a. There is an existing dynamic field called "branch" on screen.
2. On the button release I set the format:
[Code]....
Why? I set a dummy variable txt = _root.expinttype1; and even threw it into a text field to verify the data, and it shows "branch", so why doesn't this work?
I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.
View 2 RepliesHow is it done? All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.
I can accomplish the change as it passes over a frame, but I can't get it to change back.
In the frame is this:
Code:
cHurtColor = new Color(_root.compMC);
cHurtColor.setRGB(0x00FF33);
All I've seen on the web is how to change the color. Well how about going back. I'm talking about a MC with many colors. I can't just change back to a single hexadecimal color.I can accomplish the change as it passes over a frame, but I can't get it to change back.[code]
View 6 RepliesWhat I am trying to do is to have the button color change to a different color when it is on the page. The color only changes when I roll over it or hit it. Once I am on the page it changes back to the color it is on the up state.
View 1 RepliesI would like to do something like the menu on the left hand side of this page: [URL] I am after the effect where the color fades in when rolled over and fades out when the mouse leaves the area.
View 2 RepliesI tired Menu, its working fine. In this i can able to change background color and other styles also.
But my need is, individual background color for each and every item added in Menu.
My requirement is, say for example..
[Code].....
I've created this thumbnail navigation bar that uses XML to get an external image, title, and link information. It then uses attachMovie() and a for loop to generate the listing. It all works like it's supposed to! However I am now having two problems. The first, since I am loading in an image I would like to have a preloader appear in all the thumbnail containers before the thumbnail image loads in. I have a simple circle preloader in each thumbnail module that I would like to hide it once the image loads in.
The second issues and perhaps the more important one is that the site is color coded meaning once you click on a navigation button the site color scheme changes to a different color. I put all the instance names of the site elements into an array and then created a color change function with a switch statement to had the color change. However I cant seen to include the newly attached thumbnails into this array so they don't change color along with everything else on the website. I'm completely suck on this and have no idea how to go about making thHere is my code:First this is how I loaded the XML data and attach the thumbnails:
ActionScript Code:
var linkItem:Array = new Array();
var instanceNames:Array = new Array();
[code]........
that xml menu from Best of Kirupa, very impressive,..but does anybody know how to change menu text/font color?
View 3 RepliesWhat I am trying to do is to have the button color change to a different color when it is on the page. The color only changes when I roll over it or hit it.Once I am on the page it changes back to the color it is on the up state.[URL] (When you are on the home page the button is red, but when on the about page the home button changes to white to show hierarchy.)
View 4 RepliesThere is a chance to change the color of de MC dynamic?example, I make it of the yellow color, and for param of my HTML I would change for blue or red or....,and it for change the color of my dynamic text of black color for red ou blue in my param in my HTML?
View 1 RepliesI am somewhat new to Actionscipt and I need a bit of help. I have created a dynamic text box that is being fed from an xml file. Depending on the data (whether positive or negative), I would like the output text to either be green or red (green for positive, red for negative). I�m sure that has to be a condition statement written and applied to the object, but I do not know how to do.
View 1 RepliesIf I have say 7 buttons, each containing text that changes color on rollover using the "Up" "Over" and "Down" keyframes in the buttons' timeline. Is there a simple way to get the button's text to change color when clicked, stay that way, and then change back to the original color once one of the other 6 buttons are clicked?
The only thing I can come up with is writing pages of code for each button that changes the color of every other button regardless of whether it was active.
i like to do a color change for a dynamic text field if it statisfy a certain condition, like if the value is below 0.
i tried below. "profit" is the dynamic text
profit = Math.round(grand2 - grand);
if (profit<0) {
profit.color=FF0000 }
wanting to change the color to red. But it doesn't work.
I have a png clipart image dynamiclly loading into a movie clip. Is there a way in AS2 in which it would get the different color layers used in that clipart to display the color pickers related to those color layers. So that once i change the color in that color picker it would change it in the clipart as well. Basically i want flash to communicate with the png layers.
View 3 RepliesI have this code that should change the color of a dynamic textfield when I rollover the link movieclip, and then back when I rollout. I get no compiler error, it just doesn't work.
function textColor(mc_function:MovieClip, tf_text:TextField) {
mc_function.onRollOver = function() {
tf_text.textColor = 0x7cb0b7;
[code].....
Change the color of a dynamic text box? I tried using
_root.game.battle.ti.setRGB(CCFF00);
but apparently, that's just for color, not text in dynamic text boxes.
Can you change the color of a dynamic text font using actionscript? I'm trying to make it so that when a user clicks a button on my menu, each button will make the dynamic text change a specific color.
View 2 RepliesI want to change the color of the text on mouseover (its a dynamic text field). I cant get it right!
View 3 RepliesI am interested in creating a similar color change effect as seen at:As you can see, the color transforms as each menu item is clicked but it doesn't seem to load a new movie.
View 1 RepliesI have created a dynamic text box that is being fed from an xml file. Depending on the data (whether positive or negative), I would like the output text to either be green or red (green for positive, red for negative). I'm sure that has to be a condition statement written and applied to the object, but I do not know how to do.
View 4 RepliesI am somewhat new to Actionscipt and I need a bit of help. I have created a dynamic text box that is being fed from an xml file. Depending on the data (whether positive or negative), I would like the output text to either be green or red (green for positive, red for negative). I�m sure that has to be a condition statement written and applied to the object, but I do not know how to do.
View 1 RepliesI am creating a button when rollovered produces a textfield. Now, I am producing text lines in this textfield and I want the produced lines to be in different color depending on the value of x. [code]...
View 4 RepliesI have a dynamic text field that is rendered as HTML. Everything works fine, but I would like the user to know which link they are moused over...Is there a way to do a mouse over change color on dynamic text? I think I have seen it done. I'm using Flash MX.
View 2 RepliesCan you change the color of a dynamic text font using actionscript? I'm trying to make it so that when a user clicks a button on my menu, each button will make the dynamic text change a specific color.
View 1 Repliesmy selectable dynamic text that is generated in xml, I need to change the color of the highlight. When I highlight the text the highlight is gray close to my text color, the result is my text could not be read. I want to change the color of my text and the highlight color when I highlight my text.
View 0 RepliesAt some point in my movie I duplicate an mc (a simple ball) several times and I want each duplicated ball to have a different color chosen at random. How can I go about it?
View 4 RepliesHow can i change font color in dynamic text box. Text is loaded from xml. And i want to make thisway that when user rolls over this text box, or mc over this text box then font color change.
View 3 Replies