ActionScript 3.0 :: How To Hide Swf Menu Items
Apr 6, 2010Is it possible to hide swf menu items?
View 11 RepliesIs it possible to hide swf menu items?
View 11 RepliesIs it passible to hide swf menu items?
View 1 RepliesI 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"/>
How to hide menu item from Menu object ?
View 1 RepliesI've two Combo Box(CB). First CB contain 4 items(drop-down menus) and the 2nd CB contain 12 items. I want that when I select one of the items from Combo Box1, then only 4 out of 12 items from Combo Box2 should be visible. So actually I want first combo Box to act as filter. Could this be done using the AS3 code.
View 5 RepliesI am working on a DVD User Interface for my final project in Photoshop. For extra credit points I am trying to figure out how to make the menu items to light up when the pointer is touching the menu icon.
View 1 RepliesI need to add a couple menu items to an existing Flash menu that I did not create, but I am having trouble figuring out how to make the buttons stay highlighted until you click another one. Best way to simply describe my problem since is to simple show you. The first 5 links work exactly as they should. But the last 2 (Careers and Client login) do not stay go highlighted on the loaded page. [URL]
View 9 Repliesscrolling 2 sprites. Look at the image below. [URL] FLA LINK (please take a quick look)[URL] I have this entire program working but i need to scroll the left menu and the menu where all the items are added. One more thing, the right menu can have only an few items at a time that do not need scrolling but when more are added then the scrolling will need to take effect.
View 0 RepliesI have a LineChart continaing 6 lineseries. I should be able to pass parametrers to server using HTTPservice. But then the returned XML may contain information for a single line series or for all the lineseries. The problem, if we have a value for a single lineseries , the legend should contain also only one item and similarly for multiple items. [code]...
View 1 RepliesI have a List of items which is based on the contents of the "category" that a user selects
When the user changes selection, I change the dataProvider of the list be be the contents of the current category.
Sometimes the list contains items, sometimes it does not
Is there a way of hiding the list when it has no items?
I know that I could do this when setting the dataProvider, but it seems like there should be an event or something else that I could be using.
I have plot chart with an 'itemRenderer' to render the text. I have the renderer working corrrectly. Now, what I want to show/hide some of the chart tiems if it's below/above some value. I am using the 'Label' component as 'itemRenderer' and overriding the 'data' function (find my renderer component below..).
If the size of the dataprovider of the chart is greater than '100', I want to hide all the 'events' with 'low' severity. For that I need to get a reference to the dataprovider, but not sure how... ?
public class EventChartItemRenderer extends Label
{
private var chartItem:ChartItem;
private var evtLblTxt:String;
[Code]....
I have made a flash application and in this flash application I have included a jigsaw puzzle. The application is wrote on one timeline and certain frames are used as different pages within the application.
The problem is once the jigsaw drag and drop are moved the pieces are displayed on all frames instead of just the one jigsaw puzzle frame I created.
How can I make these drag and drop items not be shown on the other frames?[code]...
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]....
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 RepliesI 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].....
How to hide the sub-menu on mouse out on the tutorial by Senocular? XML Dropdown menu [URL].
View 3 RepliesI'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;
}}
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?
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 RepliesIs 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 RepliesURL...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 RepliesI 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.
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 ?
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]......
I'm creating an xml generated gallery/menu, I have the gallery and menu populating fine but my issue arises when I try to make the menu items clickable.
This is inside my populate menu function
_root["mainMenu"+[i]].onRelease = function() {
trace(this);
var splitThis:String = this
var splitThisArray:Array = splitThis.split("Menu");
trace(splitThis)
trace(splitThisArray[1])
};
Now the trace output I get is
_level0.mainMenu1
_level0.mainMenu1
undefined
Although when I set splitThis to "_level0.mainMenu1" manually I get "1" or whatever number comes after "Menu".
Why these menu items won't open the specified url's in the same window? (won't open them at all)
And why is there no hand cursor (like normally when you mouse over a link)?
See the .fla attached
I have two PNG images that have text in them as menu items. When clicked, a new XML file is loaded and new set of photos is displaying.Everything works fine, but I want the menu item to be highlighted when hovering the mouse over the item. In other words, so that new image is displayed in place of the old one on MOUSE_OVER, and the old image is back on MOUSE_OUT.
As of now I have two menu items, Portraits and Weddings, movie clips where they are displayed are MenuPortraits and MenuWeddings
I have following properties:
[Code]...
I do see switching of images, but if I leave mouse over - it switches back and forth with high speed. Eventually, when I move mouse out - it can stuck on highlighted state.
I am trying to learn how to add sub menu items to my main menu which is being generated using XML. I have been able to add the top level menu items but I am not sure how to integrate the sub menu items. a link to my development site [URL] In my code I have a variable showInMenu this value is true if it is a top level menu item and false if it is a sub menu item. If I list out the XML menu items they look like this where About Us is a top level menu item and Our Mission is a sub menu item of About Us. how to set up the sub menu items. I attached the fla with xml file.
[Code]...
I am just getting to know flash, i am working on my website fully made in flash cs 4 and photoshop.
My problem is that
how can i make a fade out on my menu?
when one of the menu-buttons is clicked a "new wall" is sliding down. how can i make the "new wall" to slide up before a new wall is sliding down?
here is a link to want i have made so far- [URL]
I've been trying to create a menu bar like this [URL] but the menu bar I create doesn't come over the items on the website. How to create those type of menu bar.
View 2 Replies