regarding the events related to menubar sub items, here is some code iam working with
[Code]...
i want to handle events wen particular subitem is clicked for example ,if submnu item hod of cse is clicked it should go to the particular mxml page ,and if hod of ece is clicked it shold goto other page how do i differentiate each page of particular deparment how do select that particulasr item of that particular submenu itm
Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.
Well, I was able to simply enough (after about an hour of googling) implement i18n (internationalization) into my Flex application by having to reverse engineer the Flex SDK and do a lot of digging (a specific question on here helped me a lot! (with some updates for flex 4.5)).The problem is, I can't use my {getLand('key')} bind inside an <fx:XMLList> (how you define the contents of a <mx:MenuBar>. I've included some example i18n below, as well as an example of the menu bar.
<!-- Example of proper (working) i18n --> <s:TextArea text="{getLang('Rules')}"/>[code]..
As you can see there is Vision and Contact Us but the eventHandler doesn't know when those two are clicked. What is the correct way to implement the eventHandler?
I have an mx:Menubar, which I need to be able to open/expand based on the key pressed. For e.g., if Shift + R is pressed, it needs to open the 'Request' topmenu. Then if Shift + N is pressed, it should load the 'New request' module in the module loader. I've already implemented the MenuBar/module-loading functionality with the mouse, but I haven't been able to implement the keyboard shortcuts. I found a nice sample at [URL].
However, the solution directly performs the action (e.g. Shift + N to load the 'New request' module). The menu does not open/expand when you press the shortcut as though you had hovered your mouse over it (e.g. Shift + R to open/expand the 'Request' topmenu and then Shift + N to load the 'New request' module).
I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get it working.
I have a little concern. I started trying to make a MenuBar control with custom icons already made in FXG format. I have 3 FXG files in "assets.graphics.icons" inside my project folder:
I have a MenuBar which opens downwards except when there isn't enough room to open it. For example, it may have 10 items but there's only enough room to display 4-5. Flex then tries to display the menu above the bar, which is completely off the screen. Is there some property or style I'm overlooking to always force it to open downward?
EDIT: Thought I'd give some clarification as to how I plan to circumvent the issue. If I can always force the menubar to be orientated downwards, I can make it into a scrollable menubar displaying only a few items at worst.
I've created a custom MenuBar to make this happen. But it just doesn't seem to happen. It never renders any of the changes I made to the Graphics.What am I doing wrong?[code]
I have this MenuBar control in Flex 3. How can I programmatically change the toggled property to false? <mx:MenuBar labelField="@label" itemClick="itemClickHandler(event);" left="0" right="0" top="0" id="menuBar"> <mx:XMLList><menuitem label="File" data="top"> <menuitem label="New" data="file-new"/></menuitem> <menuitem label="View" > <menuitem label="Grid" type="check" toggled="true" data="view-grid"/> </menuitem></mx:XMLList></mx:MenuBar>
LinkeSetFx has its own CollectionEvent, but I don't know how to map the LinkedSetFx event to mx.events.collectionEvent(I want use it in ComboBox). LinkedSetFx is in AS3Commons-collection framework.Here is the url, choose the as3commons-collections-1.0.0.zip, you'll find LinkedSetFx in srcorgas3commonscollectionsfx
I've got a rollover menu bar of buttons that opens up a list of sub-items below each button when you roll over it. Pretty standard, right? Then once that movie plays (sub-items appearing), a thin box appears both around those items and the menu bar's actual button, meaning that once the mouse pointer moves off of either the button of the sub-items, the movie disappears (that's what my invisible button is set to do). And herein lies my problem.
While the button works almost always, if I drag the mouse pointer very quickly over the active area, the button fails to activate. So I can literally keep my pointer at one side of the screen and race it over to the other side, activating all the sub-menus and making them stick in their 'open' position. Someone on these forums suggested increasing my framerate and I've set this to maximum. It makes the problem less frequent, but doesn't fix it. This problem happens both in the preview window and my browser (Firefox, Vista).So I guess at this point I either need a way to 1) Fix the problem and make them close, either by tweaking what I already have or making a rollover menu by a different means or2) Add something to each item like a 'timeout', where if there's no pointer present for, say, 1 sec, the it closes automatically. But I don't know if such a thing exists, especially in an older version like MX.
I'm developing a multi monitor fullscreen application with Adobe Air 2.6. I can create a window for every monitor, and put those windows to fullscreen. theWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; The problem comes when interacting with those windows. If I click the window on the main monitor (the one with the dock and menu bar) no problem, but when I click any other window the system menu bar becomes visible. I've tried resizing the main window to match the monitor size and moving it to a negative coordinate but it always stays behind the bar. Is it possible to do this in Air?
I'm trying to look for tutorials on getting my AIR application to OSX's menubar when minimized. However, when I try to search for it, I end up getting examples on doing it for the system tray on Windows and the Dock on macs. I don't want the app to stay on the dock when the window is not visible. I want it to minimize to the menubar instead. EDIT: I don't want to learn about working with the OS X dock (on this post at least). I'm interested in working with the menubar. (See image below.)
I would like to have menuItems with checks that show what element of the menu has been selected. I know it is possible to have checks with XML. But is it possible to have variables in XML because the elements of my menu are variables. If there is a component on sale that has exactly the design of the flash component menuBar + menu and that is more easy to program,
Is there a way to store the clicked menuItem index of a clicked menuItem on a menuBar component?I need to be able to create a previous and next button that relates to the currently clicked menuItem of a menuBar. My menuBar dataprovider is an XML file. So I'm thinking it should be possible to show the nextSibling or previousSibling according to the clicked menuItem of a menuBar
I m new to this forum & flash. I need to create a wbt which can run thru a 56K modem. also i want to know how can toolbar & menu bar of browser be removed when i publish it.
Is there a way to store the clicked menuItem index of a clicked menuItem on a menuBar component?
I need to be able to create a previous and next button that relates to the currently clicked menuItem of a menuBar. My menuBar dataprovider is an XML file. So I'm thinking it should be possible to show the nextSibling or previousSibling according to the clicked menuItem of a menuBar
How can customize the horisontal position of the menubar-buttons? The ones I make always appear at x=0 of the menubar. And if I create some blank ones to sidestep the menubar, they always become small buttons with no text (they still show, though).
How can customize the horisontal position of the menubar-buttons? The ones I make always appear at x=0 of the menubar. And if I create some blank ones to sidestep the menubar, they always become small buttons with no text (they still show, though).
I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component?
I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:
i have following problem, when i create box in action script and whe i addEventListner for drop accept, and if i add this box to some parent box, then this event is not working, if i add this event to not child but to parent box, then it is working, what can i do if i want create many boxes, add to them events listners and then add them all to some other parent box?