Link to home
Start Free TrialLog in
Avatar of Forbin
Forbin

asked on

Please Help - Buttons below other buttons

Hi, I have a scene where a user can scroll through a strip of pictures that, when clicked, will display in a separate part of the scene.  The way it's set up is thus:

I have a movie that has a strip of pictures ("thumbnails"), initial position is w/ first pic in the middle of my masked viewing area.  Each of these pictures is a button, that when clicked, tells a view area to display a larger version of the image (telltarget (_parent.viewbox) gotoandStop(appropriate frame #))

Positioned on top of this movie are two invisible buttons ("scrollleft" and "scrollright") positioned on either side of an instance called midpoint.
When the user rolls over one of these buttons, the button calls an object (left or right, depending) that adds or subtracts to the _x position of "thumbnails".  Depending on how far away the mouse is from the midpoint, the thumbnail strip scrolling will speed up or slow down.

Now my problem: since these buttons are on top of the strip, clicking on the thumbnails does not do anything.  I guess b/c there are buttons on top of the thumbnail image buttons, the clicks pertain to the scrollbuttons, not the image buttons.

If I put the scrollbuttons below the thumbnail layer, the scrolling stops whenever the mouse rests on a thumbnail picture.  

What do I do???

Thanks!
Avatar of Forbin
Forbin

ASKER

here's the page if that helps:

http://www.forbin80.webhop.net/new

it's Digital art
Avatar of Forbin

ASKER

I also just made it so that if you click on "drawings" you can see the same thing with the scroll buttons on top.

The good thing about this is the buttons aren't transparent, they actually have gradients that fade into transparent in the middle, so that it kind of highlights the thumbnail in the middle.
Avatar of Forbin

ASKER

ALSO - I tried coding on(rollover) scripts for each thumbnail and putting the thumbnail script on top.

The script calls "left" or "right" ( movies where the first frame is stop(); and frames 2-4 loop over and over scrolling accordingly, when it rolls off it resets to frame 1) depending on which side the mouse is in relation to the midpoint, but the problem is that when it rolls off it stops scrolling again, you have to roll out of the thumbnail strip and back on to scroll, then when it hits a picture you have to roll out of the strip and back on, etc.... you get the idea.  I want it to transition smoothly between the thumbnail buttons and the scroll buttons that reside behind the thumbnail strip..


Thanks in advance to anybody who tries to help.
Avatar of Forbin

ASKER

Oops, above - the first sentence should read thumbnail LAYER, not script.
Avatar of Forbin

ASKER

anybody?
you can't have 2 buttons over-lapping each other to work, only the top one gets the click not the one below

ok .. u have figured out how to change the speed using _xmouse offset, why do u need the button to do the scrolling?

modified ur script and do the scrolling using the _xmouse only with no buttons (take the left & right button away) ...

i am only guessing, u are using the on(rollOver) with the buttons to check _xmouse & scroll using _x++ etc ...

instead, use onEnterFrame or onClipEvent or even just loop 2 frames to keep track of the _xmouse that will save u from using the button...

if the scrolling panel is moveclip, then make the origin (0,0) in the middle and not top-right, this will help simplify the + / - direction and the speed equation
Avatar of Forbin

ASKER

I kind of see what you're saying but I'm still a little fuzzy.

What exactly does onclipEvent(enterFrame) do?

I thought it was basically as soon as the frame is entered (through play or whatever) do this...

I need to make it so a certain section of the screen responds to the mouse, not the whole screen.

take a look at the link and click on "drawings" or "digital art" to see what I'm talking about.  I don't want to track _xmouse unless I'm sure the mouse is in that particular section of the screen.
Avatar of Forbin

ASKER

is there a way to check if the mouse is over a movie clip? Basically an on(rollover) for movie clip instances?

Because if not I'm guessing my only solution is to loop the two frames and check to see if _xmouse is in that particular rectangular area, but then if I rearrange things I have to change the limits, which is a pain in the ass.  
Avatar of Forbin

ASKER

The way that screen is arranged now is multiple layers containing only one frame.  Any moving parts are movie instances.  If I have to loop two frames, isn't it going to restart those moving parts every two frames?  

ASKER CERTIFIED SOLUTION
Avatar of henryww
henryww

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Forbin

ASKER

alright, I totally get what you're saying now, I had the idea but was basically thinking of sticking the script in the wrong place.

Thanks for your help.