PDA

View Full Version : Button within a Button


gregtan
10-26-2005, 05:22 AM
Hi Folks,

I know this may not sound like a new problem but I'd really appreciate any help I can get..

This may be an easy one, but bear with me, I'm not much of a programmer (yet) I need to figure out a way to create a button within a button. My interface consists of large buttons for the different categories so that when you roll over them they come into view. You might have seen this type of interface before at http://www.oringe.com/ because that's where I got the idea. Anyway, I have it working fine but I need to add buttons within the large section buttons. No matter what I do the end result is a constant loop.

Help!!

Thanks!

Greg

oldnewbie
10-26-2005, 05:53 AM
Solution is buttons within a movie clip.

dant
10-26-2005, 05:57 AM
:cool: not sure what your poking at, but looking at that site you linked:

you need to create 2 seperate buttons on 2 seperate frames. program the top button to have this function

on (rollOver) {
gotoAndPlay("scene number of second button");
}
--- so basically when you roll your mouse over it, it'll go to the second button's frame

and on your second button use

on (release, rollOut) {
gotoAndPlay("scene number of first button");
}

so when your mouse rollsout of the second buttons hitbox it will return to the first buttons frame (default)

remember to create a seperate layer and at a stop(); function to stop it looping

hope this helped.

gregtan
10-27-2005, 04:49 AM
hi Oldnewbie!

Many pple advised me this way too.. However, the problems complicated when the movie clip (which is housing the buttons) is also having its own "on rollOver" scripting.. When the movie clip is roll Over, its suppose to play another new movie clip ontop of it, this new movie clip is the one having the buttons..

Any advise?

Your Help is really appreciated!

Grant B
10-29-2005, 01:53 PM
Maybe this thread might help...

http://forums.ultrashock.com/forums/showthread.php?s=&threadid=75178

Grant.

oldnewbie
10-29-2005, 03:47 PM
You can use a hitTest on the movie clip itself, rather than applying button handlers to it.