Flex :: Using List SelectedItem It Appears As Null?

Feb 15, 2011

I have encountered somthing a little strange in flex, possibly somthing im doing wrong but im not sure. In two cases which i have noticed, when there is only 1 item in a s:List or s:DropDownList for some reason when using list.selectedItem it appears as null. Using requireSelection="true"i know this isnt the case.

[code]...

View 1 Replies


Similar Posts:


Flex :: Reflect Changes In The List.selectedItem In The ItemRenderer?

Oct 22, 2010

When I change the: list.selectedItem.name = 'name2'

then in my item renderer

the dataChange event is not fired! and I can't update the label with the name property...

View 2 Replies

Flex :: Mobile - Move To The Next Data In List.selectedItem When Moving To Next Page?

Sep 14, 2011

When I move page01 to page02, I pass the same data along with it using the following code:navigator.pushView(Page02, data);How do I move to page02 with passing the next row of data (instead of the same data)? In other word, how to increment to the next row of data with pushView?

View 1 Replies

Flex :: Pass Info From Page One (List.selectedItem) To The Third Page?

Sep 13, 2011

I have 3 pages view,

HomeView
ViewPg02
ViewPg03

In HomeView, has a List control and when user select an item it will goes to ViewPg02

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash List Component SelectedItem Position

Feb 8, 2011

I have a list box of mp3s which populates via xml. When the user clicks on a song I want a "Stop" button to pop up next to the name of that song in the list box. Ideally I want to get the coordinates of the field in the list box that the user has just clicked on.

I set an eventListener like this:

[Code]....

View 1 Replies

Flex :: How To Set 'selectedItem' Property

Oct 15, 2009

i am working in Air application in Flex3 , i need know how to set "selectedItem" Property when we have 2 values like(data and label) label property to combobox selection, data value for our input.In (selectedItem="{stylename}") stylename will have "data" value but i need to set that "lable" property as selected value in combobox.Like if stylename is "checked" then the ComboBox selected item need to be "Checked".How to implement this in flex.

View 1 Replies

Flex :: Set SelectedItem In DropDownList?

Sep 10, 2011

I am making some simple project and I have problem with selectedItem. I have sth like this

<s:State name="Form" enterState="makesService.send()"/>

so when I enter this state I take makes from database and populate them to dropdownlist.

but I have also button and on click event I'm changing state to this Form and I want to select specific make from the dropdownlist but I can't. I'm not sure whether I'm doing sth wrong or the problem is that I'm selecting item just before the dropdownlist became populated.

e.x. List of make consist of Audi and BMW and when I click button I want to open this state Form in which this dropdownlist exist with selected value e.x. BMW.

View 1 Replies

Flex :: Identify The Component's SelectedItem

Mar 17, 2010

I am creating a lot of dynamic flex components like RadioButton, Combo Box, CheckBox.

[Code]....

When i click on Submit finally i need to get all the selected Values in each question. All the components are dynamically created at runtime.

View 1 Replies

Flex :: Get SelectedItem Data Value From Treeview In Actionscript?

Jan 26, 2011

Main Thread (Suspended: ReferenceError: Error #1081: Property @data not found on Object and there is no default value.) [code]...

View 1 Replies

Flex :: Get Global Y Coordinate Of Datagrid Selecteditem?

Aug 5, 2011

Here's the situation: I have a populated datagrid and I want to move a form to be inline (same y position) with the datagrid's selectedItem. I cannot rely on a mouseClick event because the selected item may change with a keyboard event. The datagrid does not have an itemRenderer, just plain old dataField.Anyone done this before?

Here's some stubbed out example code for all those interested based on Jacob's answer.

[Code]...

View 3 Replies

Flex :: Display A DataGrid SelectedItem's Details In A Form?

Oct 18, 2009

I used HTTPService POST method to call a php file that returns me an xml type of result like

<user>
<name>jones</name>
<age>34</age>
</user>

This result is obtained after the php files queries a database. The database contain other information too like (height, gender, education and address)Now i have a DataGrid (having two columns: NAME and AGE) and a Form below the DataGrid. I have displayed the above mentioned xml data in the DataGrid using the dataprovider="{userRequest.lastResult.User}" attribute.

I now want to use the itemclick=itemClickEvent(event) so that when a user click on a row of the DataGrid other information related to the clicked row like (height, gender, education etc) may appear in the form which is placed below the DataGrid in the GUI. For now my itemClickEvent, look like:

private function itemClickEvent(event:ListEvent):void
{
clickRow.text=String(event.rowIndex);
//Don't know what should i assign to following labels...

[code]....

View 1 Replies

Flex :: Transform A String Into Object Name SelectedItem In The DataGrid?

May 20, 2010

I need to get the value of the item clicked and the name of the columns.[code]But this way it returns 'undefined'.But if I put the name already in function, I can get the correct data, example:Alert.show(''+datagridlist.selectedItem.create); // create is a column name in mysql.But this variable must be created dynamically, example:[code]I'm at it on time and I can not convert the string to column name.

View 2 Replies

Actionscript 3 :: Flex Databinding With SelectedItem Property Of The Combobox Update Many Times

Jan 23, 2010

well, I have a combobox which I have bind his selectedItem property to a value object object, like this

<fx:Binding source="styles_cb.selectedItem.toString()" destination="_uniform.style"/>
<fx:Declarations>
<fx:XML id="config_xml" xmlns="" source="config.xml" />
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

<mx:ComboBox x="66.15" y="63.85" editable="false" id="styles_cb" dataProvider="{config_xml.styles.style}" />

the value object is a custom class with some setters and getters, and I want to set a property based of the value of the selectedItem of the combo, so inside the value object I have something like this

[Bindable]
public function set style(value:String):void
{
_style = value;
trace(value);
}

my problem is that each time I change the combobox selection which in fact change the style property of the value object it does it 3 times, if I trace the value of the setter it actually do the trace 3 times, why?? how can I avoid this? I'm doing something wrong? or there is a better way to do it,

View 2 Replies

Flex :: Spark DropDownList SelectedItem Didn't Update After DataProvider Changed?

Dec 26, 2010

I have two dataProvider's for one DropDownList. The following code can be compiled and run.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code].....

View 1 Replies

Actionscript 3 :: Flex Databinding With SelectedItem Property Of The Combobox Update Many Times?

May 22, 2008

well, I have a combobox which I have bind his selectedItem property to a value object object, like this

<fx:Binding source="styles_cb.selectedItem.toString()" destination="_uniform.style"/>
<fx:Declarations>
<fx:XML id="config_xml" xmlns="" source="config.xml" />

[code].....

View 3 Replies

Flex Mobile 4.6 - Pass Data (selectedItem) From Master To Detail View In Splitview?

Dec 26, 2011

I have a tabbed view with in the second tab a splitview controller.

The master view shows a list. When selecting an item from that list it opens a second view with a new list by using navigator.pushView.

When I select an item in the second view/list it has to be passed to the detailview. Is there a simple solution available?

View 1 Replies

ActionScript 3.0 :: Point Burst - Mc That Appears In Games When Click And +100 Appears?

Aug 10, 2011

Maybe the title is not self explanatory but in most  iphone games eg you click the correct example and you see a +100 points mc appear and rise and alpha out. I did this with a png done in photoshop BUT not all goes well - it doesn't work.

[Code]...

It seens perfct but I can't see it work. The funny thing is that the custom currentBubble - with a dot after you see the code hints but a dot after pb100 - you see no code hints. Well not normal.

View 2 Replies

Flex :: MessageBroker.getMessageBroker(null) Getting Null Pointer Exception?

Jun 12, 2010

I am creating Dynamic Destinations

MessageBroker broker = MessageBroker.getMessageBroker(null);
MessageService service = (MessageService) broker.getService("message-service");
MessageDestination destination = (MessageDestination) service.createDestination("Group1");

[code].....

But I am getting Null Pointer Exception

MessageBroker broker = MessageBroker.getMessageBroker(null);

View 1 Replies

Flex :: Clicking On Menu So That It Shows (null,null)"?

Aug 15, 2011

I have create a menu but when clicking on menu so that it shows, I get an error on the line because of the line "myMenu.show(null,null)". See function below:

private function createAndShowmyMenu():void {
myMenu = Menu.createMenu(null, myMenuDataProvider, false);
myMenu.labelField="@label"[code]........

View 1 Replies

Flex :: Fire Tree ItemClick Event On Setting Tree.selectedItem In Air?

Oct 30, 2009

I am working on Air application,i had a problem on Tree control.Iam adding nodes for the tree dynamically, while adding nodes to the tree i am setting Tree.selectedItem as present added node. after that i need to fire Tree.itemClick event handler method also.how can i call event handler method as a common method. in Flex3

View 1 Replies

Actionscript 3 :: DisplayObject Be Garbage Collected If Its Reference Is Set To Null, But It's Not Removed From The Display List?

Oct 6, 2011

Will a DisplayObject be garbage collected if the only reference keeping it in memory is set to null, but it's not removed from the display list?

View 1 Replies

Flex :: 4.1: <mx:List> Had RowCount Properly For The Limit The Displayed Items. <s:List> Doesn't

Aug 11, 2010

I'm using flex 4.1 to write an application. i read in the documents that has the rowCount property to set how many items to display. the does not have that property. how can I limit the list to display 3 items ?

View 3 Replies

Flex :: MX List ItemRollOver Event Equivalent On A Spark List Control?

May 26, 2011

Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?

View 2 Replies

Flex :: 3: Scrolling Of List Items With In A List Via Scroll Wheel

Dec 31, 2009

Here is a snip from within my code:

[Code]...

The 'recommendations' dataProvider is an ArrayCollection of String, which are generally sentences about as long as this one. By setting the variableRowHeight and wordWrap properties as shown, if a sentence is too long to fit on a single line, everything works fine- the row expands and the messages show on two lines, or occasionally three.

The space allocated for this panel within the entire canvas means if the total text size of 'recommendations' exceeds six lines, I need for the entire list scroll. This is also working just fine. The trouble is when using the mouse wheel to do the scrolling- Flex scrolls both the entire list and the single item where the mouse is hovering. Often this results in only the second half of a sentence being visible. Non-programmer friends I have asked to look at this noticed this, and tell me it as a problem. If a user does not notice the dual scrolling, and sees only a fragment of a sentence, it will be perceived as an error in the application.

[Code]....

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 :: Flex - List Selected Entire List By Default?

Aug 31, 2011

I am currently working on a project in Flex and I am having a hard time having a list's contents ALL be selected by default. Wondering how to do this.

<mx:List id="list" dataProvider="{dp}" allowMultipleSelection="true"/>

I'm just trying to have the list all selected.

View 2 Replies

Flex :: Spark List Have Something Similar To ItemsChangeEffect In Mx List?

Jun 28, 2010

I'm trying to animate a list as I delete the top row. All the examples I can find use itemsChangeEffect to bind to the effect, but this property exists only in MX lists, not spark lists.

Any idea how I can get the same effect done in Spark Lists?

I'm trying to remove the top most item in the list with a slight fade out effect before the rest of the items move up to replace the gap.

View 2 Replies

ActionScript 3.0 :: Having Flex To Do Function Everytime It Appears

May 6, 2009

I've noticed if I use initialize="myfunction()". Once "myfunction" has ran it will never be ran again if i use initialize. I need to reset a form basically. Or anything else I can use instead of initialize that will run the function every time.

View 1 Replies

Flex - VideoMaterial Appears Pixellated In Away3D?

Aug 11, 2011

I'm working on a spherical movie viewer in Away3D & am having a problem when I apply a VideoMaterial texture to a 3D primitive. The video appears heavily pixellated, like it's being scaled or hugely compressed. When I apply a BitmapMaterial of a single still image from the video it appears fine, so I don't think the resolution of the video is the problem.

I found [this discussion][1] suggesting a solution by specifying the "fixedHeight" & "fixedWidth" when I call the constructor, but those arguements seem to have no effect, and I can't find them in the API either. I do see something called "lockH" & "lockW," [in the API][3], but I they don't seem to have any effect either.

[Code]...

View 2 Replies

Flex :: Remove The Default Blank Row Which Appears At End Of Mx:Datagrid?

Nov 25, 2010

I am using an mx:DataGrid with a dataProvider to display Rows. I have checked the no of rows in my array ( which is 8 ) and the no of rows in the dataGrid. They both match, however I always get an extra blank row at the end of my data grid. How can I remove this row?

View 2 Replies







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