| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Oct 2005
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
Banned by AS.org Staff
Join Date: Mar 2002
Posts: 10,534
|
Solution is buttons within a movie clip.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct 2005
Posts: 2
|
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. Last edited by dant; 10-26-2005 at 06:03 AM.. |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Oct 2005
Posts: 2
|
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! |
|
|
|
|
|
#5 |
|
Actionscript Struggler
Join Date: Sep 2005
Posts: 92
|
|
|
|
|
|
|
#6 |
|
Banned by AS.org Staff
Join Date: Mar 2002
Posts: 10,534
|
You can use a hitTest on the movie clip itself, rather than applying button handlers to it.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|