ActionScript 2.0 :: Closing Expanded Bar When Another One Clicked
May 12, 2005
I have included my fla at [URL]. What I want is when you click on a bar it expand and pushes the ones below down. That has been accomplished. However, I want the expanded bar to close when a different bar is clicked. Right now that doesn't happen. The only way to close an expanded bar is to click on itself. I should add that there is code on an invisible button that resides inside the bar movie clip.
View 2 Replies
Similar Posts:
Aug 23, 2010
What I'm trying to do is have a 3 state tree expansion. I have three different icons for "expand" "collapse" "semi-expanded" which I want to use to show a partially populated tree control with all nodes initialized to semi-expanded state and then on clicking the "semi-expanded" icon it gets data from server and populates the tree and open that branch with "expanded" icon.
I tried looking for it but couldn't find anything close to it except the 3-state checkbox but don't know how to use it on 3 state icon when tree would only maintain 2 states.
View 2 Replies
Nov 9, 2011
I have a drop-down/multi-level CSS menu on a page. The menu however doesn't appear over a flash.i put <param value="transparent" name="wmode"/> I added wmode="transparent" to the EMBED tag then the expanded menu appeared but the color of flash image diaappeared also tried z-index in css.
[Code]...
View 4 Replies
Dec 30, 2011
How to tween/add effects for the action of tree expanding/collapsing in an AdvancedDataGrid in flex.
I googled a bit, searched the livedocs, but there doesn't seem to be a concrete example for the same.
View 1 Replies
Aug 26, 2009
I have a question, not necessarily about coding, but about setting up a file. I want to create an expandable ad, but I don't know how they work. Do I make the stage the size of the expanded part? How do I only have the unexpanded part act as though it is a different, smaller size.
View 2 Replies
Jun 24, 2009
I have a partially populated Tree component and I have to invoke a remote service when User expand (not when he select) a node to retrieve it's leafs. How I know witch node have bee selected.
I'm using Flex 3.3.
View 1 Replies
Dec 27, 2010
The tree should have a minimum row count of 4 and a maximum of 10 (beyond which it should display the scroll bars). So, I have a tree with rowCount="4" and I want rowCount to change up to "10" depending on the currently expanded nodes. In debug I can see two of the tree's properties which I could use[code]...
But these are not accessible from outside so I can't find a way to understand if the tree is expanded or not.
View 1 Replies
Feb 11, 2011
I have added an event handler for itemOpening event for the tree component inside the handler basically ido myTree.selectedItem = event.item ; and then add the new data inside myTree.selectedItem.children.push(newData); But It do not show simultaneously instead I have to close , open the branch again to see the new data. I think I need to refresh something after adding new data but dont know what? below is the code but without the declaration , script tag etc
<services:DocumentService id="$document"/>
<s:CallResponder id="$newFolderAdded" result="$newFolderAdded_resultHandler(event)"/>
[Code]....
View 1 Replies
May 28, 2011
I am looking for the function or event, which is called when tree node is expanded/colapsed inside Tree object in Flex 4.5.
View 1 Replies
Jun 9, 2010
I have 4 navigation button and like home, about us etc.... And i want to disable home when it is click and cannot clicked it until the user click another button first. means if a visitor is at home page then home navigation is disabled, and all other are active, and when they click at aboutus button then the pages goes to the about us page and the about us button is disabled and other get active. I want this solution in AS3 with oop concept.
View 6 Replies
Feb 7, 2007
I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?
View 2 Replies
Sep 9, 2009
I have parent movieclip and in that many different children movieclips
What i want to do is when i CLICK, i want to detect which movieclip it has clicked and call corresponding function (defined by onpress event) of that movieclip.
View 6 Replies
Nov 6, 2011
What does the code look like if I want the user to click two specific buttons then go to a new frame. I've been trying different methods, but I am honestly not brilliant with conditional statements. This is what I've got so far...
about_btn.addEventListener(MouseEvent.CLICK, clickAbout);
home_btn.addEventListener(MouseEvent.CLICK, clickMain);
if (function clickMain(event) && function clickAbout(event))
[code]....
View 7 Replies
Feb 8, 2011
I haven't been able to find a solution that fits my project. I am working on a 50 state map, where I need each state to stay down once clicked, but go up when any other state is clicked. [code]...
View 9 Replies
Jun 29, 2009
I want to make a website and for the navigation when you click a button, I want the window that is open to fade out and than have the window open that you just clicked on fade in (using flash cs4)
View 21 Replies
Jan 20, 2011
How do I close an SWF file using AS3? I want to include the close in an event listener, so when the user clicks a button the application will close. I tried - [code]
View 1 Replies
Oct 22, 2010
I made a custom class which shows a popup window in flash. What I want to do is to close it by clicking anywhere but not the window itself (and everything that is a button on the stage). I added this line of code
[Code]...
View 3 Replies
Aug 27, 2004
Before anyone freaks out, yes I have searched and read up on this for hours now and I can't seem to be get it right... Simple..close a pop up window from flash. The code that opens the pop up has this code: (from kirupa)
[Code]...
View 2 Replies
Sep 3, 2008
[URL]..Above is a link to a component I'm working on. I've overlayed one swf with another swf which is going to display a sort of advertisement slide. What I'm trying to achieve is that when the adbanner (id="mediabanner") reads an xml file and reads "false", it then calls the ExternalInterface function "hideFlash" and in turn closes the swf so that the swf beneath it can be seen.
Could someone view the page source and let me know what I am doing wrong? The hideFlash function is being called, but its not actually hiding the swf.
View 2 Replies
Jan 15, 2009
I need to run a script if a user "x" out of the flash projector. This script is a LoadVars() script that sends info to php it does not need to receive anything, just send._root.onUnload does not seem trigger or the LoadVars script does not have enough time to run. I am not sure. Does anyone know how to get code to run if the user "x" out of the program?
Code:
//this script does not run
//even if I select a specific movie to check for the unload, it doesn't run
[code]....
View 3 Replies
Jun 30, 2009
I'm trying to add an event listener to a window that pops up (to the whole window) that will close that window when clicked on. Basically it's your typical about window that would be found in any program by hitting help, then about this program. I am using no chrome on it so I'd like to just be able to click it and have it close.
On a less important note I'd like to center the window on the stage when it pops up. Right now I'm just using the x and w properties to get it close to center on my monitor but obviously that won't work for everyone. Below is the code I've tried. No luck whatsoever. Window pops up but stays up if I click it. Any help as always would be AMAZING!
[Code]...
View 10 Replies
Feb 9, 2009
i am using the following code to close the my browser.
getURL("javascript:window.opener=self;window.close()");
The above code is not working in Flash player 10.
View 1 Replies
Oct 30, 2008
when you click on a button it opens a movie clip (the background drops down). Each section has a different background.I want to be able to close the movie clip before moving onto the next section, e.g the backgound goes back up again and the next background drops down. e.g If you click on "contact" you go into contact section (a background drops down), then when you click on "work" the bg from contact goes up (i created a label called "contact_out" which contains a movieclip of the bg going up) and then loads the "work" section.
View 14 Replies
Jun 11, 2009
I am again trying to figure something out. I have to load an experimental interface into my website for my class and I can load it using
[Code]...
However, I can not make it unload without closing both swf's. I use on (release) {
[Code]...
View 1 Replies
Jun 15, 2009
I am currently trying to work out how to get Flash to close the browser window it is running in. I've done a simple Javascript test version which works fine.. But if I try and use:
ExternalInterface.call("closeMyWindow");
Functionality it does not. My simple Javascript version is cut and paste below and attached to this message.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"><html>
<head><title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<meta name="description" content="" />
[Code] ....
Attachments: jsclose.html (630 bytes)
View 8 Replies
Apr 3, 2010
How do I stop a Flash SWF movie when the playhead is at the end and then have the new window that presents the movie close automatically. However, the most important feature would be to stop the movie to keep it from continuously looping.
View 2 Replies
May 22, 2010
I'm trying to unload an swf that takes up the whole screen by adding a listener on the holder_mc, which is what is holding the swf but it doesn't seem to be working. If you guys could, take a look at my code. Do I need any code in the swf that is being loaded in for it to close?
var swfLoader:Loader = new Loader();
slideshowimages_mc.one_mc.addEventListener(MouseEvent.CLICK, oneClick);
function oneClick(event:MouseEvent):void
[Code].....
View 17 Replies
Feb 26, 2012
"Open new swf from current on without closing it."How can I achieve this ... Should I use loader ... I want the new swf to be in its window ..so 2 sfw's are opened.
View 5 Replies
Apr 23, 2009
I'm maintaining a ActionScript 2 application which uses createEmptyMovieClip to create dropdown lists (the list items being attached as movieclips). I can close the dropdown directly via removeMovieClip and such, obviously.
My problem is this: the dropdown should not only be closed when an item is clicked or the button creating it is triggered again, but also anytime the user clicks anywhere outside the dropdown (like onReleaseOutside, except the click also STARTS outside).
So far the only solution I can see is turning _root (or an invisible layer) into a button by proving an onRelease for it, but that's hackish in that it makes _root be treated like a button by Flash (pointer mouse cursor and all that). Do not want!
View 1 Replies
Jan 18, 2009
i am loading some external swf into my main file on click of a button in main file, now the external file gets loaded, but m stuck at this point, where in i require the code to close the loaded extternal swf. i tried all the tricks but none was helpful..m using AS3
View 0 Replies