Flash :: Hide A Button In AS3?
Jan 13, 2010I have a button called myBtn.
In my actions in Frame 1, I have tried both[code]...
I have a button called myBtn.
In my actions in Frame 1, I have tried both[code]...
I am using actionscript 3 to make a point and click game. On frame 1 there are two buttons, button 1 and 2. On frame 3 there are two buttons, button A and B. I want it so that after I click button 1 on frame 1, button A on frame 3 will be hidden or when I click button 2 on frame 1, button B on frame 3 will be hidden. The buttons that are hidden do not do anything when you click them.
View 2 RepliesI have a question about hiding a flash button. I have 2 buttons (one for muting and one for unmuting). When I click on the mute one, I want to make it so that it hides the mute one and makes the unmute button visible and vice-versa. I have tried using the ._alpha on release for actions but its not working. I also tried using ._visible.
View 3 RepliesI have a swf file that has numerous buttons on it, and when I hover over them images appears. But when my images appears, I have other buttons (whose layers are on top of this current button layer) also appear on top of my images. I tried merging all my buttons onto one layer, but that doesn't seem to work either.
How would I be able to not make those other buttons appear on my hover state without using ActionScript?
I have two div layers in an html page. Is there a way to hide or show them by clicking a button in flash? I have searched online and haven't been able to find something that works.
View 1 RepliesI am making a flash presentation I have buttons on the top presentation that will navigate to differnt slides.The question i have is for each button I have the behaviors set to show the screen I want and hide all of the other screens.I have to go to each button and do a hide each screen one by one, I have about 40 of them. Is there a easy way to do that in bulk. I.E. If i have button 1 I want it to show only screen 1 and hide screens 2-40. Button 2 will show only screen 2 and hide screens 1, 3-40
View 1 RepliesI have set the features to be empty which works fine except in the flash player. It still shows the big play button.I realise I can manually hide this but I'd rather find the proper solution
$('video').mediaelementplayer({
features: [],
success: function (me) { [code]..........
Using ActionScript 2.0, how do I show or hide a button onclick? I am making a simple mp3 player, and would like my pause button to change to a play button when clicked, and vice versa.
View 2 RepliesI'm not happy with my hide/show function..... the code works, but I think it is a waste of space on my stage that I need two buttons to hide and show a movieclip... there must be a better way
[Code]...
I need to progress. [URL] The Adobe documentation assumes you are an expert with Flash and there are no clear cut examples of how to even show and hide a darned button, well, I can't find any referrences. I can imagine what I want to do with flash, but getting anything out of it cracks open my brain. Programming is not fair!!! for us graphic artists. Examples of things I want to study are loading images to the stage on a specific event such as "if(enterFrame == x)" ideally I would like the images to load from a directory on the server and ease in the image.
Basically I want to keep it simple yet effective. Alot of the code I see out there is double dutch to me and appears to go in the wrong direction of simplifying things. I can understand the basic fundamentals, but I wish when people post examples like myMC1.visible = true; that they explain that myMC1 is just a name chosen by the writer to look for an item called myMC1 or go the extra step and color code the code BLUE for actual code, RED for names of items given by the writer that exist on the stage etc etc...
[Code]....
I'm trying to hide my button once my MovieClip is invoked so that it will not appear behind the MovieClip?
The code I have written to get the MovieClip to play is:
[code]...
What is the syntax that I use hide my button (button_mc) while the MovieClip is playing and have it reappear once the MovieClip is finished playing? Should the syntax appear after my ending bracket or before?
I got this code but when i click on another button is is still there how do i get it to disappear? I have two movieclip one is the snow and another movieclip is an empty mc called snow2
ActionScript Code:
i =0;
while (i<25) {
//duplicateMovieClip (dot, "dot" +i, i);
dot.duplicateMovieClip("snow"+i, i);
i++;
[Code].....
I need to show or hide a button once it's clicked.I tried to google it but all samples where AS1 and AS2 related.
View 7 RepliesI want a button to show and hide a movieclip (see attached files for source) the Button is a Movieclip and has been coded using a tut I got from some where but I am stuck on how I can get it to do the show and hide part <edited part> forgot to Add that I also want to make a Text box say Grid On and off
[Code]...
I'm pretty new to flash and i'm trying to figure out how to hide a button that is on the main time line in one part of my movie clip. I tried doing "btn_return.visible = false" on the mc but its coming back saying btn_return is undefined.
View 9 RepliesI want to show/hide a symbol (movie clip) when i mouse over/out another symbol (button) and also want to move the movie clip as motion of mouse by attaching to the mouse... for this.. i think i have to use startDrag action but i am confused how.
if i use action on button like:
on (rollOver) {
startDrag("abc");
}
on (rollOut) {
stop();
}
where "abc" is instance name of movie clip it will do the work but it doesnt give effect of appearing and dissapearing the movie clip when i mouse over the button.
[URL] I've added some stuff like : a preloader, and caurina tweener (as well as I could... )and now I would like to continue to learn by hiding the previous button on first load and then hiding next button on last photo i've tried to paste this code at a thousand different places but nothing happens.
Code:
Select allif(whoIsOn = 0) {
previous._alpha = 0;
}
Here is the whole code :
Code: Select allimport caurina.transitions.Tweener;
holder._alpha = 0;
loader._xscale = 0;
[code]....
I have an instance of the flvplayback component in my movie. I have the player skin set to "autohide" and "autoplay" set to false. Instead of having users click on the play button of the skin to start the movie I have incorporated a larger play button in the middle of the screen. The set back here is that when a user mouses over the movie to click on the larger play button the flvplayback skin appears as well.
I'd like to basically tell the skin "Hey don't appear on mouseover until AFTER the large play button is pressed." What code would I need for this in Actionscript 3?
I used to play around with flash during the early days of action script 1.but now i can't seem to find my way around it. Used to be able to add the script to the button itself.here is my problem.I have 2 object movie clip instanceobject_red and object_blueand I have 2 buttonsshow_switch and hide_switchwhat I want to do is to have a toggle button show and hidethe objects on the movie.
View 1 RepliesI've been looking on google, but I have found nothing at all on this, which is surprising as it is very simple to make (I have done it in AS2).I was to have a button that can hide a movieclip. Then another button which will show it again.
View 8 RepliesI have been tasked with adding button functionality for a fence companies flash application. Specifically, the buttons will be in a drop down horizontal menu. They will have to display (and hide) certain accessories that will be placed on the fence or are a part of the fence itself. For an example of something similar, please check out the design studio at this site -[URL]. It is the application about halfway down the page and after hitting the APP MENU button, it is the top most option.note that as the fence moves (by scrollers) the accessories always stay with the fence. So, I am guessing that the whole thing is a movieclip and that the buttons are referencing?, showing?, hiding? certain aspects of the movieclip.
View 1 RepliesI have an animation that shows items highlighted in a diagram. As the items are highlighted, the audio will play (to explain the animation). because we are creating this for people with possible disabilities, we also created captions with text for the audio. So, in separate layers, we created speech bubbles and text that is synchronized to the animated actions on the screen. this will also be synchronized with the audio. We want to have a button (close captioning button) that when users press it, they see the text captions and if they press it again, they don't see the text captions. my questions are
1) what will be the easiest way to create the effect i am looking for?
2) what actionscript command will i need for the button's actions?
I know there is a way to hide a button until the video on the page has completed but how do i target this if the video is loaded as in a .flv?I use the same buttons to go to different frames in the swf and all pages (frames) have a video on them.How do i hide the button until the video has completed?
View 9 Repliesis it possible for me to hide a movie clip by the press of a button that is on a differant timeline?
here is my code for button.
stop();submit_btn.addEventListener(MouseEvent.CLICK, subClick);
failed_txt.background = false;failed_txt.border = false;
var myName:String;var myPass:String;
[Code].....
I have a photo gallery with a navigation button that allows for additional photo categories that I don't want to appear. Unfortunately, I can't open the .fla as it appears to have been created with a newer version of Flash. The code in the config.xml file is basically:
<navigation> <menu 1> <content>
</menu 1>
<menu 2> <content>
</menu 2>
etc.
</navigation>
Is there a tag I can add to make the navigation link disappear?
I have a script that once clicked ( a button ) some other thing hides then once clicked again it re-shows. the problem is once hidden it never shows again here is the script:
menu_start.addEventListener(MouseEvent.CLICK, myClickFunction);
function myClickFunction(event:MouseEvent) {
// Hide the first and show the next here
if (menu_menu.visible == true){
menu_menu.visible = false;
} if (menu_menu.visible == false) {
menu_menu.visible == true;
}}
getting a button in a SWF to hide and/or show DIV layers in the HTML page the SWF is sitting in.
View 9 Repliesmake an graphic (just a box with text in it) be shown as default, then when the user clicks (either clicks the box or anywhere or a cross - anything!) the window is hidden, then if the user wants to see the box again, they can click a button saying 'show info'.
And I looked on the forums and found ( showthread.php3?t=66284" ) << I can't post links because my post count is too low .
But I tried that (both methods mentioned) and i can't seem to get them to do anything?
is there a way to hide/show layers on the click on a button?
View 2 RepliesI just did a button and 3 movieclips. What i want? Well, when i click on the button to change the movieclips. click 1 = movieclip 1 when i click again on the button it change to movieclip 2 My problem is that i can`t make so it can change to movieclip 3.So when i click it must be something like this> click 1 = movieclip1, click 2 = movieclip2, click 3 = movieclip 3 so on...
[Code]...