Ask a Question related to Macromedia Flash, Design and Development.
-
Jose Olivas #1
Changing text without changing frames.
I have a small flash movie that is basically a color chooser. Rather than
changing the color of an item by putting the color in a frame I change and
instance by using the following actionscript:
on (release) {
// Code that changes the color of the shirt
myColor = new Color(_root.shirtColor);
myColor.setRGB(0x484C55);
}
What I need to do now is change a text value in the same manner. I have a
color say blue, and one say real blue. well when I click the button the
colors change as necessary BUT I would like a label to come up with it. So
What I would like to do is put a label below the color box and have that
label change to the name the the color that is chosen. Is this possible? I
have used dynamic text in the past with an external .txt file but never
anything that changes by a button.
Thank you for any help.
Jose
Jose Olivas Guest
-
Changing text color between threaded text frames
I'm having trouble figuring out how to change the text color (not manually) between two threaded text frames. Here's the scenario: Page 1 has a... -
Changing text on asp-label
Is it possible to change the text in a label from english to german like cultureinfo in Visual studio? regards reidarT -
changing a text members text content with lingo
Is there a way of setting the content of a text member through lingo, specifying where there should be Carriage Return. I have a director movie... -
Changing Text
I have Photoshop 4.0 and all I want to do is change the text in a layer. Is this possible? Thank you for any help -
Click on Nav Bar changing content of two frames
Happy: There is a solution for this, but you won't like it. Don't use frames. Really. http://apptools.com/rants/framesevil.php If you... -
Brandon Bradley #2
Re: Changing text without changing frames.
This is certainly possible. You will need to give the dynamic text field
a instance name. I'll call it "myColorText" for the sake of example.
Then in your code wherever you want to change what the dynamic text says
you would add a line of code like the following.
myColorText.text = "stuff I want the text to display";
If you want it to instead refference a variable you could assign it as
so where myMessage is the name of the variable.
myColorText.text = myMessage;
--
Brandon Bradley
Macromedia Certified Instructor
[url]http://www.attconline.org/[/url]
Brandon Bradley Guest



Reply With Quote

