ActionScript 3.0 :: Menubar Handling & Slideshow Simultaneously?
Jan 5, 2011
I have created a simple menubar and handle the buttons via (as an example)
home_btn.addEventListener(MouseEvent.CLICK, HOME_clicksection);
function HOME_clicksection(evtObj:MouseEvent) {
gotoAndStop("home");
[code]......
View 0 Replies
Similar Posts:
Dec 21, 2010
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.
View 3 Replies
Nov 11, 2011
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]..
View 1 Replies
Jan 3, 2012
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?
View 1 Replies
Mar 27, 2012
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.)
View 1 Replies
Aug 31, 2006
Hey, how do I use the menuBar component?
View 1 Replies
Apr 30, 2010
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
View 1 Replies
Aug 9, 2010
I have a menuBar that looks like this:
<mx:MenuBar id="myMenuBar" labelField="@label" cornerRadius="8" color="black" fillColors="[green, green]" itemClick="menuItemClickHandler(event);"
dataProvider="{menuBarCollection}" change="onTopSelection(event)" />
The XML for my menuBar looks like this:
<menuitem label="Vision">
</menuitem>
<menuitem label="About">
[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?
View 3 Replies
Oct 17, 2010
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).
View 1 Replies
Jul 19, 2011
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,
View 0 Replies
Feb 6, 2008
I have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.
1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.
View 1 Replies
May 29, 2008
i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.
View 1 Replies
Mar 11, 2011
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.
<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">
</mx:MenuBar>
View 1 Replies
May 3, 2011
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:
src/assets/graphics/icons/MenuIcon.fxg
src/assets/graphics/icons/ItemAIcon.fxg
src/assets/graphics/icons/ItemBIcon.fxg
After reading the following two links and a bunch of web pages.
[Code]...
View 1 Replies
May 23, 2011
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.
View 1 Replies
Jun 26, 2011
I wish to skin MenuBar, and change it's itemSkin to something else, like different background color for each menu item.
View 1 Replies
Jul 28, 2011
I am using a MenuBar in Flex:
<mx:MenuBar labelField="@label"
width="100%"
cornerRadius="0">
[code].....
View 2 Replies
Apr 1, 2005
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
View 3 Replies
Oct 17, 2002
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.
View 3 Replies
Apr 1, 2005
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
View 3 Replies
Sep 8, 2010
How to disable the shadow on submenu in mx:menuBar component?
View 1 Replies
Jan 5, 2012
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]
View 1 Replies
May 5, 2004
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).
View 1 Replies
May 5, 2004
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).
View 1 Replies
Feb 7, 2011
If I have a menubar that has an XML datasource like:
<mx:XMLList id="menuList">
<menuitem label="Parent1">
<menuitem label="Child1">
<menuitem label="SubChild1" />
[Code]...
How can I make it so that clicking on Child1 will cause a click event despite it having children?
View 1 Replies
Mar 22, 2011
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>
View 1 Replies
Jul 20, 2009
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:
[Code]...
View 5 Replies
Mar 25, 2009
I have a 'master' SWF file that calls in about 6 external .SWF containing graphics. This 'master' also pulls in external .FLVs (some that are video+audio, some that are audio-only) and makes the file the contentPath of my FLVPlayback component. On some of my Point of Interest buttons (numbered buttons that direct the user to view content), both FLV and SWF are being called. Locally (on my own computer), the videos sync together perfectly (graphics changing to match the audio description). But when i test the presentation on a 'testing server' (i.e. the internet) There is a pronounced lag between the SWF and FLV.
My question is: How do I code the AS2 to NOT play either the FLV or the SWF until BOTH have loaded completely? I'm looking for ideas and pseudo-code right now to point me in the right direction. I'm leaning in the direction of an event listener coupled with getBytesLoaded and getBytesTotal. Probably simple as an if statement with a listener and getBytes function?
View 1 Replies
Aug 22, 2009
to load 2 movies simultaniously on the same page but in 2 different HTML layers? see example here: [URL] notice the menu on the bottom of the page. it seems as though thats a seperate movie... (try resizing the browser window to get a better idea...)
View 1 Replies
Nov 24, 2009
I would like to make a small player where two sounds* can be compared.
- PLAY and CHANGE buttons
- On pressing PLAY button, two sounds (Sound-A and Sound-B for example) should play simultaneously (at the same time).
- While those two sounds play, Sound-B should be MUTED and Sound-A should be hear.
- On pressing CHANGE button, the situation changes: Sound-A is muted and Sound-B can be hear. And vice-versa.
*two sounds: both songs are the same, but one of them is remastered
View 2 Replies