ActionScript 3.0 :: Keep Nav Selected Once It Has Been Clicked?
May 13, 2011
How many of you guys are using "gotoAndStop" methods for your navigation? For example, I'm building a site where the user clicks the nav, and the nav turns a certain color, then when another nav item is clicked, that previously selected item goes back to it's original color, and the newly selected item changes color. Right now I'm using "gotoAndStop" for this but I'd like to know what others are doing. I'm trying to steer away from gotoAndStop and do everything in the code.
View 1 Replies
Similar Posts:
Jan 13, 2010
I have a very simple DataGrid with 2 columns, some thing like this[code]...
What Im trying to do is to activate the edition of the selected row when the user clicks a button. So far I've been unable to find any example of how to do this. I already tried 6 or 7 different approaches but non works.
How do you get the selected row (NOT selectedItem) of a DataGrid and how can you:
Change the ItemRenderEditor or ItemRenderer on the fly of just that row.
Or enable the edition of that specific row without clicking it.
View 1 Replies
May 19, 2010
I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.
View 2 Replies
Nov 6, 2009
Is there any way to disable a few columns for a particular row in flex datagrid?
I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.
Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.
View 2 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
Feb 1, 2012
I have placed TextFileds inside TileList Compontent. When i try to select the TextField it can't show the selected Textfield in the TileList items by default the TileList items are selected.Finally i need to select the TextFields.
Here is my code:
import fl.controls.TileList; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event;
function TileListExample() { var dp:DataProvider = new DataProvider(); var totalEntries:uint = 3; var i:uint; for(i=0; i<totalEntries; i++) { dp.addItem( { source:getTf(), scaleContent:false}
[code]....
View 5 Replies
Sep 29, 2008
How can I make it stay the rollon color after it's clicked and then the rolloff color when another button is clicked?
[Code]...
View 7 Replies
May 28, 2009
I'm trying to use the setChildIndex(); property to move a mc to the top of the stage when that particular mc is clicked on. I'm still not sure what is meant to go in the parentheses? Sorry, still new to AS3.0. The mc has it's own class called Ball and this is where I'm calling the setChildIndex property, in the dragIt function. Here's the code for the Ball class....
[Code]...
View 2 Replies
Jul 19, 2009
How do you make a MC act after another MC is selected? Like when I click on movie clip 1 then movie clip 2 does somethin after movie clip 1 does its thing?
View 4 Replies
Mar 11, 2011
I'm using XML to populate a comboBox Component. How do I get the aactionscript to trace which number in the array the choice is? So for example is my choices are:
choice A
choice B
choice C
on the dropdown box, whne I click "choice A" I want it to trace "0" because that's it's place in the XML, or if I click "choice C" it will say 2".If i use "length" it will tell me how many. I need to know what to use that tells me which one.
View 3 Replies
Apr 5, 2012
I have a datagrid that is editable. I was wondering if it's possible to retreive the cell value after user edits the single cell.
My datagrid will trigger griditemEditorSessionSave event if users finish the editing, but I don't know how to get the new cell value. [code]...
View 1 Replies
Jul 9, 2009
<mx:CheckBox id="userlevel" x="118" fontSize="12" fontWeight="bold" y="127" label="Administrator"/>
What should be the Alert.show(userlevel.selected) returns whether its true or not... but i need the label value.
View 1 Replies
May 4, 2011
[code]When I press the button I get the error:TypeError: Error #1009: Cannot access a property or method of a null object reference.It works if I first switch to the 2nd tabpage and then back and press the button.
View 2 Replies
Jan 16, 2012
I have a Question that is how to paste the selected or copied text on stage or text area in flash as3? I had copied text but don't have any idea about how to paste the text into text field.
View 3 Replies
Aug 20, 2010
i was trying to delete a row on a datagrid. basically, i click on the row, then i click a button so that the chosen/clicked row is deleted. here is my code snipet :
Code:
public function deleteRow(event:MouseEvent):void{
selecto0.removeItemAt(dGrid.selectedIndex);
selecto0.refresh();
[Code].....
even though that row exist, i guess the index is not recognised. what do i do?
View 2 Replies
Jun 21, 2011
my real goal is "to send the selected photo name"; now my problem is that to get the selected photo value. How to get it?
View 1 Replies
Jul 22, 2011
Can I have one Flash Video Player on my page that plays multiple videos when they are selected?
So the videos would be selected by a movie clip button. How would I direct that onRelease button code to play a mp4 video to the Flash Video Player and how would I name the FVP to receive the selected video?
View 1 Replies
Mar 26, 2009
I have a menu with 5 menu items that when an item is selected, the non-selected items need to be moved. All are movie clips. When user selects item 1, the remaining items will slide underneath item 1. I want to make a custom function so as to alleviate unnecessary code. I am moving the MC's with tween class.
View 1 Replies
Jul 16, 2009
i am have a small doubt in actionscript, i think its a silly one but banging head to solve it...f there are some items present on a panel and if i select one of them then how can i get the id or name of that particular selected item.For example if there are two accordions and if i select one, how can i get the id or name of that selected accordion.
View 3 Replies
Jul 15, 2008
Flash documentation says this is possible, but cb.selectedItem={label:'labeltext',data:'data'}; is a no go for me. Maybe I'm missing something obvious? Setting selectedIndex works great, but this should work too.
View 19 Replies
Nov 21, 2009
I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked to show that it's selected. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??Another thing, when I click on a different button, I don't want the previous button to still be selected.
View 1 Replies
Dec 1, 2009
How do i delete the selected row in datagrid, and how can i change the selection color. at present it turns blue, i want it be red on selection, and then on some button click want to delete the selected row.
View 2 Replies
Oct 25, 2010
I have a FlashVars in the html page "State"How do I get the code below to reflect the State that is in the html page.So if State = WA the drop down list will have WA as the item shown.This is the code for the combobox
Quote:
var listenerObject:Object = new Object();
listenerObject.change = function(evtObj:Object) {
[code].....
View 2 Replies
Mar 31, 2009
I am creating Checkboxes on runtime which I am able to do so.I have been trying to find out if one or more are selected.
View 1 Replies
Dec 10, 2008
I am trying to build my first website and I follow the instructions of a videotutorial of flash 8. But in the second step (Making it work the buttons) when I had tried to add action to my selected button, appear a message like this....Cannot add actions to this selection (translated from spanish) Why?...Is a conflict between versions 8 and CS3?
View 5 Replies
Aug 9, 2010
I placed 2 radio buttons - each of them has groupName = rg1. And when I write[code]...
View 1 Replies