View Full Version : Movieclip-button problem
Stinkin Mushroom
11-17-2005, 03:21 PM
Hi,
I made 2 buttons that are right next to each other and when i rollover on 1 of them, it must get bigger ==> my problem is: when the button get's bigger it goes under the other button :-( ... How can i say to the movieclip-button to go over the other button?
finchou
11-17-2005, 03:32 PM
something like
yourButton.swapDepths(yourButton._parent.getNexthi ghestdepth());
Stinkin Mushroom
11-17-2005, 04:41 PM
Thanks a lot! It worked! Actually there was a little mistake in your code but thansk to you i got it! :)
It was getNextHighestDepth and not get Nexthighestdepth
thanx
Stinkin Mushroom
11-17-2005, 04:55 PM
Crap :-( It worked but only for one button ... :-( How do I do so that the other button also has that function?
I tried:
myButton.onRollOver = function(){
myButton.swapDepths(myButton._parent.getNexthighes tdepth());
}
so that each button could have this abilty but it didn't work...
Maybe it is right but then i have to make a onRollOut state so that it stops this depth function... but i don't know how to do that ...
Any ideas? :(
Stinkin Mushroom
11-17-2005, 10:31 PM
Please, i know one of you know the answer :(
I put my fla in attachment ... i want all the above buttons ( Curriclum, portfolio, ...) to appear above the others when rolling over them ...
Please :(
arkanoid2k
11-18-2005, 12:35 AM
hmmmmmmmm....the easyest way to solve it...in my opinion should be to create a MC that has as many frames as buttons. on each frame buttons should be placed according to your wish. so for each button the code would be
on (rollOver) {
gotoAndStop(framenumber)
//foo what ever code you have up to now
}
where framenumber is the position in frames.
hope, helps you out.
let me know if it works fine.
Stinkin Mushroom
11-18-2005, 02:10 AM
Man! first i thought your solution was freakin difficult to do, but i did it, and after a couple of minutes it all worked! Thanks again!!!
This sites rulez :D
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.