Actionscript 3 :: Flex : Menu Doesn't Hide Automatically?

Dec 5, 2011

I am creating a menu this way :

myMenu = Menu.createMenu( null, myMenuXMLListCollection, false );

and then showing it with :

myMenu.popup( 10, 10 );

but the menu doesn't disappear automatically when i click somewhere outside the menu.

Is there some way to make the menu disappear automatically when i click outside it ?

View 1 Replies


Similar Posts:


Actionscript 3 :: Flex - Hide A Menu Item From Menu?

Feb 22, 2012

How to hide menu item from Menu object ?

View 1 Replies

Flex :: Menu Control - Click A Button And A Menu Is Displayed. Click That Button A Second Time And Hide That Menu?

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

Flex :: Open A Menu Automatically With A Shortcut?

Mar 24, 2010

I have a MenuBar which contains general menu items like File, View, Tools have sub items in each of those menuitems. The problem is that i want to open the 'File' menu automatically when i press Alt+f key.I could capture the keyevents on the view.But how to open the File Menu of the MenuBar (what is the function that needs to be called from MenuBar Class to popup those sub menuitems) ?

<root>
<menuitem label="File">
<menuitem label="New" enabled="false"/>

[code]........

View 2 Replies

Actionscript 3 :: Hide Default Options In Right Click Context Menu In Flex?

Oct 16, 2009

I'm developing a flex application and I want to add it a context menu. I got it with this

code:
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();

[code]......

View 2 Replies

AS3 :: ComboBox Set Visible To False Doesn't Hide

Apr 1, 2010

I have a combobox in a view that receives information about application state changes, and then is supposed to show or hide it's children based on the whole application state. It receives state change messages, it traces the correct values, it does what it's supposed to do, however, it just doesn't seem to work. Essentially, all it needs to do is hide a combobox during one state, and show it again during another state.[code]

View 2 Replies

ActionScript 2.0 :: Doesn't Hide The Buffer Screen

Jan 8, 2010

Im trying to buffer and loop this flv player i get no errors but it still doesnt hide the buffer screen.

[Code]...

View 2 Replies

2nd Click To Hide Pop-up Menu?

Oct 7, 2009

I have a Movie Clip configured as a Button and I wanted to know how to make the cursor transform into a pointer (little hand) when it's over tat movieclipBut well that was just not the point of the Post what really interests me is that when I click that MC a Pop up menu appears (another MC) but if i decide not to click any of the buttons in that menu the menu will stay there until I click another button or something and i will want it to disappear if a click it for a second time or something like that.

View 1 Replies

ActionScript 2.0 :: How To Hide All Menu

Mar 17, 2005

I dont want to show any menu when i click right mouse.If i use:fscommand("showmenu","false");It still have 2 menuItem: Setting & About Flash 7...How can i hide all of tat.If i use code:

code:
var cm:ContextMenu=new ContextMenu;
cm.hideBuiltInItems();

[code].....

View 3 Replies

ActionScript 3.0 :: Hide Swf Menu Items?

Apr 6, 2010

Is it passible to hide swf menu items?

View 1 Replies

ActionScript 2.0 :: How To Hide Sub Menu On Mouse Out

Jan 26, 2008

How to hide the sub-menu on mouse out on the tutorial by Senocular? XML Dropdown menu [URL].

View 3 Replies

ActionScript 3.0 :: How To Hide Swf Menu Items

Apr 6, 2010

Is it possible to hide swf menu items?

View 11 Replies

ActionScript 3.0 :: Show / Hide Sub Menu Using Array

Apr 12, 2010

I'm trying to show and hide a sub menu. So what I want to do is for the sub menu to show up and stay up if certain buttons are clicked, but disappear if other buttons are clicked. I've got an array of the sub menu. If any of the buttons are clicked from the sub menu array, it should stay.

var subMenu:Boolean=false;
This is my sub menu array:
var arrSub:Array=[m8_mcButton,m9_mcButton,m10_mcButton,m11_mcButton,m12_m cButton,m13_mcButton,m14_mcButton];

When a button is clicked, I want to check to see if the sub menu is showing and to check which button has been clicked. This is the code I came up with, but unfortunately, doesn't work...

function onButtonClick(e:MouseEvent):void {
for (i=0; i<arrSub.length; i++) {
if (subMenu && e.currentTarget!=arrSub[i]) {
arrSub[i].y=-130;
subMenu=false;
}}

View 2 Replies

Flash :: Can't I Hide The Menu In CS5 Projector Files?

Jan 25, 2011

I'm making some executable / projector files in Flash CS5. Using CS4 I was able to stop the menu appearing by using flash.system.fscommand("showmenu", "false");
 
It doesn't work in CS5.  Is it a bug? Or a feature?  It's incredibly annoying - how do I get rid of the menu without resorting to an external projector program or without having to use AIR?

View 7 Replies

ActionScript 2.0 :: Hide The Context Menu Completely?

Oct 13, 2005

how to hide the context menu (built in as well as custom) completely? See the link.[URL] Nothing happens when you right click the ad at bottom-left.

View 9 Replies

ActionScript 2.0 :: How To Hide Mouse Right Click Menu

Oct 31, 2008

Is there a way to hide the right mouse click pop-up (settings & about flashplayer x). The swf i use is placed in HTML refering to two other pages with some java games. The problem is that this is running at a science center in a browser fullscreen. But people may not open a new window/tab (this happens when you click on "about flashplayer x). I found this: [URL] but is there something similar in AS2? I can use JS.

View 1 Replies

ActionScript 3.0 :: Get Sliding Menu To Hide Once It Is Outside Site?

Feb 23, 2011

URL...See how the sliding wooden menu is shown outside when it is not out. How do I hide the section outside the site? Here is my code:[code]

View 2 Replies

Video Doesn't Automatically Play When Swf Loads

Jul 5, 2009

I'm using Flash CS4 and have linked to a video that hosted on a web server with one of the preloaded flash video skins (ArcticExternalAll). When the page loads the video plays without any problems, but I would like to make it so the user decides when the video starts rather than it automatically starting when the page loads. Is there any way to do this?

View 3 Replies

ActionScript 3.0 :: Hide The Menu When Move The Mouse Over The Buttons

Feb 17, 2012

I have a menu inside flash. It's a drop down menu and it only shows options when it is hovered over with the mouse.

[Code]...

On the menu I want to have normal buttons but the problems is when I move the mouse over the buttons (Which are ontop of the menu) it thinks I want to hide the menu.

View 1 Replies

ActionScript 2.0 :: Hide Items In XML-Driven Drop-Down Menu?

Jan 14, 2010

I would like to add a "show/hide" command to an item in this menu.For instance:

<item name="home" action="gotoURL" variables="http://www.kirupa.com"/>

to:

<item name="home-1" action="gotoURL" variables="http://www.kirupa.com" show="true"/>
<item name="home-2" action="gotoURL" variables="http://www.kirupa.com" show="false"/>

View 2 Replies

Actionscript 3 - Flex / Flash - Open The Swf In A Browser Window That Doesn't Have The Browser Control Bar Or Menu?

Oct 27, 2010

The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?

View 2 Replies

Professional :: Flash Doesn't Automatically Play After Uploading To Server

Feb 11, 2010

I created a website in Flash, published it, and uploaded the swf and html file to the server. When bringing up the website Flash doesn't play automatically. I first must right click and select play.  When I was testing my flash site on another server, it worked great and played automatically.  Is there something within flash that I need to modify or is this an issue with the server?

View 3 Replies

ActionScript 3.0 :: When I Open The Projector File It Doesn't Go Full Screen Automatically?

Sep 18, 2009

I am developping a as3 project for a kiosk that should run in full screen mode.I am using eclipse for the programming and Flash CS4 to prepare all the swf library assets.Once I publish the swf, I open it in the flash player and export the file as a projector file.

When I open the projector file it doesn't go full screen automatically.
 
Where can I set the project to go full screen?In the code?Or is there a preference setting for the projector file?Or another way to publish the projector file that will allow me to set the full screen mode?I remember using fscommand in as2 but that doesn't seem to work anymore.

View 3 Replies

Stop(); Not Working - Main Menu Automatically Switches To The Next Page After About Six Seconds

May 3, 2009

I have a home page and five other pages. The five pages have a main menu at the top containing buttons that allow you to go to the other pages:

on(release){
gotoAndPlay("gallery");
}

I have an actions layer. Each section has the following action in the first frame: stop(); When I view the website the home page works correctly. However, any page with the main menu automatically switches to the next page after about six seconds. The code seems pretty straightforward so I have no idea what I'm missing.

View 4 Replies

ActionScript 2.0 :: Mouse.Show Doesn't Work On Safari(Mac) And Mouse.hide On Firefox

Jul 27, 2011

These issues only appear on Safari and Firefox on Mac.I tested with Opera and Chrome and Windows (inc. IE), but they work fine.

Mac OS 10.6.8
Firefox 5.0.1
Safari 5.1
Flash CS5.5

1 Hiding the original black arrow cursor (Firefox only)When cursor rollovers to an Invisible button (oneBtn), I want to show custom cursor (newCursor) and hide mouse. But Firefox shows the custom cursor as well as the black arrow...

2. Mouse.show doesn't work only on Safari, Mac.When rollout to the invisible button (oneBtn), the custom cursor (newCursor) hides but the mouse doesn't appear. This happens only on Safari.

stop();
Mouse.show();
newCursor._visible = false;

[code].....

View 6 Replies

Flash: `sprite.visible = False` Doesn't Hide Sprite Immediately?

Apr 4, 2011

I've got a sprite which I want to temporarily hide... But changing the .visible property doesn't do what I expect. The code looks roughly like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Menu Doesn't Load To The URL

Jan 12, 2010

For some reason the menu doesn't load to the URL that I specify in my xml file. When I click on it, it showed up as text underneath the menu itself as Link clicked How can I make it so that the link will actually go to URL that I specify in my xml file?[code]

View 2 Replies

When Publish Site / Xml Menu Doesn't Move

Dec 5, 2009

I create a flash site with a XML MENU. When I publish the site the xml menu doesn't move when you scale the browser window, but when I use swfobject the xml moves when you scale the browser (not centered).

View 11 Replies

ActionScript 3.0 :: Pop-up Hint Menu Doesn't Show Up?

Jul 7, 2011

Working on an ActionScript 3 project in CS6. Following along with the "Flash Down Under" tutorial on the Macromedia website. In the tutorial, a pop-up menu shows up when the instructor types in part of the ActionScript command. I cannot get this function to work for me, even though the commands highlight when I enter the text in full. Anyone know how I can get the pop-up menu to display?

View 5 Replies

Flash :: Menu Tab Doesn't Highlight Right Page?

Jul 9, 2011

I purchased a template from template monster. I am tweaking it, trying to replace the flash picture slider with html. I want the flash menu to remain. When I replaced the slider, the menu tabs work but the tab doesn't highlight the page its on. I use flash pro 8 action with script 1.0 & 2.0 .http:[url]......Here is AS code:[code]..

View 9 Replies







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