Flex4 :: Get Second Item From DropDownList
Jul 4, 2011Does any one know how it's possible to get in Flex 4 a value of the second item from Drop Down list, assuming I have 3 items listed there?[code]
View 1 RepliesDoes any one know how it's possible to get in Flex 4 a value of the second item from Drop Down list, assuming I have 3 items listed there?[code]
View 1 RepliesI am using FlashBuilder 4.5 for PHP. I have a simple MySQL table with the fields {tID, tName}.I am able to populate a DropDownList in a Flex form as below. The DropDownList shows the name of the people without problem:
<s:Form defaultButton="{button}">
<s:FormItem label="myList: ">
<s:DropDownList id="dropDownList" creationComplete="dropDownList_creationCompleteHandler(event)" >
<s:AsyncListView list="{getPeopleResult.lastResult}"/>
[code]....
The above does not work.
I am trying to create a dropdown that can display both past state and possible state for a customer.But I want to make add a separator between past and possible state.Actually to do that I add an item like "-----" on the dataprovider.But the look and feel is not good and this item may be selected.My ideal approach is something like that:
View 2 RepliesMy stakeholder has a request to remove the currently selected item from the DropDownList control(s) in the application. For example a drop down with [item1, item2, item3, item4] if item2 is selected then the only items in the drop down will be [item1, item3, item4]
Using Flash Builder 4 with Flex 4.0 sdk
I have an XML object in Flex4 that is populating a tree (amongst other things).
I need to be able to find the name of the selected item when it is clicked in the tree.
For example:
<Object id="">
<Image></Image>
<Cycle></Cycle>
[Code]....
The tags are all predefnied by me so I will know what they are, but I need to be able to know if the item a user has selected is "Object" and do something, or if they select "Action" do something else.
What is the syntax to get the names of these in flex4 and compare them?
I have a data grid with a custom item editor that displays a DropDownList component. When I click the scroll bar in the component, it is firing a focus out event on the list, which is causing itemEditEnd to fire. Why the list is not keeping focus, or how to make it keep focus. I'm using Flex 4.
View 2 RepliesI want to display Accessory View(Right Side Arrow Button) in Flex List View.
View 1 RepliesHow to make a custom item renderer in flex 4 without extending the ItemRenderer class?I need this because I want to use a custom class that is extended in all my components. as this item renderer for me is like a component, i would like to extend that custom class.[code]the ThumbView doesn't extend the ItemRenderer
View 1 RepliesI try to load an swf in my flex 4 project using the following line of code: <mx:SWFLoader id="game_swf" source="demo.swf" complete="init()" /> the demo.swf file is another project i created using flex 4. the problem is that when i run the application i see only the loading bar of the demo.swf flash file and nothing else. if i try to load a different swf file (for a example a game i downloaded), it loads just fine.
View 1 RepliesI have this datagrid:
<mx:DataGrid id="dgCompetenteN" includeIn="Test" left="10" right="472" top="69" bottom="149"
dataProvider="{colCompetente}" editable="false">
<mx:columns>
[Code]....
What I want to do is, when I select an item in the datagrid, the selected item of the dropdown should be the correct one (the one which has the field idCompSuperioara equal to the third element in the selected datagrid row).
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]...
I am in search of finding a way to display shopping cart items in a flash 8 datagrid in the order it was chosen by the user & also to ability to delete an item if the user choses. Currently I have the items displaying however they are displaying in a position as it is stored and called in the array. [code]
View 5 RepliesI have made a drop down menu with 7 items but as the invisible bottun around each item interferes with the item besid it, when i try to roll the mouse from one item to another, the invisible bottum dont work and the dropdown remains open.
View 1 Replies<mx:itemRenderer>
<mx:Component>
<mx:Canvas>
[code]......
I have used states in my application.The thing is I have made the first item in my list to be selected. so I gave like this,
if(itemIndex == 0)
this.currentState="selected";
this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked.My code looks like this,
<s:BorderContainer id="outerCont" width="275" height="100" borderVisible="false"
backgroundColor.normal="#3D3C3C" backgroundAlpha.selected="0.1"
backgroundColor.selected="{data.color}">
My states are like this,
<s:states>
<s:State name="normal" />
<s:State name="hovered" />[code]........
Is it possible to trigger Flex Piechart Item click event when a Datagrid Item is clicked.If so can anyone give some example.
View 3 RepliesI want to be able to select an item from my list component and fire a function directly related to selecting that item. list is called "tidlist" function is "selecttid(n)" the "n" needs to be replaced with the index number... so if run my swf and the list component displays my items... when i select one (the third one for example)... i want to fire "selectTid(3)".... cant seem to grasp.
View 1 RepliesI want to be able to select an item from my list component and fire a function directly related to selecting that item.
list is called "tidlist"
function is "selecttid(n)"
the "n" needs to be replaced with the index number... so if run my swf and the list component displays my items... when i select an item (the third one for example)... i want to fire "selectTid(3)".... cant seem to grasp.
In a dropdown how to get icons along with text and once we select any of the index from the dropdown i want that icon also be selected and to be displayed on that dropdown header
View 1 RepliesI'm having difficulty figuring out how to add a dropdownlist control to only a single row of a data grid. For example, if I have two rows of data in the grid, I want the top to be the normal text from the data provider, and the second row to be a dropdownlist (bound to an array collection).
View 1 RepliesI'm sure this is a easy one but I've been searching for a while how to select a DropDownList element with actionscript. In this scenario, I'd like to be able to specify the selectedItem based either on ddlLabel or ddlData
<?xml version="1.0" encoding="utf-8"?>
<fx:Script>
<![CDATA[
[code].....
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.
Im doing my platform game and I want to know in ActionScript how to get a character to pick up an item and throw the same item.
how do I do that? whats the code?
I am looking for a component, a dropdownlist with a scrollbar, that can be populated with values from an XML List.
View 2 RepliesI have created a custom ComboCheck which extends the spark DropDownList that is a DropDownList of checkboxes. Inside of my itemRenderer I have the code:
[Bindable]override public function set data (value:Object):void {
if (value!=null) {
_data = value;
[Code].....
This will also not cause the dropdownlist to reset to scrollPosition 0
I have a XML structure like:
<Main>
<Category1>
<Data Name="Data1">
[code].....
I want to adjust the width of DropDownList control in flex 4. I could do it by editing the skinclass and setting the PopupAnchor's Property "popUpWidthMatchesAnchorWidth" to false, but in my application I have to do it using actionscript.
View 3 RepliesLet's say I have a DropDownList with the 50 states in it. I would like to type in the letters "C + O + L" to jump to Colorado, like Firefox and most application do. Right now, it's jumping from California to Ohio to end with Louisiana.
View 3 RepliesI am trying to make a simple change on look of Flex 4.5 Spark DropDownLis trough extending it's item renderer, anyway even a just shiny new item renderer bring me as result a items which labels is blanks. If i remove the renderer everything is fine, but with it - the items is blank white.
[Code]...
Can't get this to work for some reason.
<fx:Declarations>
<s:ArrayList id="mathChoices">
<fx:String>ADD</fx:String>
[code]........