ActionScript 2.0 :: Multiple Selection In A List?

Mar 24, 2010

I have a populated list component with multiple selection enabled, on pressing a button i want to know all of the selections that have been selected. Instead i can only find the .getSelectedItem() thing, which only tells me the last selected thing. How would i do what i want to do?

Also, another thing. If i want to select a specific index of the list, how do i do that? I have tried

'_root.roomsAvailableList.index(i).label'
'_root.roomsAvailableList(i).label'
etc. non seem to work.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Checkbox List & Multiple Selection?

Aug 17, 2007

I've added checkboxes to a list component using the cellrenderer however the behavior is different from what i expected. I'm only able to check one box in the list at a time. I need to be able to check mutiple boxes in the list.

I'm aware you could hold down the control key and select individual the checkboxes, but the application i'm developing is a touch screen aplication hence no keyboard, no control key. I've tried programmaticaly setting the selectedindicies but the checkboxes don't appear checked after the selectedindices have been set.

View 1 Replies

Flex :: Find Out Deselected Item In Spark List With Multiple Selection

Aug 3, 2010

In a spark list I could use the change event to find out which item has been selected or deselected. The dispatched IndexChangeEvent object has the properties newIndex and oldIndex holding this information.

But with multiple selection allowed this doesn't work anymore because newIndex and oldIndex could refer to indices of still selected elements.

A solution would be to copy the selectedIndices vector to another variable and compare this variable with selectedIndices after a change in selection, but this seems to be somewhat complex.

Does anyone know if there is an easy way two get the index/item a user is deselecting while other elements are still selected?

View 2 Replies

ActionScript 2.0 :: Combobox & List - Each Selection Triggers The Specific Xml File To Load Into The List Component?

May 10, 2007

I have a combobox and list component on the stage. The combobox has 3 selections. How do I get it so that each selection triggers the specific xml file to load into the list component? I can't get them to communicate to each other.

View 1 Replies

Flex :: Make List Content Dependant On Selection In Another List?

Jul 6, 2011

When a user selects a category from the first drop down box then i want the 2nd drop down to be updated based on the selection of the first drop down. I have created multiple ArrayCollections whose names are set to the "data" values of the first drop down, for instance:

[Bindable]
public var countries:ArrayCollection = new ArrayCollection([
{label:"USA",data:"USA"},

[code].....

View 2 Replies

ActionScript 3.0 :: List Component And Selection?

Sep 14, 2011

I'm coding an auto-complete feature to use in flash forms.When you are typing (in a TextInput component) suggestions start popping in a List.If the user than press arrow Down, the focus is set to the list, so far so good.But how can I make the list first item selected as I set the focus?I tried using scrollToIndex(0); but didn't work.The way it is now, you have to press the Down key two times to select the 1st item in the list, one sets the focus, the second works..

View 1 Replies

ActionScript 3.0 :: Hmake Default Selection In List?

Aug 4, 2010

i am working on a project. i've got stuck somewhere and i believe it is too much easy.

i've a "LIST COMPONENT" on the stage. there are many items there in that list. whenever i make that list's visibility = true; i want it to select item no.1 by default. i know it is very simple but i can't remember...

View 1 Replies

ActionScript 3.0 :: Make A Default Selection In A List Component?

Feb 27, 2011

I need that when the list appears is shows a selected cell, I tried this but didnīt worked: list.isItemSelected(0)=true;

View 1 Replies

Flex :: Flash - Custom List Selection Not Highlighting?

Mar 18, 2010

I want to create a custom list in Flex for an interface prototype. The list is supposed to have an image and 3 text fields. This is what I have done so far, the control displayed is what I want. But, when I click on one of the items, the item does not appear (visually) to be selected. I was not sure how I would implement this.

Here is my code so far:

<s:List width="400" height="220"
dataProvider="{arrColl}"
alternatingItemColors="[#EEEEEE, white]">
<s:itemRenderer>

[Code].....

View 2 Replies

Flex :: Disable Selection & Rollover Colors In A List?

Feb 26, 2011

How do I disable the rollover, selection & focus colors in a list? I tried setting them to "{null}" but that just makes them black:

<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="100%" height="100%"

[Code]....

View 1 Replies

Flash :: Disable List Selection But Keep Children Functions

Apr 30, 2011

i got a s:List with a dataprovider and a custom itemrenderer. now my itemrenderer has a button within. Every time i choose a item from the list, i get focus on the item, but clicking the button within the item only causes the s:List to select the hole item and wont let me press the button within the item.

is there any solution to disable the "list" selection functionallity but keeping the items within the list enabled / clickable?

as requested, here the code (relevant parts)

CategoryTree.mxml

<s:List id="data1" name="D1" x="-2000" height="100%" minWidth="600"
width="{this.width}" dataProvider="{this.childrenResult1.lastResult}"
itemRenderer="gui.components.Category">

[Code]......

View 2 Replies

Flex :: 3 - Adobe 3 List Control Selection And Change Event

Nov 22, 2009

I created a list control at runtime as following:

[Code]....

//Where myDataArray is an ArrayCollection consisting of my Custom ValueObjects. When i execute the code it displays my list with custom item renderer, which is fine. But when bring my mouse over it, it doesn't give any colour highlight which means it is not selecting. Secondly, when i click on any of the list item, it doesn't dispatch any change event. I tried a lot but couldn't understand it.

View 1 Replies

Flex :: Spark List Not Displaying Selection When An Item Is Removed

Aug 3, 2011

I have an issue with Spark Lists whereby I am trying to ensure that an item is always selected and ensure that the GUI displays this to the user.

The application (full code below) creates a List, a Label and a Button. The Label states what is selected in the List. The button removes the selected item. Changing the selection, updates the text in the Label. Important: The List has "requireSelection" set to true to ensure that an item is always selected.

If I select the first item in the List, the selection is correctly reflected in the label. Clicking "Remove" removes the item and the next item is selected. This is all working correctly.[code]...

View 1 Replies

ActionScript 2.0 :: Load XML Selection From List Box To Empty Movie Clip

Apr 9, 2005

#1 How do I format the data in my listbox and combo box so it only show the "string" data and not the tags and random commas as well? (The combo box has unnecessary commas and the listbox shows tag data from XML) I'm not sure if it's in my XML or the way I'm using the XML connector.

#2 I got the XML data to the combo box and the selection from the combo to the list box. How would I get the users selection from the listbox to load a .swf into the loader component? Again, I'm not 100% of how well I did my XML and I have no idea how to use the XML connector in that way.

[Code]...

View 2 Replies

ActionScript 2.0 :: Load XML Selection From List Box To Empty Movie Clip?

Apr 9, 2005

I've attached the files so you can see what I'm talking about.#1 How do I format the data in my listbox and combo box so it only show the "string" data and not the tags and random commas as well? (The combo box has unnecessary commas and the listbox shows tag data from XML)I'm not sure if it's in my XML or the way I'm using the XML connector.#2 I got the XML data to the combo box and the selection from the combo to the list box. How would I get the users selection from the listbox to load a .swf into the loader component?Again, I'm not 100% of how well I did my XML and I have no idea how to use the XML connector in that way.

HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<posterlist>

[code].....

View 2 Replies

Flex :: Unable To Select Item In Spark.components.List After De-selection

Dec 21, 2010

I have a spark List defined as:

<s:List id="symbolList" dataProvider="{symbolListCollection}" change="symbolNameChangeHandler(event)"></s:List>

With the change handler defined like this:

protected function symbolNameChangeHandler(event:IndexChangeEvent):void {
symbolList.validateProperties();
changeSymbolView(symbolList.selectedItem);
}

and symbolListCollection as an ArrayList filled with Strings.

At first, the change event works fine, and I get what I expect.

However, if I Ctrl-click on the selected item, to de-select it, i am unable to ever select an item again.

When I click on something to try to select it, the change event DOES fire, however, the ItemChangeEvent has both oldIndex and newIndex set to -1

View 1 Replies

Flex :: Conditional Data Provider To Tree On The Basis Of List Selection?

Aug 1, 2011

This is my XML data in a file named nodesAndStuff.xml.

<?xml version="1.0" encoding="utf-8"?>
<root>
<node label="One" />[code].........

Now I have added my tree just below the list and I have saved counting from 10 to 19 in one.xml, 20 to 29 in two.xml and so on in different XML file. I have no clue how to connect the XML containing counting from 10 to 19 as the single node in tree at the selection of label one in list

View 1 Replies

Scaling Selection About Multiple Centers?

Jun 25, 2009

In Flash CS3 is there any way to scale a large number of symbols (each on their own layer) at the same time, about each symbols own center. For example after scaling down, every symbol is smaller but it's x,y position has not changed.

View 1 Replies

Multiple Selection In Combobx In Flex 3.0?

Jul 8, 2009

I have put one combobox in flex application. I need combobox with multiple item selection how to select multiple items in combobx in adobe flex 3

View 1 Replies

Flex :: Multiple Selection Programmatically?

Mar 17, 2010

I have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Programm. I'm wondering, whether I can programmatically select some rows depending only on code?

View 1 Replies

Flex :: Multiple Row Selection In Datagrid

May 12, 2010

flex example to select multiple row selection in datagrid

View 1 Replies

ActionScript 3.0 :: Have Multiple Selection In Flex Combo Box?

Sep 7, 2009

can you please tell me how to have multiple selection in flex combo box component

View 1 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.

I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 2 Replies

Flex :: Get List Item Selection Working When Using A Png Mask In An Item Renderer In A 4.5 Mobile App?

Jun 10, 2011

I'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.

When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.

Code:

public class TopCalendarMonthRenderer extends LabelItemRenderer {
[Embed(source="/assets/trapezium_alpha.png")]
private static var TrapeziumMask:Class;
private static var trapeziumMaskInstance:BitmapAsset;

[code]...

View 1 Replies

ActionScript 2.0 :: Send List Of Variables From Php To Flash And Send Back A Random Selection To Php?

Nov 16, 2010

I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.

View 6 Replies

Flex :: AdvancedDataGrid Multiple Cell Selection Highlight Not Fully Clearing

Sep 23, 2010

I've two problems, the second of which is only an issue because it's a possible way to fix the first! I'm developing a Flex 4.1 application, using a Spark theme: I can't change these; Halo isn't an option. It's providing the facility to fill multiple-selected cells of an AdvancedDataGrid with a single character, from a single keypress. So the user selects their cells using the Shift key, hits H (for example) and sees all the cells update with H, without using an itemEditor but via grid keyDown events instead. Then they click somewhere else and the selection should clear.

However the visible selection isn't fully cleared and the newly coloured cells won't all change from their selected colour. Underneath I can verify that the selection has cleared: mygrid.selectedCells is empty. All behaviour afterwards points to some kind of display glitch with the grid: The cells aren't selected any more but they look like they are.

[Code]...

View 1 Replies

IDE :: CS4 Jsfl - Fl.getDocumentDOM().selection Doesn't Retain The Selection Order

Nov 11, 2010

I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>

View 2 Replies

ActionScript 2.0 :: Selection.setFocus Selection.getFocus Inputting From Mc?

Sep 6, 2007

i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus

View 6 Replies

ActionScript 3.0 :: Get Multiple Selected Fields In List?

Apr 10, 2009

I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3. Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.

View 3 Replies

ActionScript 3.0 :: Display List Multiple SWFs?

May 11, 2010

trying to swap various children or change their index in the display list, and I think I might have painted myself into a corner (get ready, this one should blow your skirt up).I've got the following sequence of events:1. A pre-loader.swf (the parent) loads main.swf and about.swf, then adds main.swf to the stage.2. When main.swf is added to the stage, it displays all its content, including various buttons.3. When the "about" button is clicked, main.swf calls a function in pre-loader.swf that instructs pre-loader.swf to add about.swf to the stage.4. When about.swf is added to the stage, it displays all its content, including a text field.

At this point everything *looks* fine, but unfortunately the buttons in main.swf no longer work. They're visible, but they're no longer responding to mouse over/out/click events. I think maybe the buttons are being "covered" by about.swf (or its text field), so I'd like to place the text field below the buttons in the display list. However, since the objects are in different SWFs, I'm having all sorts of problems accessing them.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved