;

PDA

Click to See Complete Forum and Search --> : Is it possible?


dniezby
12-07-2005, 11:18 AM
Is it possible to move a symbol in the same frame?

I have a mask over some buttons in a frame and I want to hide the mask on hover so that the buttons are visible.

EG: You hover over JOB OPPORTUNITIES and a submenu of buttons is revealed.

BUT when you hover over one of the other buttons on the page it will put it back in place to hide the buttons again.

I did have it so that on hover it would just jump to a new frame but then the page the person is viewing changes back to the main page with hidden buttons.

gusmus
12-07-2005, 01:20 PM
Joder,, wouldn't you rather just let us make the page for you and be done with it?? You can be art director lol.

Makulaf
12-07-2005, 01:35 PM
look at this i think this is what you want.

http://www.koolface.com/components/topmenu/topmenu.html

dniezby
12-07-2005, 02:14 PM
Nope. This uses the method I already tried, jumping to key frames.
I'm going to try making it a separate movie clip.

gusmus
12-07-2005, 03:11 PM
Show us an example of what you want.. makes life easier.... you can move a symbol easily by putting this on the symbol.

onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/15;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
}

This is a mouse follow script but can be modified to whatever you want for a menu. Just make the menu tree with the links and them use the AS symbol as a mask.

Makulaf
12-07-2005, 03:23 PM
look at this file is this what you need?

dniezby
12-07-2005, 03:42 PM
I have attached a little test file.

All I'm trying to do is hide and unhide a mask based on mouse over.

I'm assuming that this is an event and I'm pretty sure the problem is in my scripting. I DON'T KNOW HOW TO ACTIONSCRIPT much at all yet. I'm trying to learn it now.

Anyway, Here is what I did.

For practice I created three objects.
2 - test buttons
1 - mask

Test button should be visible at all times and the test2 should be hidden by the mask.

When one mouses over the Test button it should hide the mask thus making the test2 button visible.

Here is the code that I put in the Test button:

onClipEvent(rollOver){
MovieClip.S1_visible="false";
}

I'm pretty sure my problem lies with my syntax. But I'm just winging it here from code that I've found.

dniezby
12-07-2005, 03:48 PM
look at this file is this what you need?
Close...I already tried this method. But maybe I did something wrong...I made all of the buttons part of the movie file. Maybe I should just make the one button that needs this action part of the movie clip?

You sparked and idea...thanks.

Though I'd still like to know if I can hide and unhide a mask on mouseOver.

dniezby
12-07-2005, 04:23 PM
I now remember the issue I had with making the buttons a separate movie clip.
I get the correct action and response but there doesn't seem to be an option for getting the buttons in the movie clip to jump to a frame in the main movie.

Purhaps that's simply the whole issue I've been having?

blanius
12-07-2005, 11:47 PM
but the sub buttons on a clip then you can use the _visible property to hide/show it.

To goto a keyframe in the root movie from the button should be no problem. use _parent.gotoAndPlay("keyframe")

And always name your keyframes and use names, the numbers are not reliable.

dniezby
12-08-2005, 01:50 PM
I can't believe no one caught that I put quotes around the boolean.

buttonname._visible=false;

is all I needed to do but my dumb ass kept putting quotes around the false/true.