![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
Flash Buttons Problem
Dont know if there are many Flash developers here but hopefully someone will understand this...
on (rollOver) {
Home.onRollOver = function() {
Home._alpha = 0;
Home1._alpha = 100;
};
}The button home is 100% visible from the start, and home1 0%. What I want to achieve is; Have these two images change to the opposite on mouse over. Taking a look at the Flash help it only seemed to show me how to stop, start or loop something on click. I figured this 'should' work' however nothing happens when I preview it. There is also no errors in the script according to the syntax checker. Thanks for any help.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Oct 2005
Location: Chitown
Posts: 422
Rep Power: 4
![]() |
How about checking if they already are 100% and if so then change to 0 and the other way around.
|
|
|
|
|
|
#3 |
|
Expert Programmer
|
Don't have flash installed right now, but rather than messing with the alphas, why don't you make sure the roll over works. Have it display a message when you rollover each button. Then replace the code with the visibility features. All I can say :p sorry
|
|
|
|
|
|
#4 |
|
King of Portal
|
I'm gonna see if I can explain this 'cause I know how to get it to work but bear with me John 'cause Flash is kinda weird to explain (at least to me). The code should actually be this:
on (rollOver) {
Home._alpha = 0;
Home1._alpha = 100;
}P.S. If your objects aren't instantiated you're referring to something that doesn't exist, and unfortunately I don't think Flash catches those sorts of errors. The debugging leaves something to be desired.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
Thanks for all your input though I fixed this problem last night. Tomorow I will bring with me the code and show anyone interested, It has been expanded a little...
Funny with programming, everythings the same; but a bit different.
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flash and Java | Watts | Java | 5 | Mar 3rd, 2006 12:14 AM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 12:10 PM |
| XML Integrating With Flash | Rizma | XML | 5 | Oct 31st, 2005 12:02 PM |
| Buttons!! | Sane | Python | 7 | Jul 6th, 2005 10:04 PM |
| Clicking buttons on other Apps | Mechromancer | C++ | 3 | Jul 2nd, 2005 12:48 PM |