Hiding The Buttons
Hi
I got the problem while hiding the movieclip inslide the frame. can anybody help me how to hide the movieclip. and I am also having the poblem while hiding the buttons.
Sathya
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-08-2002, 09:46 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Hiding Buttons - Then Showing - Then Hiding
I have an issue
I want to click a button and have it dissapear then another button to appear.
I have that susted,
However, im using a mask and as the second button shows behind the mask it dispears again
i'll send the file if anyone needs more info
PLEASE HELP ME !!! - BEEN BUGGING ME FOR AGES
NAble Sea
Hiding Buttons Or Movie Clips With Buttons With Actionscripting
Greetings,
I really need someone's help. I am trying to hide buttons from screen when certain conditions are set. For example, I have a variable called Amount. Now, I have a textfield that displays the value of Amount. Three buttons are visible. Each button has actionscript so when click each button would subtract some amount from the variable Amount. Button 5 will subtract 5 from Amount and button 10,20 accordingly. Now, when Amount is less than 20. I wanted to make the 20 button disappear from the screen (not using timeline, object oriented actionscripting). Then when Amount is less than 10 the 10 button will disappear.
I tried making the button disappear with "five._visible=false;" However, I was told I could not do that with buttons. So, i created a movie with button inside. It disappears with "moviefive._visible=false;" But the button does not work when visible. I can see the little hand when I place the mouse over the button, but it does not work. It does not subtract from the variable Amount.
When someone clicks the five button, five button has code that will subtract 5 from Amount and if statements that will "twenty._visible=false;" if the Amount is now less than 20.
Could someone please help me. Thank you very much. I really appreciate any assistance you could provide.
Thanks again
Hiding Buttons
Any way to make buttons invisible (or non-clickable) when a another movie is loaded on top? I don't really need them vissually invisible (I can't see them when the opther movie is loaded on top) but the curser does turn into the hand. Need them unclickable when movie is loaded on top.
Hiding Buttons
I have a button that I would like to become invisible when it has been clicked.
How do I do this?
Also when I click another button somewhere else on the stage, I would like it to become visible again!
Is there an easy way?!
Cheers
Chris
Hiding Buttons
I have some buttons on a bottom layer. I have a movie clip on a layer above the buttons. When the buttons move underneath the movie clip I want their functionality to be disabled, i.e.
1. I do not want the user to be able to click them and have a resulting action
2. I do not want the mouse to change to a hand
A common fix is to place a clear button with no actions between the two layers. This fixes problem 1, but does not fix problem 2.
Any suggestions short of hiding the mouse and dragging a movie clip to resemble a mouse icon?
Flash Buttons Need Hiding
take a look at www.geocities.com/doomsday_productions
um.... i need to make it so that the the secondary buttons arnet clickable or visable when you move the mouse over them.... but only when the buttons themself are invisible.... is there any way of doing this
I use Flash MX and have been for 1 week
Plz Help, Thankyou for your time....
Exaltae
Hiding Buttons Within A Slideshow
I guess this is the proper title. Here is the problem I also included the .swf so you can see what I'm having trouble with. The 9 buttons (thumbnails) when you click one of them it will start a movie clip that will go ontop of the images. The problem is the buttons are still active and if you know where to click you can click there and it will show the picture. How can I make the buttons deactivated upon click, but resume its original function once the movie clip is closed.
Here is the .swf.
If you can help please post, I'm a newb when it comes to flash and I've been breaking my brain trying to figure this out.
Hiding And Showing Buttons
I’m new to Actionscript so please bear with me.
How can many buttons be visible, except when the mouse rolls over each one, then all that should be showing is the corresponding overstate image?
Thanks in advance
Hiding Buttons Under Movieclips
Hi,
I have a draggable menu movie clip I am attaching over the rest of the contents on stage. The problem is, whenever the menu is over a button, the user can still activate that button by clicking on the part of the menu over the button. I have attached a small movie to demonstrate what I am talking about. Anyone have any idea on how to prevent buttons under a movieclip from working and even registering?
Hiding Buttons On The Stage
I have a thumbnail gallery consisting of small squares, which when clicked reveal a larger mosaic image directly below. The problem I have is how do I hide all the small squares when the larger image is in the over state. I’ve included a small example that demonstrates the problem.
Hiding Buttons Under Movieclips
Hi,
I have a draggable menu movie clip I am attaching over the rest of the contents on stage. The problem is, whenever the menu is over a button, the user can still activate that button by clicking on the part of the menu over the button. I have attached a small movie to demonstrate what I am talking about. Anyone have any idea on how to prevent buttons under a movieclip from working and even registering?
Hiding Buttons Onload
How do you hide buttons on load?
I can put the following code into the first frame of an action script layer but it turns the buttons off for the whole movie.
this.button._visible = 0;
is there an on load command like for movie clips?
Hiding Layers And Buttons With Actionscript
Hi,
Can anyone help?
I need to either:
Hide a button instance (that is not a movie clip) ie render invisible using AScript
Or
Hide a layer using Ascript
I am sure it is very easy....
Thanks very much
Ed
Hiding Buttons Underneath Layers
hi,
i currently have a scene in flash acting as an image gallery, which contains thumbnail images. When i click on a thumbnail, the full size image appears as the top layer of the scene ..... but the thumbnails underneath are still clickable
is there a way of making these unclickable without making all the thumbnails visible = false?
Thaks in advance for the help !
tony
Passing Variables To Flash4 And Hiding Buttons With Actionscript
Could anyone help me? What im trying to do is the following:
Pass the variable Switch=Off to a flash 4 .swf on the web. The swf picks up this variable in its coding, then a button called switch is either hidden/dissabled (Switch=Off) or on/enabled (Switch=On). I'm passing the variable in the querystring between pages in a jsp session, so i need to make everything happen dynamically.
Has anyone done this before? Is it soooo simple that it totally bypassed me?
Many thanks for your help.
Hiding MC's
what is the best method to hide MC's that u wanna use but in specific time/place. Is is to use visible=false and then make it true when you wanna see it? or to make that MC with empty first frame and put stop there and then goto Action to the second frame when you need that MC...or attach method from library?
or something else?
Hiding A Mc
Im hoping someone can offer some assistance....
I have a swf I have created that changes a number of values of text fields dynamically based on a sliders position. I would like to hide a mc (bolt) when one of the textfields (TextFieldVDC) values is 0. The existing script I am using is below. Does anyone have any suggestions on how I could do this?
function calculation(val) {
fieldvoltage = 30-(val/10);
trace(val);
// assign to TextFields here
TextFieldVDC.text = fieldvoltage +" VDC";
TextFieldwinding1.text = (Math.round((120.2*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldwinding2.text = (Math.round((121.7*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldExciter.text = (Math.round((78.3*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSensor.text = (Math.round((17.4*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSubwinding.text = (Math.round((18.6*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldDCwinding.text = (Math.round((16.8*(fieldvoltage/24.6))*100))/100+" VDC";
}
slider_mc.slider_mc.onPress = function() {
startY = this._parent._ymouse-this._y;
this.onMouseMove = function() {
newPos = this._parent._ymouse-startY;
if (newPos<=0) {
this._y = 0;
} else if (newPos>=this._parent.bg_mc._height-this._height) {
this._y = this._parent.bg_mc._height-this._height;
} else {
this._y = Math.round(newPos);
}
this._parent._parent.calculation(this._y);
};
};
slider_mc.slider_mc.onRelease = slider_mc.slider_mc.onReleaseOutside=function () { delete this.onMouseMove;};
slider_mc.slider_mc._y = 54;
// TextFieldVDC.text = 24.6;
// TextFieldwinding1.text = 120.2;
// TextFieldwinding2.text = 121.7;
// TextFieldExciter.text = 78.3;
// TextFieldSensor.text = 17.4;
// TextFieldSubwinding.text = 18.6;
// TextFieldDCwinding.text = 16.8;
// just to test it
calculation(slider_mc.slider_mc._y);
Hiding Mouse
Simple, yet i HAVE NO CLUE type question.
I got another cursor, a sword, to flollow the mouse but:
A) it lags behind when i move teh mouse too fast, or much, it does eventually catch up but this could be frustrating, since it is in a game and:
B) I done the the code to make the mouse cursor, the arrow, be hidden i was told _root.mouse.hide, or _root.hide.mouse
but niether work.
can either of these be solved(i know the latter can be, i just cant figure it out.)
Hiding The Preload
after the intro or your main site is loaded my preload always stays inplace i dont know what to do to make it gone or hide it can someone please help me out.
How Do You Go About Hiding And Showing MC
If i have 2 buttons that target MC 1 and MC 2
MC 1 = false
if MC 1 = true
else MC 1 = false
MC 2 = false
if MC 2 = true
else MC 2 false
((I think that is the logic????? i don't know))
if i want so hide MC 1 and show MC 2 when I click on button 2
Is there a tutorial out there?
Hiding Layers
Need help. I have a movie on level 1. I am loading another external movie onto level 2. My problem is that the buttons on level 1 are still coming through the movie on level 2. How can I make it so that the movie on level 1 remains underneath level 2, but the buttons become inoperable. Thanks in advance.
Hiding PASSWORD Value?
Hi FK..
how can you hide a password value with ********i know its something to do with
TextField.password=true
but how is this implemented in the movie? my in put variable is called "pw12" and is located on the first frame of my movie.
Any help appreciated i have searched FK to no avail...
Thanx in advance
Hiding Layers
got a quick question for you people.
Is it possible to hide and show layers of a timeline via actionscipt? if so how is it done.
Thankz people
HTML Is Hiding Some Of SWF
How do I get my browser to scroll down and show this entire SWF? I've tried changing the movie size and the number of pixels defined in the html code, but nothing works.
http://www.bbm.net/discountloops/discountloops.htm
Thanks!
Hiding The Toolbar
I've done this before, but can't for the life of me remember how..
I'm creating a .exe file from a .swf and I don't want anyone fiddling with the control/view/file settings etc.. how do i turn em off?
Many thanks!
Sven
Hiding Your ActionScript Like This
Take a look at this game:
http://www.orisinal.ws/games/sea.htm
I tried to open the SWF with Action Script Viewer 3.09, and I couldn't see the Action Script. What is the trick to hide the code like that?
Hiding The Placeholder
im trying to replace swf with a static jpg if the viewer does not have flash installed ................so far its been ok table with background of the static image and the swf positioned on top ......this shows the graphic no problem ................only thing is you can still see the place holder for the swf e.g the little white box with a red x inside it ( like for an image that isnt there ) anyone any ideas on how to get rid of this ?
Hiding Url In Window
Am I able to create a link on my button to open a new window and hide the url (address)? I don't need to resize it, just a basic HTML window. Thanks.
Jared
Hiding A Layer.
Is there code which I can apply to a button that when released will hide a layer on my main timeline?
much thanks for checking this out.
-h
Mouse Hiding
Hi, this is probably really easy. I have a movie clip set as teh cursor and I want it to make the area underneath it invisible so that it can see the layer underneath it - how do I do this?
Thanks,
Alex
Hiding Movies
ppl,
So i have a number of different movie clips on the main timeline. For arguments sake lets number them 1-4.
In a separate movie clip, there are 4 buttons. I would like it so that when a button is pressed, a piece of action script initiates which hides the other 3 movies on the main timeline, and therefore only plays the movie clip which the user selects.
There may be another way that i have not thought about, such as loading each movie into a container on the main timeline each time a button is pressed - but i have no idea how to do this !
Any help is greatly appreciated.
Hiding Lines
I'm creating a little scenario whereby a moving image (movieclip) is behind another graphic. Problem is, I can see a sort of ghost outline of the clip that plays behind the graphic.
Is there any way of making the image that is behind the graphic being completely masked by it ?
Hiding Something To Show Something Else?
hello, im kinda stuck right now... what im trying to do is if you click on one of the links it highlights then tabs come out, then if you click on another it does the same. my question is - how would i have it so if i click on one it shows then if i click on another it hides and the other shows
im guessing ill use an "if then" statement but i wouldnt know how to write it... ive provided a link for the swf if you need the fla let me know
http://webmedia.bcit.ca/~a00572953/menu.swf
-Cody
Hiding Mc's Inside An Mc
ok i have buttons on the main timeline which i need to be able to set to hide movieclips inside a movieclip!!
the movie clip i need to hide has the instance name "pt1" and the movie clip which contains "pt1" has the instance name "page1"
any ideas???
many thanks
Hiding An MC/Button
I have a few custom buttons, each a seperate MC with instance names but I need to have it so that on(release) of one of the MCs, it makes itself invisible.
Thanks & Regards, Jonnie
Displaying And Hiding MC's
Hi,
Situation:
I'm currently working on a Flash app where you can place furniture on a drawing of a house (top-view). The furniture is represented by movieclips and placed on the stage with the 'attachMovie' command. I have an array (called storage) where i keep track of the furniture's id, name, xpos, ypos, rotation, heigth, width and floor. When a new piece of furniture is placed on stage, a record will be added in the storage-array. When a piece of furniture is moved or rotated, the storage-array is updated, by looking up the name of the editted movieclip in the array.
Problem:
Since there is a possibility to switch between floors (3), i have to hide the current floor's furniture and display the new floor's furniture. This doesn't seem to work out the way i did it: i just delete (unloadMovie) the mc's from the stage (NOT FROM THE ARRAY) that carry the current floornumber, place the new pieces of furniture back with the attachmovie command. BUT, however the newly placed pieces carry the same name, id and so on, it just isn't the same piece...No matter what action i do, i always refer to a piece of furniture via the array...
Question:
Is there a easy way to hide and display MC's that are placed on the stage with the attachMovie command?
Thanks!
Hiding Layers
Hi -
I'm very much a newbie to the world of flash and I just need to know if there's a way to hide layers when they aren't currently in use. I'm hoping that it's something really easy and I'm just being dumb.
Cheers,
Helen
Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.
To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.
How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?
Any help most appreciated.
THANKS
LEE
Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.
To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.
How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?
Any help most appreciated.
THANKS
LEE
Hiding FLV After Playback
Hi All,
I have an embedded FLV video via the mediaplayback component in a flash file.
Basically, after it plays, the mediaplayback screen stays black. I would like it to not be visible when the clip reaches the end, revealing the image on the layer below it.
Any ideas?
Thanks
Hiding Animation
Please let me know if the question is hard to understand, and maybe I can try explaining a different way.
When hovering the mousecursor over a button, I want a seperate image to appear, and play an animation. So the animation is not on the button itself, but on a new image that appears. I have managed to make the image appear and the animation to be played.
The problem I am having is that if you hover the cursor over the exact area on which the new image appears, the animation is also played. Is there any way to hide this so that the image only appears when hovering the cursor on the button?
I hope my explanation is understandable. All help is very appreciated!
Hiding A Button
can someone tell me how to hide a button when I enter a frame
so I drag the button to my stage on frame 2,and I want the button to hide when I enter the frame
how do I do it ?
thx
[F8] Hiding Some Symbols
I don't know if these codes are correct....
Code:
var player_so = SharedObject.getLocal("player", "/", false);
if (Player_so.data.timerMode == 0) {
used._visible == false;
}
used is a text box converted into a symbol and player_so.data.timerMode is a boolean sending back whether it's free mode or not...
I want to hide the used symbol if it's free mode. Is this correct?
Hiding The Preloader...
Hi all,
I'm trying to have my preloader be completely hidden once the movie has loaded so when someone reloads the page they dont see it flash before the animation starts.
This is what i've thrown together based on some preloaders from other tutorials but i don;t think its working:
code:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
gotoAndStop(int(_parent.getBytesLoaded()*100/_parent.getBytesTotal()));
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Thanks,
Nick
[F8] Showing/hiding MCs
Hello
I've got a small problem here using MCs.
There's three in the same frame, and I managed to get them to work correctly; that is swapping depths and all.
But when i switch frames, the movies would stay on top of the other frame, which I don't understand.
So I've made a little research and used the _visible attribute, to hide them. That worked well too.
However, if I come back the the frame where the 3 MCs are, everything would appear to work as it did right before; but when I click on the MCs, it looks like the "mc.gotoAndPlay" and "mc._visible" won't work anymore (swapDepths works): mov1 is on frame 1 and the others on 8 as they should, but when I click on the others, they all get stuck on frame 1 (big). When I click "ret" again, the MCs won't hide.
Here's my little AS:
code:
var oldDepth:Number;
mov2.gotoAndPlay(8);
//start small
mov3.gotoAndPlay(8);
//start small
mov1.onRelease = function(){
if(this._currentframe!==8){
this.gotoAndPlay(15);
//go to full size if clicked while "growing"
}
else if(this._currentframe==8){
oldDepth = this.getDepth();
this.swapDepths(_root.getNextHighestDepth());
//bring to front
}
this.gotoAndPlay(9);
//make big
if(mov2._currentframe!=8){
mov2.gotoAndPlay(2);
//make small if not already small
};
if(mov3._currentframe!=8){
mov3.gotoAndPlay(2);
//make small if not already small
};
};
//same for mov2 and mov3, cut not to make a huge post.
ret.onRelease = function(){
mov1._visible = false;
mov2._visible = false;
mov3._visible = false;
//hide MCs on frame change
gotoAndPlay(203);
}
In short: works on first go, but not when you come back to the frame.
Please help, thanks
Help With Hiding Button
Hey guys, I need some help hiding a button that I have in a drop down menu. The button works when the drop menu is activated but I can also click on it when it's not. My Actionscript looks right so I don't really know where I'm going wrong. Any help would be greatly appreciated!!!!!!!!
[F8] Showing, Hiding Etc.
Hello,
I'm trying to solve the following problem.
I have a page with 5 buttons on it.
I would like each button to trigger a movie. This is how I would like it to work:
i.e.. You click a button and the "ABOUT" movie plays (a piece of paper slides onto the screen)
Then when you press "CONTACT" the piece of paper slides off the screen from whence it came and the "CONTACT" movie plays.
I would like this to happen for all of the buttons.
I've crated each movie so the in the first 7 frames the movie plays (the piece of paper slides in). Then in frames 7-10 (paper slides out)
What button actions/actions do I use to make this function properly?
Many Thanks,
M
Layer Is Hiding On Me... Help
Ok this is most likely a dumb question but I am really new to flash and I am learning on Flash CS3. I have 4 layers and the problem I am having is that I have one layer thats hiding behind the other and I can't seem to bring it to the front. This seems like something that would be simple. I have tried clicking on the layer and then pressing modify, arrange, bring to front. But that does nothing.
Can somebody please tell me how to get a layer to come to the front while designing.
Thanks!
|