Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having problems with a type of Button. 1

Status
Not open for further replies.

avinsinanan

Programmer
Jul 14, 2002
92
TT
Hello I am trying to make the effect for buttons at this site but I am having trouble. Here is the site -


The buttons I am talking about is Web , E-Biz and Media.

When ever one moves the mosue over one of them a transparent layer moves over the button and stays there unless you move over another button.

Can some tell me how to do this please.

Yours Respectfully
Avin Sinanan
 
I don't think its a transparant layer personally,it is probably just a button of which the background color changes...
don't really understand what you think is special about those buttons. Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Themuppeteer,

am sorry, when you go to the site go to the "Services: section and you will see the cool buttons named Web , E-Biz and Media. Am sorry I pasted the site but when I went to the site I ended up at the main page.

So could you look at the site again please:


but this time go to the services section. These buttons are special.. I gurantee you this.

Thanks

Yours Respectfully
Avin Sinanan
 
Themuppeteer,

Ok its an Alpha movie moving over the button. So when the mouse moves over the button it plays an Alpha movie right?

But how does the alpha stop over the button. When I try it the movie plays then the aplha movie dissapears or sometimes it loops. How do you get it to play and stop when it has just moved over the button?

Thanks

Yours Respectfully
Avin Sinanan
 
The alpha "box" is a movieClip right ? What you have to do is a little trick I just learned a few days ago (because I'm certainly no expert :)) That is, you make a movie clip in a movieclip. So you draw your box, change the alpha and make it a movieclip (say clip1),directly after that, you can once again press f8 and make it a movieclip again (call that one clip2). Then you will have 2 movieclips.
Click twice on the clip so that you are inside clip2. There you have control over clip1 one and you can let it do whatever you want in is own timeline.
In frame 1 you put
onClipEvent(load){
stop();
}
so that when the movie starts,the alpha thing doesn't move,
Create a motion tween that makes the clip1 move over the button (or whatever you want it to move over...) that starts in frame 2,and on the end of your motion tween you put in the frame again stop();
to make it stop once it is in the right position.


In the button you put
on(rollOver){
_root.clip2.gotoAndPlay(2);
}

so that it will start its tween when rollover happens.
Thats it.

I made it in 5 minutes,it isn't that hard :)


You see ?

Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top