Invisible Button?
quick question.. how do I make my button invisible?
Thanks
FlashKit > Flash Help > Flash MX
Posted on: 05-29-2003, 01:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
An Invisible Button Seems To Be The Only Thing That Blocks Another Button
Flashkit.com,
Here's the scoop...
I'm using Flash MX however I have to export to Flash 5 for a project I'm on. Basically I am using a single .swf movie file to load numerous .swfs in level 0. I use a << back and next>> button to navigate through the .swfs. These .swfs that get loaded are all the same dimensions as the parent .swf so when I design the children .swfs I keep in mind how graphics and objects may not overlap other objects in the parent .swf unless I purposely want them to.
My problem is...
I have problems when I load a .swf in level 0 and wish to prevent the user from just clicking the next>> button. I want the user to click on or see everything in that .swf before have the ability to click on next>>. I want them to see a faded out next>> button until they have clicked on all required stuff and then see an active next>> button once finished.
What I have done...
I have used an invisible graphic and movieclip and placed it in the same location (apparently over the top) of the next>> button in the parent .swf Are you with me so far?
What happens...
The parent next>> button displays without a rollover state however when I mouse over it the cursor changes to an arrow from a hand and the script to continue to the next>> actually works.
What I have found...
The only way to block the next>> button script is to take an invisible button with no script attached to it and place it in the apparent same location as the parent next>> button. This way the next>> button displays without a rollover state, the cursor still changes to a hand however the next>> script is blocked (or not called) So I achieve about 80% of what I want.
What I was hoping...
I would like to place an invisible movieclip in the loaded .swf so it blocks any clicks to the parent next >> button. In addition I would like the cursor to remain an arrow and there to be no rollover state visible from the parent next>> button.
Sorry I'm not able to post any source files.
What do you suggest?
- Jimmy
Button No Actions + Make Button Invisible
Hi all!
So right now I'm working on this website and realized I've been running into some button problems.
First one, why is it that every time I right click on the 'Actions' of the button it either just gives me the action of the current frame I'm in or it says the current selection cannot have any actions?
Secondly, I'm trying to work on a button so that when it is rollover, everything on the flash document is replaced. The problem I'm having is that some layers are on top of the rollover button in the main timeframe and so when the cursor is on the button, some layers are not replaced. How do I fix it so that when the button is rollovered the layers on top of it cannot be seen?
More specifically:
Main Timeframe -> 'Y' Button -> on it's Rollover it has a movie clip -> in the movie clip there is a modified 'X' button that is suppose to overlap the existing 'X' button in the main timeframe
How do I do it? I would really appreciate any help!!!
Thanks!
(PS I am currently using CS3 Professional if that matters)
Button Triggers Text With Invisible Button
I am a Flash novice who has worked through a couple of the standard introductory books on Flash in Actionscript 3 and some of the online tutorials. However I cannot work out how to do the following:
A button A (I know how to design buttons including invisible ones) is on the stage. A user clicks on this button which then causes a text to appear at another location of the stage. This text includes an invisible button B. The text tells the user to click on it with the result that the text, including the invisible button B, disappears but if the user reclicks button A then the text with button B should appear again.
Invisible Button
what would be the best way for me to create an invisible button, across several scenes, that would be clickable throughout the movie.
Invisible Button
hello there,
can i set the property of a button (like i do to a movie clip) to
be invisible (and that implies unclickable too)?
thankyou,
Invisible Button
Hello, I have a button wich is invisible until runtime...I groes from 0% size 0% alpha to 100%/100% after the site is loaded, and it gives a very cool effect, but it makes it kind of difficult to place on my fla...So I figured I could make a big square underneath it and make it diseappear at frame 1 with actionscript, but that would be weird, I guess there must be a simple way to make an invisible button visible when working with it...Isn't there? If you can help, thanks in advance
Invisible Button
I know this can be done...but I can't figure out how to do it it. I want to have an invisible button. I've seen it done before but i can't get it worok on my own. Basically when you are in flash it shoes up as an tealish blue color and then after the file is exported you don't see the button except the hand cursor will change when you roll over the button area... how do you go about doing this?
Thanks
Invisible Button Help
I have a problem on my main flash project that i am doing, rather than upload the whole thing.. i uploaded two spall parts onto one .fla file.. once i get it solved on the smaller one, it will be a lot easier to fix on the real site. i need to link a button to a frame. normally i would know how to do this, but since its a movie clip button ive found it more difficult. anyways, the file is down below, and again, all i need is for the current invisible button with rollover and rollout already in it. Thanks
Invisible Button
Hello all,
Can someone tell me how to make an invisible button. I want it so that when you click any where on the right side it goes to frame 2 and then when you click on the left side it goes back to frame 1.
Just like the 'zine here at Crane -> http://www.manbaby.com/CRANE/test.htm#
Thanks,
Chris
Set Button Invisible
on button 2 i have the following code:
on(release){_root.button1._visible(false);}
I also have a button with the instance name button1,
Can anyone see anything wrong, or show me how they have done it!
Thanks
Set Button Invisible
on button 2 i have the following code:
on(release){_root.button1._visible(false);}
I also have a button with the instance name button1,
Can anyone see anything wrong, or show me how they have done it!
Thanks
Invisible Button Help, Please
Hello,
Just picked up flash a couple of days ago, trying to build a website for a friend.
I want to make some buttons that when scrolled over, change colour, but I wanted the target area to be bigger than just the text.
I followed a tutorial that said to make the symbols into movie clips.
I created a rectangle, and enterred some text into it. I have it working so that it is a white box with text that changes from grey to white when you scroll over it.
The problem is, I want it to work with a background image, but when I put this in, the hitbox appears, in white, on top of my image.
Can't see anywhere to change it's alpha value or anything.
Any help, including a complete change of how I've made my buttons would be greatly appreciated.
Thank you for your time,
Tom
[mx]Invisible Button
Ok so this is bound to be really simple, but Im very new to flash.
Ive made a button and it works and sends you to the right place but...
When i test the movie you cant see it. The button itself is just text overlayed a background image. It was staying visible for a while but when I rotated it to fit into place it disappeared, you can see it in design mode but as soon as you go to test its invisible. I tried making the button at that angle but it still disappears.
What do i do/what am i doing wrong!
Help With Invisible Button
I have created a banner in Flash 8. The banner is entirely covered by an invisible button in order to animate as soon as the mouse rolls over any portion of the banner. I would like to add a small ball animation to the banner that only triggers when it is rolled over. The problem is the invisible button is canceling it out so it doesn't work.
I've searched and searched but don't know how to word it so I get the desired result.
Can anyone help me with scripting this or pointing to a .fla that already has this function I could figure it from there.
Any help greatly appreciated!
2 Mc's On 1 Invisible Button
I have an Invisible button (for a nav. bar) already has one mc that is triggered by
"on (rollOver) {
_root.mouse_over_button2 = true;
}"
this mc is a highlighting effect that works great for rollOver and rollOut.
I now have another mc that I would like to also play on rollOver (its a subnav of the specific button being rolled over) but i've tried a Play() as and nothing happens.
Is there something against having 2 mc triggered by one button, (the fact that its an invisible button wouldn't change anything would it?
Well any and all help is greatly appreciated.
StayStrong
Invisible Button?
I’m trying to start an animation when a viewer rolls his mouse below a certain level on the stage and stop it when the mouse is above it.
I can do it with an invisible button, but the pointer changes to a hand when it is within this area and I do not want that. Can someone help and tell me how it can be done without using a button. Thanks in advance.
Mariusz
Invisible Button
how the..... do i create a Invisible Button on a new layer of a project?! please please tell me guys/galls.
thanks your beloved friend ;) andy
Invisible Button URL
Create an invisible button to link to the following url "product_categories.aspx" upon click and by default at the end of the flash intro. I have created the invisible button but the link is not working, now the frame rate is faster and it loops. Here is the flash intro at center (before trying to add this function):
http://69.30.44.104/estylezCS/home.aspx
Here is the current script on the invisible button:
invbutton_btn.onRelease=function(){
getURL("
Invisible Button
OK, so I am trying to create an inivisible button. I have googled this and looked it up on adobe.com and every list of directions I find doesn't seem to work the way they say. Can someone please give me step-by-step directions for creating an invisible button??? PLEASE! I am creating a menu with sublevels. I am using Flash 8.
Invisible Button
Can anyone tell me how to make an invisible button to put behind some text that I need to use as a link? It's been so long since I used Flash I can't remember. Thanks.
Invisible Button Problem. Please Help
i have an invsible button in a movie clip that animates when you roll on and roll off. but when i place it in a scene i cant make it work when i press it. it will only work within the movie clip. it also wont let me choose a scene or label in the dialog box. please help.
Attach Invisible Button ?
hi,
quick question , , ,
lets say you have a bunch of moving objects in
a movie . . .
how do you attach an invisible button to a
moving object that will be part of that
object no matter where it moves to,,, ?
thanks,,,,
How To Make An Invisible Button, The RIGHT Way
To many people show me there .fla and i see buttons that are alpha down so its invisible, but thats wrong. Even in great Flashbooks they decribe how to alpha down butons so they become invisible, now I will tell you how to do it the way it was intended.
Just put your graphic on the HITstage and leave the others blank.
when you go back to _root the button indicate that its invisible by
its new workstage color, turquois.
How To Make A Button Invisible?
Hi, I think this should be pretty simple but I am unsure how to use the _visible tag and how to do it.
Basically I want to make 2 other buttons invisible when I press a button.
Please could someone explain how the best way to go about this would be on MX
Many thanks
Alex
Invisible Button Is Visible
I have button on my main timeline. Each button has nothing in the up over or down state... however there is a black square that is a graphic symbol in the hit state. When on the timeline the hitstate is visible as a cyan like blue. What gives?
Thanks,
mperla
How Do I Make A Button Invisible?
I have a series of buttons, Page1 Page2 Page3 Page4 etc.
When the movie is on Page1, I don't want the button for Page1 to be a button.
Because of the way I've designed the movie, I need to be able to make the button invisible through Actionscript.
I've tried something like the following:
if(_parent.currentButton == "page1")
{
1buttonMovie._visible = false;
}
currentButton is variable declared in the parent.
The above doesn't work.
I'm pulling may hair out because I can't figure out what's wrong.
Any suggestions?
Thanks.
Jam
Invisible Button Maddness
Hi,
I am working with Flash 2004 mx pro.
I would like to create an invisible button that when the user would go over it a picture would pop up in the same screen and a song would play at the same time. And when the user is no longer over the button the picture would dissapear and the song would stop.
Could anyone tell me how this is done in action sript and anything else i should know about it.
Thanks for your help.
L
If ....make Button Invisible
hi there,
ok.I have a bunch of buttons on the stage with load different variables/movies into Dynamic txt-fields and movies....
I would like to tell the buttons if it has not loaded a variable or movie to go invisible(...not clickable)...
It doesnt matter, if it only checks for the variable or only the movie...which ever one is easier..
thanx.....
sandra
GetURL On Invisible Button
I have a huge invisible button the size of the canvas and just want to link the button so that it loads the page of an existing site.
here is what I have:
on(release) {
getURL(http://www.mylink.com);
}
what am i doing wrong? how do i fix it?
thanks in advance.
Button Invisible After 1 Press
Hi
I'm trying to build a quiz in Flash
in the first frame u have 10 buttons, when u click on any of them, they take u to a frame called "Question" and they load the q from an external text file, once the q is answered the user clicks a button and goes back to the first frame that has the 10 buttons
So far so good, but I want flash to "remember" somehow which buttons have been clicked before and give them an alpha of zero and make them no longer clickable
I've played a bit with button.enable and visible but i'm not too good with as
any ideas would be very deeply appreciated
Thanks
Invisible Button: God I Hate This
It just doesn't make any sense. I'm doing exactly what I did in other projects, but for some reason I get the following error message:
**Error** Scene=Scene 1, layer=saigon button, frame=1:Line 1: Mouse events are permitted only for button instances
on(press){
... But it IS a stinking button instance! I made the little rectangle, converted it to a button symbol, inserted it into a new layer over a photo and applied the following AS to the keyframe/symbol:
on(press){
getURL("photo_gallery_saigon.htm","_self")
}
I've done EXACTLY the same thing I did on a couple of other projects; yet the error appears on publishing. The properties tab reads, "Instance of: Button Saigon." So how does the error message come to say it's not a button instance?! I've also tried it with "on(release){", and I've tried making the photo into a button symbol.
I can understand that the program is very persnickety about details, but it drives me up the frigging wall when something makes no sense. Can anybody suggest a solution? Please?
Invisible Button Reappear
I use the following code which causes my button to diappear when pressed now how do I make the button reappear say when a reappear button is pressed?
Code:
on(release){
unloadMovie(this);
}
How To Create An Invisible Button
Yeah guys i was trying to create an invisible button. The idea is that i would have a pic and when the user clicks someone in the pic ...like a balloon would appear telling them what the person in the pic is thinking....
Hoe would u do that..?
Thanks in advance
[MX04] Invisible Button
I am new to Flash and am trying to build an invisible button so that someone can just click anywhere in my intro and go to the "home" page.
I searched the web and followed the tutorials that I found but must have missed something.
When I test the movie I get this message: Mouse events are permitted only for button instances
on (press) {
I thought it was a button!?!?
When I open my button I get this: Current selection cannot have actions applied to it.
What did I miss? Thanks, in advance, for your help.
Hit Test Or Invisible Button.
Hit Test or Invisible button.
Hi all,
I'm looking for best way to hide and show the nav on my site when the mouse is within a certain area.
I want the nav to be hidden until the mouse scrolls near the nav and then I want to nav to become visible then invisible again when you scroll away. Is it possible to use the Hit Test Movie Clip method to do this or is it best to use and invisible button and then say something like
code:
invisBtn_btn.onRollover = function(){
nav_mc._visible = true
}
I can't really think how I would do this without using onEnterFrame to test if the mouse was in a certain area, but them onEnterFrame would be running all the time and that's not a good idea is it.
Simulating An Invisible Button
Not sure how to approach this.
I want the equivalent of an invisible button that, on mouse over or click shows itself. But I also want to be able to 'show the button' programmatically.
I've created an invisible SimpleButton, but it doesn't seem possible to get it to 'show itself'. I was hoping I could use it like a movie clip and just have it run the mouseover or click frame, but doesn't seem possible.
I've tried creating a movieclip with different frames. That I can programmatically call to show itself. But if the first frame has nothing, the movie's mouse_over event doesn't trigger. I tried putting shapes in the first frame and coloring them clear, but same thing, it doesn't trigger a mouse over (guess 'no color' = 'no shape' ).
How do I solve this?
ClickTAG On Invisible Button
Hi people
Just a simple one here...
I've been asked to develop an AD banner. They have requested it have a clickTAG which i believe to be a simple case of insering the following code on any URL buttons on the banner...
Code:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
}
}
HOWEVER they have also requested an invisible button over the whole banner with the following code...
Code:
on (release){
getURL(_root.myVars, "_blank");
}
So what i've done is simply combine the the two requested codes into one on release() event, will this work as they want??
Code:
on (release){
getURL(_root.myVars, "_blank");
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG); }
}
[F8] Invisible Button Over A Video(?)
Hello I'm kinda new to the whole flash scene.
I've been working on a video player(like youtube etc) everything went good untill the play/pause and timeline box let me explain.
So what I want to do is when you roll over the mouse over the "video window" a half-transparent square will fade in with the play/pause and timeline in it and when you when you drag your mouse out of the video window again it will fade away (duh :P ).
Im a noob so the first thing that came to my mind was a "invisible button" over the whole player but that seems not to work, or I'm not scripting it right I don't know. So is there any easy way to do this in flash?
Best Regards Fred
Invisible Button Won't Trace
I apologize if this is a newbie question but I'm bashing myself in the head over this one. Seems simple so I'm sure I'm missing something obvious...
I have a pretty basic movie with things flying into place on the stage, including a menu nav. Once everything is in place, I'd like the menu nav buttons (movie clips as buttons) to be active using an invisible button.
I've place the invisible button over the area I'd like to be active (and in a separate layer) and written a trace function on the main timeline to test the rollover.
BUT when I test the movie, the cursor detects the invisible button but does not execute the trace. What's the deal??
Any insight into this is very much appreciated!
Re: Invisible Button Scorecard
Greetings Actioneers
Received a script with thanks to setup a Simple scorecard using invisible buttons
This is the webdemo link that I am using
http://www.netpulse.co.uk/score/score.html
You click on the video and it brings up a Correct or Incorrect URL. However I want to use a Score Counter and Coda kindly sent a script which I enclose below but I guess I have not set it correctly as I can't get a Score to appear on the screen when I click on the Invisible button in the video. The Invisible button instance is called 'Scorebutton' and the complete Actionscript is below
on (release) {
var counter:Number = 0;
scorebutton.onRollover = function(){
counter++;
}
}
Hopefully I have made a simple error thats quickly rectified
Thanks
Barry
Invisible Button Woes
hey all - I'm creating a dynamic menu:
Code:
function createmenu(total:Number, bgwidth:Number){
// make menu
for(var j:Number = 0; j<=total;j++){
makemenu = menu2.attachMovie("menuitem","menuitem"+j,j)
makemenu.titles.text = chap_title[j]
makemenu.titles.autoSize = true
makemenu.bg._width = bgwidth
makemenu.button._width = bgwidth
makemenu.button._height = makemenu.titles._height+10
makemenu._y = makemenu._height*j
makemenu._x = 0
}//end for
}// end createmenu
but for some reason - the button referenced above works fine if I put something in the up over down AND hit keyframes, but as soon as I change the frst three to blank keyframes, the button dies on me(no hand, no functionality)...
Also notable is that the button itself works fine outside of the function (if i just toss it on the stage) any ideas? am I missing something here?
|