Movie Clip Button
Can someone take a quick glance at this code and see what's wrong. "Start2" is the child clip of "bridal_navigation". The icon becomes a button with the code, but the effect doesn't occur. It should change color to black when it's rolled over and then back to teal onRollOut.
_root.bridal_navigation.start2.onRollOver=function (){
black=new Color;
black.setRGB(0x000000);
}
_root.bridal_navigation.start2.onRollOut=function( ){
teal=new Color;
teal.setRGB(Ox33CCCC);
}
_global.chosenson="flash";
If you have a question, need some help, email me:
chosenson
It's always the simplest things that escape the complex mind!
always be just
Attached Files
The actual correct syntax is...
myColor = new Color(myMovie);
myColor.setRGB(0x993366);
But don't think you'll achieve the effect your looking for, this way!
Use a dynamic textfield instead of a static one, and give it an instance name... I used my_start as an instance name...
code:
stop();
_root.bridal_navigation.start2.onRollOver=function (){
_root.bridal_navigation.start2.my_start.textColor = 0x000000;
// my_color1 = new Color(_root.bridal_navigation.start2);
// my_color1.setRGB(0xFF0000);
};
_root.bridal_navigation.start2.onRollOut=function( ){
_root.bridal_navigation.start2.my_start.textColor = 0x33CCCC;
// my_color2 = new Color(_root.bridal_navigation.start2);
// my_color2.setRGB(Ox33CCCC);
};
_global.chosenson="flash";
Here is the file with changes I made.
They are exactly as oldnewbie stated as I was working on it.
Thanks oldnewbie.
chosenson
If you have a question, need some help, email me:
chosenson
It's always the simplest things that escape the complex mind!
always be just
Thanks to both of you. Thanks a lot. Why though, in god's name newbie, do you NOT have a web site. You know how to change the color of a dynamic text field on a roll over and a roll out, but yet you don't have a web site?
New Guy !
_global.chosenson="flash";
If you have a question, need some help, email me:
chosenson
It's always the simplest things that escape the complex mind!
always be just
New Guy !
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width