Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

Change Colors of Button through ActionScript

I would like to change the colors for each state including the hover color using ActionScript before the SWF is loaded. For instance I want to change all colors to Navy Blue then on mousing over change it to a Bright Blue. As a bonus if you know how to add a "glowing" effect when hovered please let me know in your answer to this question and I'll create another question with another 500 points. Thanks in advance!

Please download the sample map (see link below) and provide the ActionScript required and a brief instruction on how to update the fla file.

Resource Links:
Sample Map: http://www.maps4.com/demomap.zip
FAQ About Sample Map: http://www.maps4.com/faq.html
0
brian2k1
Asked:
brian2k1
  • 3
1 Solution
 
MontoyaProcess Improvement MgrCommented:
Part1:

Dbl click on the movie clip to go into button mode
Dbl click btn to edit color of the area
Choose the blue that makes you happy.

Part2: coming up...
0
 
MontoyaProcess Improvement MgrCommented:
Here's a tute on changing color (time constraints)

http://www.kirupa.com/developer/actionscript/color.htm

0
 
MontoyaProcess Improvement MgrCommented:
My thought was, if you're going to change color before the swf loads... why not just change it in the fla? No sense in adding code just for the sense of adding code. Next you can handle the rollovers, and that's okay. The tutorial covers that. I should also mention that Color() was deprecated in this last version. The new colorTransform is confusing, though, at least for now, since I have not had any projects that deal with it.

0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now