Hi Guys
I am working on a small photo Gallery. I create a xml file and try to link it to my List control with itemrenderer. However, when I tried to save the file, I got access of undefined property "data" error. I thought we are suppose to use "data" to refer the current row of the data object. Here is my code...and thanks a lot!
<?x...
This is a Flex 4 application:
I have created a list as the following:
<s:List id="previewList"
horizontalCenter="14"
verticalCenter="-112"
itemRendererFunction="listItemRendererFunction"
click="controller.previewListClickHandler()">
</s:List>
And I have the itemRendererFunction:
p...
Hey all,
I have made a program in Flex for creating simple schedules, similar to MS Project or Vico Control. I have one problem that I would like to solve. (You can see it here: OnTime Project Scheduling tool made in Flex
The tasks of the schedule are represented as Gantt Chart, for which I created a itemRenderer inside one of the rows...
Hi i have a mx:List with a DataProvider. This data Provider is a ArrayCollection if FotoItems
public class FotoItem extends EventDispatcher
{
[Bindable]
public var data:Bitmap;
[Bindable]
public var id:int;
[Bindable]
public var duration:Number;
public function FotoItem(data:Bitmap, id:int, duration:Number, ...
Hi,
I am new to Flex.
What I am looking for here is adding a click handler on all the items created by a SkinnableDataContainer. I tried several things that didn't work, and I have no idea what is the right way to do it.
<s:SkinnableDataContainer id="teamList"
itemRenderer="TeamSummaryRenderer">
<s:dataPr...
I'm trying to create a custom ItemRenderer for a TileList in Flex 4.
Here's my renderer:
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackgro...
I'm using a List which I need to be empty at the start. I'm adding items to it as needed by clicking a button. Since it's empty, I haven't added a dataProvider property
<s:List id="thelist" itemRenderer="listIR" />
To add an item, I'm adding it to the dataProvider directly
thelist.dataProvider.addItem()
but when I do that, it gives...
I have a list with a itemrenderer. When I put a button in the itemrenderer I can not interact with it. If I rollover the button the list item rollover is triggered but not the button's rollover. I can't click on the button either. You can see below I have a click event set in the itemrenderer and it is not called on click when I run ...
It seems like it should be a simple concept. I need a vertical list. This list has an image with a checkbox and pathname of that image underneath it. The user should be able to check the checkboxes of the images they want to appear in their "shopping cart". The images, checkbox label, and list are populated by an XmlList. How can I do th...
I'm trying to add an Image to a datagrid row, but I cant get anything to show.
I'm datagrid dataprovider is an xml file. If tried incorporating the item render inline as will as definining it in another file, and still now joy.
<mx:DataGrid id="nodeGrid" dataProvider="{nodes}"
creationComplete="datagridChange()" dataChange="data...
I have a list ItemRenderer that has 2 states. When it initializes, I set it to 1 state and listen for an event that switches it to state 2.
protected function onCreationComplete(event:FlexEvent):void{
currentState = "state1";
addEventListener(CustomEvent.Event1, switcherfunc);
}
protected function switcherfunc(event:FlexEvent):vo...
I have a tree control with a custom item renderer. The item renderer has different states that should be set while an item is being dragged over the item renderer. I understand from reading this post http://forums.adobe.com/message/2091088 that the 'right way' to do this is to override the 'getCurrentState' method and append some text. I...
I have a flex combobox as a datagrid itemEditor.
However, after selecting an item in the combobox, its necessary to click out of the combo (i.e. into another cell or elsewhere in the app) for the value to be committed to the combo. Prior to this, the combo sits 'proud' of the datagrid and the value hasnt actually been committed.
Is the...
The following code display a list of comments using List control. The item height set to a fixed value (150), so it seems working: if the content is too long, the scrollbar shows...
However, what I really want is not to set the height but let it to change according to the content size. Is there any way to accomplish this?
<mx:...
I have a "step indicator" made out of a DataGroup:
<s:DataGroup id="stepNumbers" itemRenderer="stepNumberRenderer" horizontalCenter="0">
<s:layout>
<s:HorizontalLayout verticalAlign="middle"/>
</s:layout>
</s:DataGroup>
where the dataprovider is 1,2,3,4,5.
The item renderer has 2 states, "normal" and "active". Within Actionscript, I...
Hiya.
I'm creating a list of scores for a game. now most of the list i need to have the same ItemRenderer. but in one specific row of the list where the user who's playing is listed, it should show different information and with different background color. how can i achieve this ?
update
I already tried to resolve the issue with state...
I have a MXML application with a DataGroup as follows:
<s:DataGroup id="productSelector"
dataProvider="{products}"
itemRenderer="renderers.ProductLineupRenderer"
>
<s:layout>
<s:HorizontalLayout/>
</s:layout>
</s:DataGroup>
I want to know when items in my itemRenderer are manipula...
I'm attempting to add an image to a datagrid item render dynamically in flex.
Here is my DataGrid code
The value of "str" in the getImagePath function is correct.
<?xml version="1.0" encoding="utf-8"?>
<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml"
doubleClickEnabled="true">
<mx:Script>
<![CDATA[
...
Hi all,
I've got a problem in an ItemRenderer in Flex 3.5. I've looked at the other posts regarding this error but still can't figure it out. The ItemRenderer is part of an AdvancedDataGrid who's data provider is HierarchicalData. I'm getting the ArgumentError but the trace doesn't go to any of my code. I've gone through in debug mod...
I have an itemRenderer for a list where I'm just displaying items and their details respectively. I want to keep the details invisible and have a button,Show Details, in my main mxml file which when clicked would make the details visible.
So, my problem is in the clickHandler how can I access the details property within the itemRenderer...