ActionScript 2.0 :: Menu 1 Open, The Rest Closed?
Nov 2, 2005
I have an animated dropdown menu with 7 buttons. Each button slides down it's submenu.They're setup so that they open when you click them, but automatically close when you move the mouse out of the area of the given menu/submenu. If i permitted for more than one submenu to be open at a time, then size of the menu in total would be too big.Ok what I need is that, in plain language, when menu 1 is open - the rest is closed. But the menu 1 will close when you click menu 2, not before. OK, if my explanation was too lame here's the real thing, so you can get the idea of what i want:
View 1 Replies
Similar Posts:
Apr 23, 2006
I have a list of collapsible move clips. When any of the clips is closed or opened the rest or the clips in the list react by changing position. I had this running with and on enter frame event. But that was a memory hog when too many items were in the list. So what I want to do is this. When any clip is closed or opened it triggers this function
Code:
function resetY() {
for (var i = order; i>=many; i++) {
this.onEnterFrame = function() {
_y = previousitem._y+previousitem.box._height;
roundB4me = Math.ceil(previousitem._y+previousitem.box._height);
[Code] .....
View 4 Replies
Mar 10, 2006
I have created an XML driven Drop Down menu using the kirupa tut by Senocular found here. I am trying to figure out how to get the submenus to push the rest of the main menu down on rollover kind of like this. Not sure where to start to get the AS to get the button created fromt he XML nodes to move down.I haven't changed the code found int he tut too much and the menu works fine except that the rollovers just go over the main menu.
View 1 Replies
Jun 4, 2004
I would like to display a message in flash "we are open" or "we are closed" based upon time. Naturally I can do this for the users local time on their system, but is it possible to work out if their time is different to UK time (GMT) and display those messages accordingly. After all I don't want a user to see a message "we are open" at 1pm their time - they could be in Japan and it'd be about 4am UK time. Is this possible to work out the time difference on any system?
View 1 Replies
Jun 15, 2009
Haw can i see if the colorpicker component it's open or closed ?
View 6 Replies
Mar 25, 2011
we're developing an app that should be able to open specified file with default editor application. (so if it is .doc - it suppose to be opened by MSWord or openOffice)
But I also need to wait until user will close the editor, check if it was changed (by size and date), and upload it to the server.
So the following steps:
1) find def editor
2) open file
3) wait it be closed
4) do smth after that with the file.
now results of my research:
-> opening by def editor is simple: file.openWithDefaultApplication();
but there is no way to know that editor is closed (maybe by checking that file is not locked in timer???)
-> i can start the native process and pass file as parameter BUT looks like the code NativeApplication.nativeApplication.getDefaultApplication(file.extension); does not work for any extension :( - it doesnt work for "rtf", "doc" but works for "pdf"... and [file.openWithDefaultApplication()] works fine with any file!
View 2 Replies
Sep 6, 2011
In Flex (Flash Builder 4) I am opening a new window via PopUpManager.addPopUp. I have timer code that runs in my component and I need to stop my timer when that window opens and start the timer again when the window closes.
I figure it's easy enough to stop the timer in the function that opens the window, but how can I start the timer again when the window closes?
Is there a way to tell if there is a pop-up window in front of my component, or if a specific pop-up window is still open via PopUpManager?
View 2 Replies
Jun 30, 2010
I have to be able to cancel and kill a Loader process properly and many times. If I dont do this, it seems that the flash player (at least on mac) eventually crashes as some loader processes are flying about , strangling the CPU.
There doesnt seem to be a straightforward way to know this and just calling a Loader.close causes an error, if the stream is not open.
View 4 Replies
Sep 30, 2010
I have an AdvancedDataGrid with Hierarchical data in it. On itemClick I have to identify if the row I clicked is expanded or collapsed.
View 1 Replies
May 11, 2005
okay so i have this code:
[Code]...
okay, so obviously there is stuff missing from my code b.c i dont feel like copying it all over. its basically an XML controlled style blog, and i'm trying to keep track of whether an entry is open (0), or closed (1), and those values are being stored in 'myArray'. my question is, why isnt that call to myArray overwriting the existing data? i know i have doen this before (maybe not in this fashion, but i know its possible).
View 3 Replies
Jan 3, 2009
I have been searching posts for the last few days and I can't seem to narrow down my particular issue. I see lots of posts and threads related to swap depths but I can't seem to get it to work. I assume swap depths are what I need to do but I want to run the idea by you all. I have 5 mc each with an image and an animation, it's your basic zoom menu. all are on the same layer and all on one frame. what is the best way to get images to the front of the rest as I do a mouse over? right now the example script I am using is
[Code]...
View 8 Replies
Jun 4, 2004
I would like to display a message in flash "we are open" or "we are closed" based upon time. Naturally I can do this for the users local time on their system, but is it possible to work out if their time is different to UK time (GMT) and display those messages accordingly. Afterall I don't want a user to see a message "we are open" at 1pm their time - they could be in Japan and it'd be about 4am UK time.Is this possible to work out the time difference on any system?
View 1 Replies
Aug 2, 2010
A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.
View 1 Replies
Feb 9, 2009
I've made a menu in xml, and donno how the code should look like If I want the links to open in the same window (target="_parent") and not in different tabs, were should I put this in my code?
Code: Select all<item Name="Link" Action ="getURL" Target="/link.html"></item>
View 2 Replies
Jan 15, 2010
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
View 2 Replies
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
Oct 16, 2009
I've seen all kinds of accordion menu examples that allow for one pane open at a time, but I really need one that can have more than one open at a time.
View 4 Replies
Mar 5, 2011
I'm having trouble creating code logic for 2 doors that open up to a business and personal section. I want them to be coded for all these scenarios:
1. when user's mouse is over the door (or section), the door opens up. the other stays put where it is. (done)
2. when the user exits the zone, the door closes shut (but slower than the opening)
3. if the user's mouse exits and reenters very quickly, i need to detect that somehow and rewind the easing function? example
if (user left and reentered in 2 sec){
trace(personalDoor.rewind());
}
what kind of method or class gives access to a rewind function.
[URL] put an http: before that and the whole link will work.
View 3 Replies
Feb 14, 2009
If I am making a simple navigation menu bar for a flash site in AS2 with mouse over/rollOut effects, then what is some possiblr actionscript I can use per menu item in order to have tHAT particular menu item selected while it's active ( in other words, if I click on services and I am located on the services page, the services object form the menu would be highlighted and if I were to click on that 'Active/highlighted" menu object, no event would occur. but it would simply remain highlighted until the point that I click on a different menu object and that highlight effect on previous menu object would fade out.
View 3 Replies
Nov 1, 2007
I have this code below and would like to know where and how i would alter it to have the menu reference horizontally and not vertically. I think it has something to do with "SortByVertical" and i changed it to "SortByHorizontal" but this just gave a strange result. I need to do this becuase i will be adding a scrolling text box and using it vertically does not work for the scroll bars.[code]
View 4 Replies
Jul 29, 2009
this is hard to explain, but I can't find out how to make it so when I press a button, a menu pops up in the middle. How would this work for an online game? Since I don't want it to go to the next frame, how could this be done? when I push the button, a shape pops up in the middle of the screen.
View 4 Replies
Apr 30, 2009
I have set up a custom contextMenu. Now I want it to work similar to an html context menu.. I've seen it on a few sites but am not sure what the best approach is. Here's the basics of how I want it to work... If you right click on a link it will show "open link in new window" and for each link the target will change to relate to the link. But, if you right click somewhere that isnt a link the "open link in new window" is invisible.
View 2 Replies
Sep 1, 2007
I am developing aplication using flash 2.1. I want to disable the flash lite context menu which gets open when user clicks on Pocket PC. How to do this?
View 1 Replies
Oct 24, 2002
Is it possible to use HTML frames with Flash? For example, I want to make a flash menu system on my site, and have the click of the menu buttons open up an HTML page in a different frame.
View 14 Replies
Aug 12, 2010
I need to have my flash standalone menu open pdf files to specific pages.
Is there a way to do this with get url? or some other easy method?
View 1 Replies
Dec 27, 2011
How i open my custom menu over right click on Text Area control, currently default menue of paste, Copy, Cut etc is opened.Please keep in mind that i want to open custom context menu over TextArea Control of Flex.
View 1 Replies
Feb 2, 2012
how to make the individual icons open separate menu once clicked in the way the iPhone does i know i would have to use an eventListener and basic tweening to make the new screens appear in the iphone like way but i just don't know how i would use this:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var sliderBind:Rectangle = new Rectangle(2.25, 1.20, 174, 0);
homeScreenInterface_mc.visible = false;
[code]....
View 3 Replies
Sep 15, 2004
I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding. Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...
[Code]...
View 14 Replies
May 17, 2011
Good day to everyone. I'm here today to seek help about Flash CS4 and ActionScript 3.0. The story starts when one day, my boss asked me to make a flash presentation about their upcoming user training for a newly developed software. I was enthusiastic and excited about it because it's been a long time that I did not use Flash (note that I don't have any experience in ActionScript 3.0). At first, everything was a bit rough as I need to recall how to properly use the frames to create a successful animation. As I was about to finish the project, my boss approached me again and asked if I could insert a menu page in front so that the users won't have to replay the whole thing again just to look for a little something on that part of the movie. So yea, at first I was abit hesitant to accept. I said that it will work with Powerpoint. But she's a total pusher and I was forced to say yes. Now I'm having this problem about how to make a flash button load a swf movie.I've tried searching all over the net for tutorials but most of the times the "getUrl" and other stuff are said to be outdated.
View 1 Replies
Nov 10, 2009
How to make right click menu in Flash with "open in new window" for sIFR link?
Can we make in sIFR3 directly?
View 1 Replies