Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How Do You Make Other Buttons Disappear On Rollover



i created a movie with 3 image buttons on it. i want button B and C to dissapear on rollver of button A.(and viseversa) all buttons have an up,over, down and hit assigned to them(i don't know if that matters)
i used this script i found here on button A but id did nothing when i tested it.

on(rollOver){
buttonB._visible = false;
buttonC._visible = false;
}
on(rollOut){
buttonB._visible = true;
buttonC._visible = true;
}

i know i missed something somewhere, can anyone help?



FlashKit > Flash Help > Flash Newbies
Posted on: 08-07-2007, 03:32 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

XML Slideshow: How To Make Previous/Next Buttons Disappear At First/last Image?
Hello,

Just wanted to say that this is a great tutorial. However, I'm wondering if there's a way to make the Previous button not show up when you're on the first image and the Next button not show up when you're on the last image.

I appreciate any help you guys can give me. Thanks!

MC

How Do I Make Flashing Rollover Buttons
Hi all

Just joined as I am stuck with the above!!!

I have already made a nav bar in fireworks with rollover animation but the guy who I am building the site for has decided he wants the link buttons to flash when the user hovers over them instead of just changing to a different colour.

I have searched the internet to try and find a way but have found nothing.

I have built the site in Dreamweaver CS3 and just need the button to go from #681E13 (up state) to #4A612D flashing with #681E13 when the user hovers over it.

I am using Flash CS3 Professional.

Any help with this matter would be greatly appreciated.

Thanks in advance

James

Text In Animated Rollover Buttons (Make Me Crazy)
Hi,

My problem is this: Whenever I attempt to make a rollover button (using a movie clip for the 'Over' component)--and have text as part of that button (i.e. "Click Here")... I can never CLICK any part of the text to activate the button animation in a preview, I can click AROUND it, but the text itself is dead. I DO always use a generous block in the 'Hit' component of the button and that works--except for any area covered by the text is off-limits to clicking.

I've TRIED to add another layer in the Movie Clip symbol editor (0% opacity) in front of the text, still no go. I've also tried this in the Button symbol editor.

Any help would be greatly, greatly appreciated.

BR

How To Make Rollover Movie Clip Buttons Change..
Hi,

I was hoping someone can help me with this one? I've been wanted to know how to do this for a long long time.

If I make a movie clip which say I call "About" for my menu, how do tell it to change its state once its been clicked?
I know the code for making the movie clip act as a button doing a rollover, rollout and release. But it then goes back to the way it was as If I didn't click it.
but I actually want it to stay changed once it was clicked. So lets say it was yellow before it was clicked but turns grey once it was clicked. So you know that you are in that section of "about".
I assume I have to use a variable but I don't know what and do I have to make my menu buttons externally instead of internally?


Thanks,
Ezz

[CS3] Making Graphics Appear/disappear On Rollover
I've seen some other threads with a similar title, but none that seems to address my specific problem.

I have a vector map of the United States. I'm trying to make each state into an invisible button. When you mouse over a U.S. state, it turns a different color and a panel appears that, in a future iteration, will contain some dynamic data.

At any rate, I've successfully turned Montana into an invisible button, and it does turn color on rollover.

I then created a new layer and put a rectangle in it. I want this to be my panel that only appears on button rollover. But how then do you *name* this rectangle graphic? I only get shape properties in the Properties panel, and no place to name this instance. Once it's named, would the syntax in ActionScript 3.0 be:

mypanel.visible = false;

(Then I'd make the script for the button rollover to make the panel visible, but first, I just need to make the *#%@ thing invisible.)

[CS3] Make My Mc Disappear
I want a button in my movie clip to take me to a frame in my main timeline, but I can't get the mc to disappear.

Attached is my fla.

Thanks for your help!

Keyframes Make It All Disappear :(
Every time I try to insert a new keyframe ANYWHERE, all the stuff on the stage, EVERY LAYER, disappears.


This is making me crazy. What's going on here?????

pleeeease help fast!!!


Thanks!!!!!
Frustrated and deadlined

How To Make A Movie Appear And Disappear
Which function uses flash 5 to call a movie clip in a certain moment and then to make it disappear.

How Do I Make The Flash Disappear?
Hey,

I am VERY new to Flash but I got it to actually do something. Anyway, I have two questions. The first is how can I make the Flash .asf file actually appear ON TOP OF my website, instead in its own little area? Secondly, how can I make it disappear after it has finished doing its thing? Any help is greatly appreciated.

Thanks,
Nick

Can I Make The Right Scroll Bar Disappear?
I want ot get rid of the right scroll bar.
I found a lovely smooth scroller in the open source movies.
I use it and love it so publish my movies just under the size of the browser window so i do not need the browser's right or bottom scroll bars.
The bottom scroll bar disappears when not needed but the right scroll bar does not disappear. It stays there, only its blue bar disappears. This doesn't look that bad but it ruins the overall effect of my site. Can you help?

I Use flash mx and dreamweaver iv

N.B.
Maybe i could link to a swf from my index? This is the effect I want. i am left with only the top part of the browser but i have a problem with this.
If i link to it then try my flash link a window pops up asking me if i want to download the swf i am linking to.
I just want to go from page to page and back again using the back but if i use only swfs and load movie in actions the browser stays in the same movie.
Yours faithfully,
Christopher.

Can I Make A Button Disappear?
I have a button that reveals a text box, but I want to make another button take away the first button.

For an mc, I would say tell target "MC", gotoandstop(1). But in this case there's no frames on the button. Is there another method to remove the button?

ANY help is appreciated, thanks!!

Make An Object Disappear
I'm trying to make an object disappear, but my code doesn't seem to cause that to happen. My code is below:

onClipEvent (enterFrame) {
if (this.hitTest( _root.Quaffle )){
_root[Quaffle].gotoAndPlay( 2 );
}
}

The two is the frame in the quaffle sequence that causes the quaffle to begin to shrink; however, the quaffle doesnt' shrink. Any suggestions? Also, I'm using Flash 5. A little old fashioned, but all I've got.

How To Make Images Disappear / HELP
I am working on a project that seems fairly simple, but I can't figure out how to do it in Flash MX. I'm 10+ hours into this, and I'm almost ready to give up. Here's the breakdown:

There are a series of squares on the stage. As each one is clicked, I need them to disappear to reveal part of an image that is underneath.

Here's what I've done:
Imported each of the squares and converted them to buttons.In the linkage properties for each button, I selected "Export for ActionScript" and "Export in first frame." I tried applying the actionscript below to the buttons (where "buttonname" is the individual name and identifier of the button). When I test the swf, this does absolutely nothing:

on(release) {
buttonname._alpha = 0;
}

When I modified that script and tested the movie, it changes the alpha to 0, but it does it for EVERYTHING on the stage instead of the individual square. Here's THAT script:

on(release) {
_alpha = 0;
}

Can anyone help? If so, please email me. I'm right on top of a deadline. Thanks.

How To Make Images Disappear / HELP
How to make images disappear / HELP!
I am working on a project that seems fairly simple, but I can't figure out how to do it in Flash MX. I'm 10+ hours into this, and I'm almost ready to give up. Here's the breakdown:

There are a series of squares on the stage. As each one is clicked, I need them to disappear to reveal part of an image that is underneath.

Here's what I've done:
Imported each of the squares and converted them to buttons.In the linkage properties for each button, I selected "Export for ActionScript" and "Export in first frame." I tried applying the actionscript below to the buttons (where "buttonname" is the individual name and identifier of the button). When I test the swf, this does absolutely nothing:

on(release) {
this._alpha = 0;
}

When I modified that script and tested the movie, it changes the alpha to 0, but it does it for EVERYTHING on the stage instead of the individual square. Here's THAT script:

on(release) {
_alpha = 0;
}

Can you take a look at the file for me and tell me what I've done wrong? I posted it here:

http://www.rcalabelgroup.com/tools/pyramid5.fla

Can anyone help? If so, please email me. I'm right on top of a deadline.

How Do I Make It Disappear And Reappear?
Hi

I have a movie clip that moves a needle on a meter (picture a speedometer). You push a button to run the movie clip.

I have a copy of the needle so that it visible before running the clip. So when the clip runs, there are two needles, one stationary and the other animated (not good).

I want the stationary needle to be visible before and after the movie clip runs
but not showing while the movie clip is running.

How can I do this?

Make Popup Mc Disappear After 2 Or 3 Sec...
I would like to know what the best way to implement the following feature is...

I have a popup dialogbox that comes up when the user clicks an object on stage...I want this popup to disappear or "close" if the user does not click the "close" button after 2 or 3 seconds...any takers?

How Make Something Disappear Above A Certain Point?
Hi,

I'm sure this is a easy one for the most flash users but i dont know how to do it.

I'm making a slideshow that is in the top of my layout. It is sitting on the top of a white thing that is part of the background.

It gives a shadow to the main background.

So, i cant put the slideshow under something to hide it because of the shadow.

How can i make a mask that will make disappear the slideshow above a certain point?

You have to see it, otherwise my english will not permit you to understand.

http://www.imaginando.net/tectoreve/main1.swf

Thx,

Nuno

Make A Drawing Disappear...
I have attached a little fla that allows the user to click and draw on screen. Does anyone know how to make the lines drawn fade after a few seconds?

Make Popup Mc Disappear After 2 Or 3 Sec...
I would like to know what the best way to implement the following feature is...

I have a popup dialogbox that comes up when the user clicks an object on stage...I want this popup to disappear or "close" if the user does not click the "close" button after 2 or 3 seconds...any takers?

Make A Button Disappear
I have a start button on a site I want to make disappear after it has been hit. how can i do this?

thanks and peace!

How To Make A Button Disappear After Clicking.
Hi,

I'm new to wonderful world of flash and I'm having a little trouble with a button I've created. Basically, I have a button which covers an image. I'd like to make it so that after the button is clicked, it disappears - thus exposing the image behind it.

I guess this is quite straight forward to do, though at my level I still don't have a clue.

I appreciate any help anyone can give.

Cheers,

Ben

How To Make A MC Disappear Progressively (alpha From 100% To 0%)
can somebody show me how to make a movieclip disappear progressively, as in a fade out, with actionscritpt please? thanks

How To Make The Vertical Scrollbar Disappear?
Does anyone know how to make the vertical scrollbar at the right of the browser disappear?

Hi How Do I Make An Image Appear In Flash And Disappear Afterwards
hi people im HNX i just recently registered and i wanted to know how can i Make an image appear and then make it disappear afterwards using flash CS3???? if it was adobe photoshop i would have just reduced the opacity but i donnu how it works with Flash CS3!! :| please help

Regards,
HNX

After Every Click How Can I Make An Image Disappear?
yo, im new to this site and i was just wondering..

after every click how can i make an image disappear?

im making a game that after every click a bullet is shot, and i need the image of the bullet to dissappear after one is shot.

PLEASE HELP ME!!!

How To Make Symbol/movie Disappear?
How can I make a movie/symbol 'A' dissappear from stage when a movie clip 'B' is clicked to show a Movie Clip 'C' instead of 'A'?

It is a basic questin but I'm new and need help. Thanks.

How To Make Symbol/movie Disappear?
How can I make a movie/symbol 'A' dissappear from stage when a movie clip 'B' is clicked to show a Movie Clip 'C' instead of 'A'?

It is a basic questin but I'm new and need help. Thanks.

Need Timer To Make Dynamic Text Disappear
Hi,
I'm new to actionscripts and I made a labeling drag & drop game using movie clips. When you drag an answer to the right or wrong position my dynamic text box states correct/incorrect. However, I would like to have the dynamic text disappear after 2 or 3 seconds. Can anyone help me with the code?

Make My Textfield Disappear Please.. Or How To Unload My Vars.
Hi

So i loaded text from a .htm file into my dynamic textfield.

problem 1) - by pressing the button "products" you can see the products.htm in the main_window (this is the name of the dyn. textfield). if you press Contact, the content from products.htm should disapear and the content from contact.htm should be showed. how?

I tried to make all textfields invisble at frame 0 and make them visible when i press a button. this seems pretty complicated though, since i always have to set all other than the selected one to invisible (visible=false). besides that, it didnt even properly work.

problem 2) i want the page to be in english and german. i was thinking that i load all the enlish htm pages, and when i user presses the "german" button, i unload those and load the german ones instead. but i didn't figure out,

all i'm acctually missing is a unload button - that would solve easily both problems. does that exists?

thanks
igu

Make Button Disappear On Root Timeline?
Hello,

I want to make a skip intro button disappear. This skip intro button is on the root timeline. I have another button that is two Movie Clips in. When the button from the two Movie Clips in is pressed, the Skip Intro button from the root timeline should disappear. So far nothing works.

Here is the code. Any suggestions on fixing the problem?

Thanks for your help.


Code:
on (release) {
this._parent.gotoAndPlay("gotoNextRoom");
__root._parent.skipButton.visible = false;

//_parent._parent.skipbutton._visible = false;
//_parent._visible.skipButton._visible = false;
//_parent._parent.skipButton._visible = false;




}

Make DropTarget And Draggable Clip Disappear
I have a simple drag n drop match puzzle.

On the draggable item (to be dropped on a target) I have the following
code:


Code:
on( press ){
this.startDrag();
}
on( release ){
this.stopDrag();
if (eval(this._droptarget) == _root.cookieT) {
this._x = _root. cookieT._x;
this._y = _root. cookieT._y;
_root. cookieM.gotoAndPlay(1);
}
else{
this._x = 320;
this._y = 250;
}
}
When the draggable item has been dropped onto its target I want both items to disappear after a few frames. How can I do this (both are separate movieclips)?


Thanks.

Clicking Anywhere On Stage To Make Things Disappear?
I'm working on a flash project that has numerous buttons on the stage that are linked to .jpgs, when a user clicks on the button the .jpgs loads.

Is there a way/code to make the .jpgs disappear when the user clicks away from the .jpgs anywhere on the stage?

Also, is there a code to make the .jpg disappear when the user clicks on the loaded .jpg?

Thanks

Make A Movie Clip Appear/disappear On Stage
Hi! james_reis here!

I'm try to make a movie clip containing a form in it to appear on stage when the user presses the "view" button and disappear (not pernamently) when the close button is pressed after they're done with the form.

I first used the box_mc.alpha = 100 to make it appear but I faced two problems:
1.) the form boxes are visible even though the rest of the movie clip is invisible. (I know that movie clips are active despite the alpha level. It's still a problem.)
2.) The close button doesn't work with the alpha = 0.

After that I tried to work on box_mc.visible=true/false in the button after the on release and they just don't work period.

How can I make the movie clip appear and disappear successfully? Is there another type of script to do it?

I attached a zip folder with my work file in it. I hope it will make more sense if you guys see what I'm trying to do. If it isn't up there I'll try to repost it.

Embedded Fonts Make Text Disappear
Hi everyone,
I just vanted to rotate some dynamically created text fields. the embedFonts is set true. Adobe and every book I have says that the embedFonts allows text rendering, like rotation. But as I removed the rotation, suprise, suprise,the embedFonts itself makes text fields disappear.
I also tryied to put an empty text box on the stage with the font embedded and works only without any rotation or rotation set to 0.
I don't understand. Do you?

Make Parts Of An Image Randomly Disappear?
Any assistance on making parts of an image randomly disappear would be greatly appreciated?

Make Movie Clip Disappear After Playing
Is there a way to have a movie clip play in a container on the stage and then when it is finished playing, just disappear on its own?

I would appreciate any help.

Have Other Buttons Disappear When Over One
Ok say i have 2 buttons on a page, is there an actionscript that will make 1 dissappear when i have the mouse over the other?

Print? Make The Button Disappear On The Printed Page
Anybody know a simple trick for keeping the print button from showing up on the printed page.
Tried the obvious things like.....

on release gotoAndPlay "hide" etc. (correctly formatted AS of course).

The solution is probably right in front of me, but I guess it has been a long day.

Certainly haven't see anything close in my searches.

Thank You

How To Make Hand Cursor Disappear Immediately OnRelease?
I'm trying to make buttons with movieclips, but I can't get the hand icon to disappear immediately when I disable the button. What am I doing wrong?

Attached is the .fla

How Do You Make This Random Moving Object Disappear After A Certain Time
Hi all!. I've just finished using this bit of simple code to get an object to move around randomly. I want to try and get it to disapear or move off the stage after say a minute (with a countdown clock in the corner starting from a minute and counting down). Anyone with any ideas on how to accomplish or approach this? Thanks!

[F8] How To Make The Mouse Pointer Disappear Based On This Scenario?
Hi,

I'm trying to make the viewing experience of this image gallery a bit better.
This is the scenario I need to script:
- when you click on a thumbnail, the bigger version opens (done)
- the mouse pointer is then invisible
- as soon as the user moves the mouse again, the pointer shows up again. And If the user "holds still" for say, 2 seconds, the pointer goes back to being invisible.

I've never really done serious actionscripting before so a thorough reply would be much appreciated!

Thanks,

Julie

How To Make This Random Moving Object Disappear After A Certain Time?
Hi all!. I've just finished using this bit of simple code to get an object to move around randomly. What I want to do is try and get it to disapear or move off the stage after say a minute (with a countdown clock in the corner starting from a minute and counting down). Anyone with any ideas on how to accomplish or approach this? Thanks!

HELP Buttons Disappear Upon Export
I have three control buttons in a Flash presentation (a play, pause and replay button) that I have used dozens of times before, but today, when I export, they do not appear in the .swf

I trashed them, recreated and re-exported. I pasted each in a separate layer instead of all in one, even uploaded my .fla file from my Mac, downloaded it to a PC and re-exported the file from the PC to see if it was a Mac issue.

This is a bizarre case of the disappearing buttons. They show up when I test export (Apple-Return), but won't make it to the final .swf file.

Does anyone have any insight? Is this a quirk anyone has encountered before?

Please help, thanks in advance.
-LN

::: Making Buttons Disappear :::
i'm trying to make a game in which buttons will disappear on release, as they run across the stage. i'm can't find any tutorials to explain the method that would give me this effect. if anyone can help or knows a way of making buttons disappear on release then reply.
cheers
cal


www.callumations.tk

www.animootions.tk

Buttons Disappear For 10 Seconds
wish to provide( actually force them ) for a brief period ... students to read text ...Rather than skim with buttons ....
so was going to hide the buttons for a few seconds ....

But I did not wish to add another button to click when they finished reading ... which would be easier

I was thinking about a simple for loop. turn the buttons visibility= false then
immediately after make them visible ...

Since I wish to do this 20 pages (twenty times)... thought I could build into my button function

then read to set.TimeOut...
Thinking .. buttons gone ..time out.. buttons back

any suggestions or other ideas?

Movieclip Follow Mouse - How To Make It Disappear When It Hovers Over A Button?
Hi there,

I have an actionscript assigned to a movie clip. This actionscript tells the movie clip to follow the cursor's x and y movement. The speed of the movie clip depends on how fast the x and y movement is. This was a script I simply copied from a tutorial. I am new to actionscript and Flash, so I have a problem adding my own touch to this script.

What I want to do is make the movieclip following the cursor disappear when you hover over a button and, of course, reappear when you leave the button. There are in total 3 buttons.

I am running Flash 8, AS 2.0, but publishing for Flash Player 7.

Now which approach should made to acheive this?

The following code is what I already have assigned to my movie clip:

code: onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}



I think I need to define two different outcomes. One would show the movieclip with alfa = 100 when it isn't hovering over a button and the other would show change alfa = 0 when it is. I think it would be great if I could make it gradually fade out instead of flickering from visible to invisible.
_alfa:100
_alfa:0

Do you need to define all 3 buttons in the script or can you add a piece of code to the script, which executes #2 no matter which button the cursor touches.
I would like to make it clear that I want this to happen when the cursor (not the movie clip) touches the button.

I have been looking through the actionscript documentation. Naturally, as a novice, it is hard to figure out which pieces I need to combine to complete the puzzle.

One of my main problems is know where to add this script, since it has to relate to the script which is already defined. As said, this script is attachted to the movie clip itself.

Many many thanks to anyone who can help me with this project. I hope this will be a great learning experience for me. I just need a good push in the right direction.

Flash Buttons Disappear In Frontpage
Hi,

I created some Flash buttons and arranged them to make a navigation bar. Eveything works great when I test it and publish it. However, when I add the Flash HTML (or just insert the Flash movie) into my Frontpage web and 'save' it, the movies disappear and all that displays in the browser is blank space. When I do a 'preview' of the page from within Frontpage, it also works fine.

Any ideas?

Thanks,
Kevin

Flash Buttons Disappear In Frontpage
Hi,

I created some Flash buttons and they work great when I test them, but when I import them into a page using Frontpage, they disappear. For example, if I create a new page in Frontpage and then insert my Flash buttons into it everything looks great and the buttons work in Frontpage 'Preview' mode, but if I 'save' the page and then view it using a browser the page will be blank. If I then view the source code on the 'blank' page in the browser I can see some Frontpage bots listing the urls, etc. contained in the Flash movie, but non of the code for the actual movie itself! If I return to Frontpage and look at the HTML code, everything is there!

Any ideas?

Thanks!
Kevin

Copyright © 2005-08 www.BigResource.com, All rights reserved