ActionScript 3.0 :: Keep Focus On Menu Buttons?

Oct 24, 2011

I have a menu which consists of several buttons held with a movieclip (menu_mc) on the stage. You can select a menu option with a mouse click. However, I need to be able to use the keyboard too.

So I've set an keyboard eventlistener and that works, but only if the mouse has clicked on the main stage area first.

If I click on the menu_mc movie clip (for example selecting a menu option with the mouse) then the keyboard eventlistener doesn't work (presumably it's taken the focus off the stage?)

I think this is to do with the focus - so how do I keep the focus on the stage.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Hierarchical Drop Down Menu - Make Every Sub Menu Item A Movie Clip And Insert Them Into Buttons?

Feb 12, 2004

I need a tutorial for a hierarchical drop down menu system that drops down 3 sub levels. Do I make the items in the sub menus individual buttons and then insert them into a movie clip or make every sub menu item a movie clip and insert them into buttons?

View 1 Replies

ActionScript 3.0 :: Creating A Menu With Three Movieclip Buttons On A Main Menu?

Nov 12, 2008

I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.

View 4 Replies

Actionscript 3 :: Flash Buttons Take Focus Off Of Screen

Jan 27, 2010

In my flash movie, every time when I click on a button, it takes focus off of the stage. And I have to reclick the stage in order to interact with it again. Is there away to fix this issue. I am making a game and it will be very annoying if the player has to keep reclicking the stage in order to take control of the game every time they click on a button.

View 1 Replies

Actionscript 3 :: Flex: Rotating Buttons And Changing Focus

Aug 26, 2010

I've got a problem with rotated buttons in Flex. They seem to contaminate other components' focus rectangles. Take the following source code, which couldn't be much simpler:

[Code]....

Now execute it. Click in the text area, the focus rectangle is correct. Press tab twice, the focus rectangle aroung the TextArea is rotated! Is there a fix for this, or should I avoid rotating buttons altogether? I'm using Flex SDK 3.5.

View 2 Replies

ActionScript 2.0 :: Buttons Lose Focus Passing Data

Jun 7, 2006

Very strange. I'm using the following function to pass characters to 2 text input components, but sometimes (and much more often with the "Password" field), after I click a button, the button loses focus and I have to move the mouse to regain the rollover state and be able to click the button again. When I've lost focus, if I click the mouse, it just changes the button to the rollover state but doesn't pass the value...

Here's the code:
var Focus:String = "";
function KeyPadButtonClick(_id:Number) {
// default the focus to the UserID
if (this.Focus == "") {
this.Focus = "UserID";
[Code] .....

View 3 Replies

ActionScript 2.0 :: All By Buttons Lose Their OnRollover Focus After Using GetURL?

Jul 7, 2007

After a user clicks a button the getURL passes some variables to a js function that displays an html lightbox type effect. After closing the lightbox and returning to the page underneath all of the buttons are now no longer clickable

View 2 Replies

ActionScript 2.0 :: Buttons Within Movie Clip - Sub-menu Won't Stay Open In Order To Click On Buttons In It

Jul 25, 2007

I am creating a navigation bar in Flash (which will then be used in Dreamweaver). When you mouse over each topic in menu (ex. Products), i want it play a movie clip (so it shoots out a sub-menu underneath). so far so good, but the only thing is, the sub-menu won't stay open in order for me to click on buttons in it. For each button, I assigned it the Behavior to go to a url. Also, I tested the buttons within the mc and they don't seem to direct me to url. do you think maybe it's because it's nested within the movie clip?? Is there an easier way to go about this?

[Code]....

View 2 Replies

ActionScript 1/2 :: Make A Menu That Has OnRelease Buttons On Top Of OnRollover Buttons

Mar 20, 2011

I'm trying to make a menu that has onRelease buttons on top of onRollover buttons (the onReleases are on a separate layer from the onRollovers). The onRelease buttons take the user to different urls, and the onRollover buttons are supposed to allow different parts of the menu to appear.

The onRelease buttons work fine, but I can't get the onRollover buttons to work consistently. Sometimes the onRollover buttons will correctly advance to a different frame, and sometimes they "stick" and do not advance. The script has no errors and I've tried changing the sizes of the onRollover buttons (in case they were too large and the cursor was hovering over more than 1 at the same time), changing the order of the code for the onRelease and onRollover commands (in case the onRollovers were being superseded by the onRelease commands), and countless variations of the layers and frames.

I'm sure that you'll want to see the script, but I don't think that pasting it all on this post would be reasonable? So I've put the .fla and the .swf on this page for reference: [URL]

View 6 Replies

ActionScript 3.0 :: Creating Drop Down Menu When AddEventListeners To Check The Clicks On The Invisible Buttons On Frame 19 Of The "menu" Movieclip

Nov 10, 2009

I'm creating a drop down menu and when I addEventListeners to check the clicks on the invisible buttons on frame 19 of the "menu" movieclip, it gives me an error. T really hate doing rollover with actionscripts. The download link for the fla can be found in below. Sorry for posting an external download link as the file is 7mb+! [URL]

View 2 Replies

ActionScript 3.0 :: What The Focus 2 - Automatic-focus - Clicking To Be Able To Detect Key Input

Mar 8, 2011

[Code]...

when i have this line active(the red one) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)

View 1 Replies

ActionScript 3.0 :: Finding Out When A TextField Has Focus And When It Loses Focus?

Jul 13, 2009

Does anyone know how to do this in AS3?

View 3 Replies

ActionScript 3.0 :: TLF Focus - Set The Keyboard Focus For A TLFTextField And Cursor?

Sep 14, 2010

can I set the keyboard focus for a TLFTextField? I tried stage.focus = myTLF but there is no cursor...

View 2 Replies

ActionScript 1/2 :: Buttons And Dropdown Menu - Roll Be Able To Select Anything From The Dropdown Menu?

May 7, 2009

I'm creating a webpage, and I have made some buttons.Image 1 is the homepage, which is frame 1 in Flash.Image 2 shows that when I rollover the button "Portfolio,"I get a dropdown menu.I have this set as frame 3 in Flash.Image 3 shows that I've gone down the dropdown menu and rolled over "Photography." But if I rollout of any of the things from the dropdown menu, it stays at Image 2 (Frame 3)with the dropdown menu visible. Which is a problem...I want to be able to rollout of these buttons to revert back to the homepage, Image 1 (Frame 1).But, for instance, telling "Graphic Design" to go to Frame 1 on rollout means that if I try to go below "Graphic Design" to "Photography," I've rolled out--and so the rest of the menu disappears.So I want to roll be able to select anything from the dropdown menu, and only rollout to Frame 1 if I go outside the entire dropdown menu, not just one button.

Attachments:
3.jpg
(134.5 K)

View 5 Replies

ActionScript 3.0 :: Keyboard Focus Not The Same As Focus?

Mar 16, 2009

I have a TextField called textField on the first frame of the main timeline, and this simple code.

Code:
import flash.events.KeyboardEvent;
import flash.events.FocusEvent;

[code]......

View 2 Replies

ActionScript 3.0 :: Way To Menu Buttons

Jan 12, 2010

I have a set of menu buttons made in flash ac3 (menu.swf). the menu buttons goes with menu.htm for example.I have another swf for example about us (about.swf). this swf goes with about.htm.
 
the index.html loads the menu.swf and the main.swf.
 
I hope some expert can point me in the right direction:

Is it possible to make the ac3 code, able to, tell the menu.swf buttons when clicked (on the about button), to go to the about.htm but load the exact frame/label of the about.swf.
 
in other words what i trying is, to make it more seo friendly. to have menu.swf to go to the exact content of another swf.

View 1 Replies

ActionScript 2.0 :: How To Add New Buttons In Menu

Nov 15, 2005

I have an FLA that I want to use for a menu I'm making. Currently, the menu is designed for 4 buttons and it has an indicator that slides along under the buttons to show which button the user is on. My menu needs to have 6 buttons. It should be very simple to add 2 more buttons to this piece, but every time add new buttons, the indicator slides way off to the left when I roll over the new buttons I've added, instead of sliding under them like it does with the original buttons. I've attached the original FLA. How to add new buttons without having this problem?

View 3 Replies

Drop Down Menu Transparent Buttons

Jul 1, 2010

I have followed a video guide on how to make a drop down menu in Flash CS4 ( AS3) with a few modifications. Instead of dropping down, it appears to the left of the "button" and it's a fade in fade out effect.And instead of text in the buttons, I've put in .png's. One png for normal button, another png for mouseover.The problem is that when I put the mouse on the original button ( the one meant to activate the menu) it activates the menu, but when I try to put the mouse on the menu, the menu dissapears.I've tried putting the layers in different orders but it didn't work.[code]

View 2 Replies

ActionScript 1/2 :: Menu Buttons Not Disappearing?

May 29, 2009

I have knowledge of HTML but this is my first flash project, and I think I'm way over my head. I followed a tutorial explaining how to make menu buttons and I realized that the actionscript for a drop down menu should work for what I'm trying to do.  So I finally have everything the way I want it but I'm pretty sure I have a bit of wasted code in there.  Now, my issue is when I play my flash and move my mouse really fast over the flash object sometimes two menu buttons appear. I'm sure it is because of the ._alpha > 0 code I'm using but I dont know another way around it. If you have any advice PLEASE share!! Here is a link to the swf file...http:[url]....
 
This is the code (for two buttons) I use to make something disappear when I RollOver another button:
 
calplate_btn.onRollOver = function () { if(scan_large._x > startX) {  myTweenB.stop();  myTween2.stop();  scan_large.enabled = false  scan_large._alpha = 0  scan_large._x = startX }  if(scan_large._alpha > 0 ) {  myTweenB.stop();  myTween2.stop();  scan_large.enabled = false  scan_large._alpha = 0  scan_large._x = startX }[code].......

View 4 Replies

Buttons - Making A Drop Down Menu?

Sep 2, 2009

I am attempting to revamp a website. The buttons that are currently being used are only gifs that are hyperlinked and there are almost 12 buttons... I think that this is a ridiculous amount of buttons to have. It looks very cluttered. So, I figured I should make 6 buttons and just fit the rest of the buttons into subcategorized buttons. And the way to do this is to create flash buttons with drop down menus. To see what I mean, go to this link and look at their buttons:
 
[URL]
 
Their buttons drop down into menus with sub-categories. I want to do this.
 
So far, I have gone into flash, created buttons and made graphics for the "Up" "Over" "Down" and "Hit". I have also added the menu buttons and graphics for the "Over" of each drop-down button-menu.
 
I have even provided the action script to link each button to where I need it to go.
 
HOWEVER, here is where the problem is. When I roll the mouse over the button, and then move the mouse down to click on one of the buttons in the drop down menu, the menu disappears, OF COURSE, because the mouse goes off the hit. I can't make the hit bigger, because the menu shouldn't open unless it's on the main button. But without the hit being bigger, the menu will always disappear.

IN ADDITION, I've never used flash buttons on a website before. I'm just using HTML. How do I link the button to the page? Do I save the file as a .swf flash file? And link to 6 different files? Or do I save the buttons in a line, and just use one link?

View 2 Replies

ActionScript 2.0 :: Slide Down Menu With Buttons

Jan 28, 2009

I can't seem to find a clear explanation specifically relating to forwards/backwards tween with buttons.

I have a menu bar that I want to slide down, on Rollover and slide up, on Rollout... and have buttons on it/or appear on it.

So if someone wanted to navigate around the movie they would move their mouse to the top right, a bar would slide down and then they could access the buttons on it. However if the mouse is rolled off at any time the bar slides back up.

I've managed to get the bar sliding up and down but my problem is with the buttons. When the mouse rolls over the buttons that have loaded in front of the menu bar, the bar flickers... I guess because the menu bar can't see that the mouse is still rolledover, when the mouse is over the button in front of it.

I was thinking that the code could tell the MC containing the menu bar to pause when the buttons are rolled over - but I may be barking up the wrong tree.

I've attached my fla/swf to show the simple example of where I'm up to.. it may have been overcomplicated by my attempts to load the buttons on frames of the tween.

View 4 Replies

ActionScript 2.0 :: Drop Down Menu Buttons

Jan 7, 2012

I am having an amazingly frustrating problem here, I created a drop down menu with different buttons and I want these buttons to send me to a different scene in the flash document, again, Working with AS2.When I click the button in the movie clip, all it does is it closes the menu and doesn't direct me to the frame I need, but If I copy the button, and paste it outside the movieClip, it works just fine.[code]

View 2 Replies

ActionScript 2.0 :: How To Retract Menu Buttons

Jun 2, 2005

I've created a menu, using 4 buttons inside of a movie clip. When one of the buttons is clicked the other 3 come sliding out and stay out. How can I reclick the same button to get the 3 buttons to slide back?

View 2 Replies

ActionScript 2.0 :: Blurring Buttons In Menu

Sep 10, 2008

I have a "tag cloud" style menu and want to blur out the other items/buttons when one button is hovered on. I need to attach to each button so that this can work somewhat easily?

View 1 Replies

ActionScript 3.0 :: Have 8 Text Buttons On The Menu?

Nov 27, 2010

I am making a dress up-like game but I am having problems with my buttons. I want to have 8 text buttons (hat, shirt, pants, etc) on the menu and when you click on the text button, the image of hat will appear on the figure, so I'm not asking drag and drop kind of effect.But I still want to be able to click on the hat and make it disapper,what's the actionscript I'll need to do this??

View 6 Replies

ActionScript 2.0 :: Buttons In RollOver Menu?

Mar 13, 2005

I'm trying to create a menu, where some buttons becomes visible when the user "rollOver" a box the buttons is beneath. Look at http:[url]... menu system, at the main page.I place my buttons within a MC, and gives the MC this AS:

[AS]onClipEvent (load){
change = false;
}[code]....

But when I move the mouse over the buttons, they aren't enabled, probably because flash got the idea that the MC is above the buttons, and that the MC is a button.

View 2 Replies

ActionScript 3.0 :: Reusable Buttons / Menu Items?

Jun 16, 2009

A good button should have all the available out, over and down states, and often there are a bunch of nice to haves such as animation, disabled states, filters, you name it. I seem to change my mind in each project I do. The last one, I reskinned and extended the Button Component. The project before I extended SimpleButton Before that I built my own custom class using a Sprite and TweenLite. Then of course you need to work out if you will use library items which is great for laying out on stage, or do everything from scratch using code, which is more powerful but crap for design. I haven't looked at the swc or component route myself.

View 1 Replies

Buttons In My Drop Down Menu Aren't Linking

Jun 25, 2009

I made a drop down menu following the tutorial here. My problem is that the drop down buttons don't link to the respective scenes. Their rollover states work.

When I work on the drop down menu movie clip directly from the library, the button links work.[code]...

View 1 Replies

ActionScript 3.0 :: Making Buttons In Menu To Go To Pages

Jul 1, 2009

I am attempting to make a flash website, and have 5 buttons on my menu. I made 5 pages in a movieclip called "content". I want to know how I can link those buttons to go to those pages (actionscript and where to put it).

I have seen flash website templates, and see only ONE button, but when I looked at it in an .swf, it shows all buttons with their specific text label.

View 18 Replies

ActionScript 3.0 :: Dropdown Menu Buttons Appear But Not Active

Mar 3, 2010

I'm currently working on an AS3 scripted drop down menu and for the most part it works exactly like I had envisioned with one small hiccup. The issue I have is if you accidentally navigate away from a button that creates one of my drop downs before the script has finished running the other drop down buttons will drop down but not be active until you go back to the original button and finish the script. What I believe will fix the problem is to disable the other main menu buttons until the script has finished. I could just disable at the beginning of the script and enable at the end but there are 5 flyouts and 9 buttons on the main menu. This would add up to a ton of extra code. So how could I create a block of code that disables the buttons and another block that will enable them at the end of the script but be able to call them in each script?
And here is my site that I'm currently working on. [URL]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved