ActionScript 3.0 :: Makes Button Visible...but Button Stays Visible If They Seek Back In Video?
Mar 30, 2011
when the video reaches 1 minute, a button appears. is there a way to hide the button again if the user uses the seek bar to go back to the 30 second (or any time before 1 minute) point?
i'm trying to use if statements but can't get this thing to work i want to check if another button is visible on release of a button to determine what action to be taken.the 'gotoAndPlay("firstscene",1)' is just there as an outcome, will be changed later. anyway this is the code i've got on the button i'm pressing. blobyellow2 is an instance of a button blobyellow is it because it's an instance that it's not working?
[Code]...
edit: sorry forgot to put what's wrong with the code. it acts as though the statement is correct no matter if it is or isn't.
I simply don't know the syntax.I am attempting to make something similar to a Jeopardy board for a Christmas party at work. I have a grid of buttons that correspond to different questions. The function would be as follows: The button "eng_1" (as in "English for 100 points)is clicked.This makes the button "eng_1_q" (as in :English 100 question) visible, so the question can now be read.The button "eng_1_q" is clicked, and that button is then made invisible. The question can not be seen, now we have returned to the board.The original "eng_1" is now a different colour (or left in it's "down" state) to show that the question has already been asked (not sure if this should be part of the function of "eng_1" or "eng_1_q").My idea would be something like this.
I'm using Flash Cs4 with As3 to make a project. In part of it I have an object which is invisible, but when a button is pressed is made visible. Only problem is, it won't make it visible.
I'm trying to get some buttons to work that I have in a timeline. These buttons are on top of each other and are called to be visible only when a certain image comes up.my problem is the the topmost button is the only one active, because all the buttons are "on" even though you can't see them.currently buttons are set to alpha.0 at the beginning. I know there's a way for them to only be active when they are visible, but I can't find the documentation.I have my code started as such:
I have two instances of the same button on the stage (with the same instance name) and need to make them not visible.[code]but it only affects one of the two buttons. Can I keep the two instances with the same name and get both to be nov visible, or do I have to change the instance name for one set of the buttons?
public function mc1():Void { for (i=0; i<9; i++) { c = c+30; //here my_clip is a refrence to stage var mc_new = my_clip.attachMovie("mc_bread", "bread_"+i, my_clip.getNextHighestDepth()+1, {_x:80, _y:385-c}); mc_new._visible = false; [Code] ...... See the function visibility I am trying to set visible a movieclip on a click of a button. this code gives no error but still movie clip is not visible.
I'm trying to make an online advent calendar, and I want to know whether it is possible to add an actionscript code to a button in flash, so that it wont be visible or active until a certain date?
I'm trying to know if there's a way in ActionScript 3 to load a PNG image and make some sort of button or sensible area applicable only for the visible area of that PNG??Maybe there's a simple way to define a polygonal area on execution time, I mean, dynamically and make it sensible to mouse events??
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; }}
Is there any way for AS3 to register when a timeline is playing?I want to make a button visible when the playhead is moving, (and invisible when it's not)
I have a button. When you rollover it, it shows a window next to it with some content. I want it so that if you roll off it will disappear, which I can do, but ALSO if the person clicks that same button, i want the window to stay visible, even if you roll off the button. So basically rollover = preview, click = shows permanently until closed. How can I do this?
So far I did on onRollOver event, an onRelease event, and an onRollOut event and only the rollover and rollout is working. I tried having it set a variable if the onRelease event is triggered and then if that variable was set, the rollout event wouldnt occur, but it didnt work.
I'm making game, where I must collect points. In end menu screen, i want that if my score's over 200, a next level button will be visible. Now it's visible every time when timer's out. I have tried this code if (score < 200){ this.visible == false; } else if (score >=200){ this.visible == false; }
Will the Googlebot "click" buttons on a Flex 3 site when it indexes it?
I've got a Flex 3 site. When the user clicks one of the buttons on my site, a panel opens and text appears. As the text is not immediately visible, will Google index the content in the panel? (I'm not cloaking or anything weird. It's just the normal functioning of the site).
Are there any Flex 3 developers out there who see Keywords listed in Google Webmaster Tools for text that is visible only after clicking a button?
I have a bunch of dots moving randomly on the screen. They are all copied and pasted versions of one MC with some script attached. Over the top of them is a giant invisible button. When I click the button (anywhere on thescreen) a VISIBLE button appears. When I click again (anywhere on the screen) I want all the randomly moving dots to move towards the VISIBLE button.
I've got a button on the main timeline that i only want to be visible on from frame 2 onwards. I know i could just place it on a new keyframe on frame 2 but then i can't get the AS on frame 1 to control it and i don't want to duplicate all my code. (Its static text, converted to a btn mc). why the following isn't working?
I have a bunch of dots moving randomly on the screen. They are all copied and pasted versions of one MC with some script attached.Over the top of them is a giant invisible button. When I click the button (anywhere on thescreen) a VISIBLE button appears. When I click again (anywhere onthe screen) I want all the randomly moving dots to move towards the VISIBLE button.
im making an application on the chicago bulls, its nearly finished but ive hit a problem i cant fix, when i try and move from the roster screen to any of the other screens the items on the roster screen stay visible and the script on the new screen doesnt work.URL...
on frame 1 I've got 10 movieclips and each movieclip has a toggle button to make it visible true and false.
How do write the script to do the following on frame 10?
if only 1 movieclip is visible make one_mc visible true if only 2 movieclips are visible make two_mc visible true if only 3 movieclips are visible make three_mc visible true ... so on for all 10 hope this make sense.
i have a tabbar with 10 button. when i change the some buttons visible and includeInLayout property false then tabbar size is not change..it is same as when it has 10 button
how can i make MC visible for 20 seconds when a button is pressed i tryd to do this and this is what happend when i first press the button it works perfectly but when i press the button the seccond time the MC doesnt turn visible can someon give me a sample how to do this?
I am trying to create a button that when pressed will make an movie clip visible and set it to a specific position on the screen. When this same button is pressed a second time the movie clip will become invisible.
Code://game_display_bitmapData is an object which contains bitmap data. this bitmap data is loaded from an XML file.
[Code]...
Now what happens is tht only one button is visible or workin at any point of time. But if i use say, "xyz_button" as the params for the about_button. then it works fine. i can see both the buttons. also i tried giving unique names to the button, even that didnt work.
My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?
I want to click on an object and make it appear and disappear. As the object is rectangular, I figured putting a white button the same size on a white background on a layer underneath the object would do this, but I can't seem to make it happen.I'm a complete novice, frustrated as I've been trying to achieve this all day and I'm sure it should be pretty simple, but could you give me the idiots guide. I know how to name an instance, make an object, script in actions on a separate layer. I would like to draw the button myself and give it an instance rather than drag it off the button component (as I can't work out how to make the component button white, change its size etc.!)
When the checkbox (cb1) is clicked the "my_Dyn_Txt1" is visible. The problem I'm having is - when I move forwad and back in my frames the checkboxes which were clicked are not visible due to
Code: my_Dyn_Txt1._visible = false
How can I make ("my_Dyn_Txt1"), a clicked checkbox STAY VISIBLE even after I move forwad and back in my FLA frames?
im trying to do it as dynamic as possible. I have a few buttons on the main interface, and the text for the buttons are loading from a txt file on the CD. What i want to do is have a variable in the txt file "y" or "n" so that if the button is not needed then i can hide it. I have got a dynamic text box on the root, to pick up the y or n and then what i want is if the text box says "y" then the button is visible if it says "n" then button is not. Here is the code i have so far.
Code: myLoadVars = new LoadVars(); myLoadVars.onLoad = function() { //to load the text[code].....
What I'm trying to do: build a super simple button skin (say a small circle when in up state, slightly larger circle when in over / down states) that has a larger mouse hit area than visible area. In other words, I'd like the button to look like a 5x5 circle when in up state, but transition to over state when the mouse is in a 15x15 pixel area around such circle - in order to make clicking on the button easier.
What I've done in the past is to use a transparent ellipse behind the the visible ellipse. This works nicely but seems like a waste of memory (not much, although if you start having a lot of these buttons it adds up) and rendering cycles (transparency). I thought I could avoid this by wrapping the ellipse in a group with a given size and listen to its mouse events, but somehow no mouse events seem to fire on such a group - not sure why.
I guess I'd love to know if anyone knows an efficient way to do this. Also would love to know why such a group won't fire mouse events, but I guess that's secondary. Simple code snippet below: