Actionscript 2.0 :: Click A Button Under An Invisible Button?
Jul 29, 2009
I am making a video player based on the Video Basics tutorials Lee put up a while back.
I am working on a custom controlBar with autohide. Basically, when i mouse over the video area I want them to pop up, and when I mouse out of the video area I want them to disappear. I have setup the controlBar movieclip itself with "show" and "hide" frame labels. Each one plays a fade in/out sequence a few frames long, no big deal. That is the easy part and works fine.
In order to detect the onRollOver and onRollOut events for the video area I made an invisible button on top of it called "butt". It works fine too.
Code: Select allbutt.onRollOut = function() {
trace("out of video");
controlBar.gotoAndPlay("hide");
};
[Code].....
Invisible button layer above controlBar layer: When i roll onto the video area the controlBar pops up, but I cannot access the buttons on it (play, rewind, etc) because they are now underneath the invisible button that monitors the rollOver and rollOut of the video area, which apparently wont let anything under it be clicked. How can I gain access to these buttons?
Controlbar layer above Invisible Button layer: When I roll onto the video area the controlBar pops up fine, but once I mouse over the control bar flash thinks I am leaving the bounds of the invisible button and tries to hide the controlBar right away, which causes me to "re-enter" the invisible button, so it just bounces back and forth between showing and hiding the controls.
How can I monitor the video area and still have access to the buttons on the controlBar once it pops up?
View 3 Replies
Similar Posts:
May 14, 2010
I am trying to close on as I am attempting to get this incorporated into my website. It came with the recommendation to try the CS5 today to see if this will meet the requirement at the moment.There is a desire to take custom SWF files (I think there is something called Swish files too?) from various sponsors for advertisement purposes and place them on my website.The implementation was straight-forward to make them work through the webserver.I tried a custom example of making a button that upon mouse click would open up a new webpage in CS5 which did work for me.My problem is since the SWF files are finalized, there is no way to put URL information into those files.After doing a lot of searching around today, it appears that the best way to redirect a user upon click of a video is to:
1) Open up a new Flash
2) Import the SWF video file into the project
3) Create a Invisible Button over top the SWF video so when the user clicks, they are redirected to a specific URL.
But for some reason, when I tried to overlay it with a sample SWF file I imported, there was all this flickering going on to where both were made transparent to one another on the screen not to mention the video wasn't even visible at all.My hope was that the SWF video could be seen clearly while the button remained invisbile to handle the click on the video.Is there someone on the forum that is able to guide me fairly quickly with a fast-path procedure so that I can try this?
View 16 Replies
Aug 12, 2009
i have a few buttons that use loadmovienum to load a few clips into levels. The code on each button is something similar to:
on(release){ loadMovieNum("print_index.swf",1);printbutton._visible = false;webbutton._visible = false;illusbutton._visible = false;threedbutton._visible = false;retouchbutton._visible = false;}
But because the print_index movie slowly scrolls across the stage rather than immediately replace it, there is a moment where the button turns completely invisible after the click. Perhaps the bigger problem is that it doesnt make any of the accompanying buttons invisible like it is supposed to- only the one that is clicked.
View 3 Replies
Dec 30, 2009
I have an image of a target on stage, that moves left and right. In the center of the image is an invisible button, occupying the centre circle of the target. The idea is you click the invisible button on the moving target and this starts another movie playing. Seems to me the action script should reside in the button, and be something like this:
on(release){
targetPath(this.movie2);
play();
}
View 2 Replies
Mar 3, 2012
I created a view cart button in PayPal and need to link it to a button in my fla. I know you can do this in AS but I haven't had any luck in my searches. I'm using CS3.[code]
View 2 Replies
Oct 12, 2008
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.
View 3 Replies
Jun 6, 2009
I'm trying to put an "invisible" button under part of a large button, but if I put it under the larger button, the invisible button doesn't work. If I put it on top of part of the large button, the large button doesn't work... Is there some way to make it so that both the buttons work...?
View 8 Replies
Jun 20, 2010
Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.
How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:
<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;
[code]....
View 1 Replies
Mar 11, 2010
If I have say 7 buttons, each containing text that changes color on rollover using the "Up" "Over" and "Down" keyframes in the buttons' timeline. Is there a simple way to get the button's text to change color when clicked, stay that way, and then change back to the original color once one of the other 6 buttons are clicked?
The only thing I can come up with is writing pages of code for each button that changes the color of every other button regardless of whether it was active.
View 13 Replies
Sep 20, 2010
I want to design a music button for a game like geochallenge
View 1 Replies
Jan 12, 2011
i was making asimple menu .
ActionScript Code:
var currentLink:MovieClip = a_mc;
//buttons mode[code]...........
when i click on the button the alpha of this button will be 0.5 , when i click on another button the alpha of the previous button is still 0.5 , and so if i clicked on all buttons the alpha of all buttons will be 0.5,,,i didn't want that , i want when i click on the button , alpha return to 1 for the previous button .
View 5 Replies
Nov 8, 2009
I'm designing an interface for a class, and the buttons that I am using all have multiple functions.For example, when the story button is clicked, I need the mc to stop playing and change to text (in the same window/screen, just no mc playing). The mc is 31 frames long, but if there's a way to just make it loop continuously until told not to, Currently, my code looks like this:
stop();
story_btn.addEventListener(MouseEvent.CLICK,story);
function story(event:MouseEvent):void { gotoAndStop(32);}credits_btn.addEventListener(MouseEvent.CLICK,credits);[code]...
When I click the button, the mc does not stop playing and the text does not show up.
View 6 Replies
Jan 1, 2007
i new to actionscript and am not sure where to begin so i will explin what i would like to do. i have a myspace site that i have created a div overlay with...<a [URL] now what i would like to do is use actionscript so when you click on the menu button a image wil pop up in the ipod screen and when u click the play button something else will pop up
View 6 Replies
Jul 27, 2009
i am working in cs3 flash, but saving my files to flash 8. i am having an issue with getting an invisible button to work. i never had this problem in flash 8. could you please look at the very simple file attached below and let me know WHY i am getting error messages saying: "warning: this movie uses features not supported in flash 5 player" ?? and "scene=scene 1, layer= invisibleBton, frame=405:Flash mx button instance name"
View 3 Replies
May 2, 2006
[Code].....
Ok- so the idea is that when you click a button it plays the movies assigned to the variables gallery & button to the frames mentioned. Then the variables are changed and then when another buttons is clicked it does the same - 'except it doesn't - it does it once then sits there I have to use variables because there's a lot more buttons..but i don't understand why it doesn't work - it seems such a simple and obvious thing to try and do - why is it so HARD???
View 14 Replies
Sep 8, 2009
I'm trying to figure out how to disable a button after it is click and then enable it once another button is clicked. I'm stuck on how to enable the button.
on (rollOver) {
this.gotoAndPlay("s1");
_root.slideshow.gotoAndPlay("s4");
[code].....
View 1 Replies
Dec 18, 2011
by the way you need to make a symbol and need to export for ActionScript and class name is "ball". And the button instant name is:bButton. So here's the script I wrote so far.
var boundaryRight:Number = stage.stageWidth;
var boundaryLeft:Number = 0;
var balls:Array;[code]....
As you can see that code made the multiple ball go to left and looping over and over again. So here's what I want to do. I want to make a button and when I click the button it'll change direction like click and it change direction to right. I click it again and it'll go left again. How do I write the code for that?
View 1 Replies
Apr 9, 2008
I'm trying to add a back button once I click a main menu button then remove the back button once it is pressed. I get the title error.
[Code]...
View 6 Replies
Feb 18, 2009
I am having a problem linking an invisible button to a url. I have 3 invisible buttons that have an action script as follows:
button1.addEventListener(MouseEvent.CLICK,clickHan dler1);
button2.addEventListener(MouseEvent.CLICK,clickHan dler2);
button3.addEventListener(MouseEvent.CLICK,clickHan dler3);
function clickHandler1(event:MouseEvent):void{
navigateToURL(new URLRequest("mywebsite"));
[Code] .....
After I upload the files, I can see the hand icon when I mouse over them, but when I click on that spot nothing happens. I have two text links on the same page that do work. One is an email link and the other is a url link. I have check the button names to my code and they do match.
View 4 Replies
Mar 5, 2010
I am using Flash Professional CS4. I made 2 buttons (2 rectangles,each turned into a symbol of type button). I now want when I click 1 button that the second becomes invisible. Is there a way to do so?
View 2 Replies
Jun 7, 2009
I have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
View 1 Replies
Nov 2, 2009
I have two motion-tween animated movie clips used as "buttons" which I would like to link to various html pages on my site. Using invisible buttons works, but I can no longer see the animation. If I put it under the movie clip layer, it no longer responds. Is normal, or should I place the invisible button within the editable movie clip?
View 4 Replies
May 6, 2010
I'm sure this is something easy that I'm missing, but I can't figure it out. How do I make a button invisible? I need it to be invisible through frame 43 of my movie. I have tried changing the alpha to 0, but it's not letting me change that, except in the edit button mode which changes it for the entire duration and not just through frame 43.
View 1 Replies
Sep 26, 2011
I have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing.So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf
ActionScript Code:
on (release) {
this._parent.gotoAndPlay("contact form");
[code].....
View 1 Replies
Sep 10, 2009
I have a home page, with 5 swf's that are called into a container on the main. Now when I click on the home button on i need for the embedded swf thats up to become invisible not unload because i need the information to .
View 9 Replies
May 15, 2010
Im a bit a of a noob when it comes to AS. I have a problem that I think should be very easy to solve.
I have a shape that I turned into a button and gave it an instance name of "CA" I also have an array that has a string item called "CA"
I want to be able to make the button invisible by using the array instead of just writing the instance name. I have the following code but it just doesnt work.
[Code]...
View 5 Replies
Feb 24, 2011
I'm using AS2.
I have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing.
So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf.
ActionScript Code:
on (release) {
this._parent.gotoAndPlay("contact form");
aboutmeMC2._root.gotoAndPlay("skip");
View 0 Replies
Oct 31, 2008
I've built an image scroller but I'd like to make the 'next' and 'previous' buttons invisible at the first and last frames frames respectively. The code I'm using for the scroll is below. I think the code I'm after should be something like this:
HTML Code:
if (targetX<720) {
btn_Previous.visible = false;
}
But I can't work out where I should put it (or even if it's correct) within the scroller code.
[Code]....
View 11 Replies
May 13, 2009
I tried adding a invis button on the banner ( by the way the banner is moving) but for some reason it wont let me add Action script to it to link to a url
View 3 Replies
Apr 6, 2011
i have my main timeline with all the code on the first layer all is good there. But then inside a movie clip that is inside another that plays an animation i have some more code to load an external swf.
the code works fine i have tested it but it does not seem to want to work when its put in the timeline inside a movieclip.
I know i can put it on the first main stage layer with all my code and it will work but i want it only to work after i click a button and that button has played its animation.
View 3 Replies