ActionScript 3.0 :: Buttons Still Clickable Behind Movieclip
Nov 30, 2009
I am loading movieclips on top of one another, and that part is working just fine. Each movieclip loads another *.swf file that fills the entire stage.
However, the buttons for the previous or "parent" movieclip are still clickable through the "child" movieclip. I still get the hand cursor and complete functionality for buttons that arent visible in the current movieclip...but actually reside on the parent. It is causing me a great deal of problem with event handling as some buttons are directly on top of the buttons for the parent and it's triggering unintended events because I can click "through" the currently visible clip.
I have tried button.enabled = false; but that doesn't seem to do the trick. Is there something I'm missing in the way I'm loading the movieclips? [code]...
View 4 Replies
Similar Posts:
Dec 15, 2006
I have a menu movieclip that pops out from the right hand side on rollover. On this menu there are four buttons for menu navigation options. However these buttons are not working properly. I feel that the menu movieclip is taking precedence over the buttons because the whole menu is than clickable, while the buttons show up, however are not clickable. Here's what I have so far:
[Code]...
View 13 Replies
Jun 14, 2010
I've been using this site for a while as I'm taking flash lessons in my college and right now I am building a portfolio website and am in need of help, so I've decided to come to you for some light. My problem is in the portfolio I'm creating in AS2 I have the photo and video galleries in form of a click'n'drag movie clip that slides sideways. So far, so good. However, when I add buttons to my mc (and that includes the ones in all my video players as well), they don't work at all. I think it has something to do with the function I'm using. Is there any solution for allowing buttons to be clickable? This is the code I'm using directly in the mc:
[Code]....
View 4 Replies
Jul 28, 2009
Here're my 2 problems: 1-I did a menu moving in 3d following my mouse movement. But i would like it to have a limit of rotation on the left and on the right, cause i don't the user to see the back of the image (the image is rotating 360 right now, i would like it to rotate maybe like 90 or less). Here's the code i am using:
[Code]...
2-My second question is about my menu buttons. I want them to be on lower layer cause it help creating my 3d scene cause sometimes it is a part cover by my image on the top. But the buttons stop to be clickable when they are behind something (even a part behind). I want them to be clickable at all time. The strange thing is i checked out in the forum and a lot of people have the opposite problem... their buttons still work. How can i make mine clickable?
View 3 Replies
Sep 21, 2009
I have a layer of buttons and then on top i have this overlay that fades on at times.While that overlay is there all the buttons under it are still clickable and the cursor still changes to a hand. How can i make the buttons not clickable when there is an object on top of it?
View 1 Replies
Jul 11, 2011
I have a 2 frame flash movie where the first has a group of names that are clickable hidden by actionscript. You need to click directors, then the names come up and then click the name to go to the 2nd frame of the move which brings in their information dynamically. This has a close button that takes you back to the first frame. My problem is that when going back to the first frame after closing the CV data, it still shows the area where those names were listed as clickable even though they aren't visible.
The code on frame 1 that I think is relative is below. The movie clip that houses the clickable name list is called bodBorderMC and it's loading the directors so I'm not sure if directors in the code works with that.
[Code]...
View 3 Replies
May 14, 2010
I have a TileList with movie clips as elements. The MCs contain buttons, but I can't click on the buttons and other elements because TileList is "over" them. How to make buttons clickable? Also, I don't need highlighting in the TileList on rollover and click. How to remove this effect?
View 1 Replies
Aug 22, 2010
I am trying to make a brain anatomy game in flash CS3 and I am having some difficulty getting the buttons to respect certain proportions. Allow me to elaborate.
[URL]
And then I bring it into photoshop and make a different layer for each different structure (in the screenshot I only did it for one structure but you get the point)
[URL]
Now what I would like to do is import my .psd file into flash and make every layer a different button. But I don't know of a way to view layers of a .psd file in flash. But here's the bigger problem. As you can see, it makes the "clickable" area for the button a rectangle shape.
[URL]
Whereas I would like for it to be the shape of the specific structure. If the clickable area is a rectangle then there is an overlap onto other structures which is not at all ideal. Especially when I get into smaller structures. What I want is for the button to be exactly like the layer in photoshop.
View 3 Replies
May 31, 2010
I'm ultimately trying to create a flash page for an html website that has a brief five-second animation during which 3 buttons fade in (buttons then become clickable after the animation is over).
The animation part is done. Right now, I am trying to get my movie to stop and hold on the last frame, where I want to add the 3 buttons that the user can click on to take them to one 3 different html pages of my website.
All instructions that I've found online have said to create a new layer for actions, insert a keyframe on the last frame of the movie, and add stop(); in the actionscript window. However, when I have the keyframe selected, my actionscript window says "current selection cannot have actions applied to it".
I definitely don't have any objects selected, just the keyframe.
You can see that I have the frame (a keyframe) that I want to insert a "stop" action selected in the Actions layer. This is the first frame in which the buttons exist, and from what I can tell, I need the clip to stop on the first frame of my buttons, after my animation is over. (Still figuring out how to get the buttons to work, but will address that later...)
[URL]
View 1 Replies
Oct 27, 2005
Iv'e got a problem, when creating a movieclip inside a movieclip. I create 5 movieclips dynamically... I want a clickable tag/box on each of these moviclips...
[Code]...
View 9 Replies
Jun 25, 2009
I am building a fake Windows looking OS in Flash for a project of mine. So far I have a clickable start menu, and I want the categories inside the start menu to be able to be rolled over like in Windows and open up to clickable links. Just click the start menu in Windows, and then scroll into "All Programs". I want to be able to have scrolling buttons like that. I am using Adobe Flash CS3 Professional and Actionscript 3.0. I've only ever used Flash in the past to make cartoons and things of that nature.
View 3 Replies
Apr 12, 2010
I made a help screen that pops up when the user clicks the "help" button. To accomplish this, I place the movieclip on the top layer, and set it's _visible to false. When the user clicks "help", visible = true, and BAM, help screen appears. The problem is that all of the buttons underneath my helpPage movieclip are still clickable.
View 2 Replies
Jun 11, 2005
I am trying to make a search interface that behaves much like searching in iTunes and Spotlight in that the list is updated instantly as the user types something in the search field. However, I would like the lines that result to be clickable and to fire actions inside flash (as opposed to launching an URL). Is this possible?I've gotten the basics down. Here's what it looks like and here's the source FLA file. The results are displayed as tabbed lines of text in a single text field. Is there any way to make these lines clickable without replacing this way of displaying the results with multiple, duplicated button/mc-intances?
View 6 Replies
Jan 18, 2010
I have created a webpage with a html menu and flash embedded underneath it.The problem is, the flash movie is in an index layer of -1 and the html menu needs to sit above it in index 1 for example.If the menu sits behind the flash the buttons are inactive, if the flash sits behind the html menu, its buttons are inactive.I have a div layer for the html menu and it not as high as the flash movie, but it doesn't make a difference, its seen as sitting behind and therefore the buttons don't work.
View 2 Replies
Feb 25, 2011
-this is supposed to make multiple buttons with text(not clickable yet) -it seems to coppy over, or remove the previous myButtons[i] movieclip each time it goes through the loop. -there are 3 strings in buttonText.length -on the output i get 0,1,2 -but on the screen I only see one gradient (its only a pink box, but one problem at a time) -the box appears where roughly the 3rd button should be. -full code attached
View 14 Replies
Dec 8, 2009
Having problems with a buttons which is inside a movieclip and this movieclip is under another button.The buttons is not clickable anymore.I have a panel which is having a button when you rollOver the movieclip will goes up.And I want that the buttons which is under the movieclip is clickable.When I rollOut of the movieclip I want it to go back to its original positional tion.[code]...........
View 1 Replies
Jan 28, 2011
I am making a game in flash cs5 as3 and what I want to happen is for when I click on a button that brings out my movieclip I want to beable to click on another movieclip and have it go to a certain frame, and I want the first movieclip to be deleted. Right now I have it so that if I click any where on the stage then it gets deleted, and thats good, but I want to beable to play a different frame in the movieclip i am clicking on.heres my code so far:
Code:[code].........
I want newketchmc to be able to click on the newmovieclip and newmovieclip goto a certain frame while newketchmc dissapears.I know I need to use an event listener but Im not sure where to put the event listener or how to even begin codeing the function that I want to do.
View 0 Replies
Jul 26, 2011
I am trying to do panning of a movieclip I have two movieclips on stage. canvasPanel_mc and mask_mc. The former is the maskee for the mask (mask_mc). Inside mask_mc there is a movieclip dragCanvas_mc. The alpha of dragCanvas_mc is set to zero. This is code that I am using:
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_DOWN,onStartDrag);
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_OUT,onStopDrag);
mask_mc.dragCanvas_mc.addEventListener(MouseEvent.MOUSE_UP,onStopDrag);
[code].....
View 2 Replies
Jul 27, 2011
Making a Movieclip which is set as mask clickable and respond to MouseEvents
The structure of your layers that I have on stage looks like this[code]...
View 2 Replies
Sep 4, 2010
I created a class that turns a movieclip into a clickable button. But for some reason it only works on one of my movie clips and not the others, even tho the other movieclips were created as duplicates. It saying that its a null object Below is my code for the class.
Code:
package {
import flash.display.MovieClip;
[code]......
View 0 Replies
Dec 25, 2009
I have a movieclip which works as a button. But I also have a movieclip which doesn't preform anything when you click it. The button-movieclip is behind the other movieclip. I want to be able to click the button even if I click the movieclip. But since the movieclip is in front of my button, I can't.
View 3 Replies
Oct 21, 2005
I'm creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.Now the menu bar is twice as WIDE as what is visible on the stage.The only part you can see is the text 'menu' on a bar.Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.
On the last frame i have the 'stop;' code
On the first frame I have this code:
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
[code]....
View 2 Replies
Jan 21, 2009
Originally, the client wanted to control "hero_mc" using the keyboard but now they would like to control him with buttons only. Here is the original code on the "hero_mc" which works as expected:
[Code]...
View 2 Replies
May 20, 2009
There are 2 buttons to animate the movieclip on moving right or left and making it appearing and disappearing. However, the button react after a few second the animation finish. Does anyone know how to make the button work faster? this is the script for those buttons
one of the button
on (press) {
if (tt == false) {
import mx.transitions.Tween;
[code]....
View 1 Replies
Oct 29, 2009
How could one set up a movie clip that has usable buttons in it? If i understand correctly, the movieclips actions will override all the button actions...?
For the purposes of my project, I need a MC that ive set up to loop across the screen with my buttons on it.
View 4 Replies
Oct 22, 2010
I've created a movieclip of a trashcan, which falls over and 6 items fall out of it. I want each of these items to become a button, which will jump to a different point on the timeline.
The movieclip is all working fine, and the buttons appear to be fine. The problem is when I publish the flash, the movieclip resets each time I hover over one of the buttons, so i get an endless loop of this trashcan falling over and the items falling out.
View 1 Replies
Nov 25, 2010
scene 1 has a movieclip in the top left on the stage (called poster_mc) ... the image on the screen is of a museum enterance. double click on the movieclip to go into the movieclip; the first frame has the museum enterance and the second frame has a gallery.I created a button called door_mc which when clicked, allows the user to go 'inside' the museum into the gallery. this is the code i used:
poster_mc.stop();
poster_mc.door_btn.addEventListener(MouseEvent.MOU SE_UP, nextPicture);
function nextPicture(e:MouseEvent):void
[code].....
View 1 Replies
Apr 8, 2009
I'm putting together a site, that has 3 pages and I'd like the content to move into position when the menu button is clicked. So, 3 buttons etc, 'Home, Portfolio, contact" and one movie clip that contains the info. I'm not really a programmer [URL].
View 1 Replies
Apr 13, 2009
I have a movie clip with hit zones over buttons. It looks like a cam corder and when you roll over them a thumb moves to that button and when you click. The thumb presses on the button. That all works great. I want to put buttons in the main scene over top of these that will change things on the screen when you click it. And get urls of the videos that I have on my website. But when I put the hitzones over other hitzones the ones in back dont work. Is there a way to make them both work or am I going to have to make everything contained in the movie clip? So in short can I have two buttons on top of each other that do two different things?
View 8 Replies
Sep 24, 2009
I have 5 movieClip buttons. I want the GALLERY button to stay on the stage at all times, "which it does" but i want when the user clicks on 1 of the other 4 buttons for the remaining 3 to disappear. Example...when the user clicks on the KIDS button, the COUPLES, PORTRAITS AND BELLIES buttons disappear, or when the user clicks on COUPLES, for the KIDS, PORTRAITS AND BELLIES buttons to disappear, and so on.
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
[code]......
View 16 Replies