Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-26-2005, 05:22 AM   #1
gregtan
Registered User
 
Join Date: Oct 2005
Posts: 2
Default Button within a Button

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
gregtan is offline   Reply With Quote
Old 10-26-2005, 05:53 AM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,534
Default

Solution is buttons within a movie clip.
oldnewbie is offline   Reply With Quote
Old 10-26-2005, 05:57 AM   #3
dant
Registered User
 
Join Date: Oct 2005
Posts: 2
Default

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..
dant is offline   Reply With Quote
Old 10-27-2005, 04:49 AM   #4
gregtan
Registered User
 
Join Date: Oct 2005
Posts: 2
Default

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!
gregtan is offline   Reply With Quote
Old 10-29-2005, 01:53 PM   #5
Grant B
Actionscript Struggler
 
Grant B's Avatar
 
Join Date: Sep 2005
Posts: 92
Default

Maybe this thread might help...

http://forums.ultrashock.com/forums/...threadid=75178

Grant.
Grant B is offline   Reply With Quote
Old 10-29-2005, 03:47 PM   #6
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,534
Default

You can use a hitTest on the movie clip itself, rather than applying button handlers to it.
oldnewbie is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.