Flex :: Itemrenderer Crash When Selected?

May 27, 2011

have an advanced datagrid with a simple custom mxadvanceddatagriditemrenderer. I want the renderer to only display an image when the row is hovered or selected. Right now I am doing that by using the excludeFrom="normal" tag on my image.

It works fine (minus the selected state, it disappears when selected) when I have the states hovered and normal defined. When I try to define a selected state, upon row click I get the following error:

RangeError: Index 0 is out of range.
at spark.components::Group/checkForRangeError()[E:dev4.xframeworksprojectssparksrcsparkcomponentsGroup.as:1106]
at spark.components::Group/setElementIndex()[E:dev4.xframeworksprojectssparksrcsparkcomponentsGroup.as:1265]

[code]....

View 1 Replies


Similar Posts:


Flex :: Access ItemRenderer Of A Selected Item?

Feb 3, 2010

I have a TileList with thumbnail images. Under each thumbnail images I display the name of the image. I want to build rename functionality. So under the TileList is a "Rename selected image" button.

When this button is clicked, I would like to change the state of the itemRenderer component. The label underneath the image will change into a TextInput so that the user can type a new name. This is much like the Windows rename file functionality.

How can I access the itemRenderer of the selected image? How can I make it happen that it listens to the click event of the Rename button?[code]...

View 3 Replies

Flex :: Get Selected Date On DateField Adobe Datagrid ItemRenderer

Jul 23, 2010

I am trying to get the selected date on the datagrid. I used the itemrenderer to display the datefield on my datagrid.

<mxataGridColumn dataField="dt" headerText="Date of Transaction" itemRenderer="mx.controls.DateField" rendererIsEditor="true" editorDataField="selectedDate"/>

View 1 Replies

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

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

Actionscript 3 :: Flex SharedObject Crash?

Feb 12, 2007

I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:

nc = new NetConnection();
nc.connect("rtmp://[website here]");
so = SharedObject.getRemote("ballPosition", nc.uri, false);

[code].....

View 7 Replies

Flex :: Why SWF Causing Flash Player To Crash

Aug 6, 2009

I've got a flex-based swf, which is loading an AS 2-based swf and then, negotiating further activity via a LocalConnection. From time to time, the AS 2-swf can request that the flex-based swf load a movie. I've arranged this via on(release){} functions. The AS 2-swf, I'm making in Swish Max. In Swish, when I set the on (release) on a text field, (to invoke .send() on my localconnection), it works splendidly. However, when I attempt to perform the same calls for an on(release) attached to a movieclip, it actually causes the Flash player, and even the browser plugin to crash. In fact, the browser (IE) crashes as well. I checked the debug trace that ie asked me to send to microsoft at the last IE crash, and i noticed a StackOverflow exception embedded deep in the trace, but I couldn't determine its source.

View 5 Replies

Html :: Rescue Flex HTMLLoader Crash?

Jun 7, 2011

I use HTMLLoader component, and I have to load thousand of different websites per days by this component.But some times, HTML component produce several crash/days of my AIR application

View 2 Replies

Flex :: Eclipse Adobe Plugin Causes Crash

Jul 4, 2011

I installed the Adobe Flash Builder 4.5 which includes the eclipse plugin.I want 2 use my existing eclipse, so I copied the contents of plugin and features folder to existing eclipse folder.I see the Flex features in Eclipse, but trying to open the Flex Builder Path causes eclipse to crash. Error Message is :

"Please uninstall and reinstall the product

If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.[code]...

View 2 Replies

ActionScript 2.0 :: Flex 2: Crash Bug In Canvas.measure?

Oct 6, 2006

The program croaks when measureContentArea (in package mx.containers.utilityClasses, file CanvasLayout.as ) loops through the target's children from 0 to target.numChildren. When the program errors: n == 1, i == 0, and target.numChildren is now 0, when it was 1 before the loop. target.numChildren has changed while the loop is running. It's as if a child was removed by some side effect of calls in the loop.

This happens even when I have many IOComponents on the screen: Here This baffles me because I don't see how I can debug it. I do add and remove and insert children in my game code, but unless ActionScript is threaded I don't see how my code can reach into a loop in CanvasLayout.as .

View 2 Replies

Flex :: Add Detailed Remote Crash Reporting To Air Application?

Mar 1, 2010

I will be releasing my Air/Flex application soon, but I am pretty sure there are a couple of bugs that may pop up on the various platforms that Air is available for. So I was wondering if there is a way to implement a mechanism, that would send an error report, logging where the error happened, to a remote server each time an app crashes? This way I might catch errors that otherwise would go unnoticed.

View 1 Replies

Android :: Debug A Crash With A Flex/AIR Mobile Application?

Sep 12, 2011

I have a flex app using the 4.5.1 sdk and AIR 2.7 running on an Android 3.2 tablet. During use, I can get it to crash fairly regularly. It's usually when I'm rapidly scrolling around in a List control. I can't seem to find the cause.

The application will just suddenly close. It happens in both debug and release builds.

When in debug mode, it just disconnects from the debugger and doesn't give me any useful information.

I'm at a loss on how to debug this. What are some techniques I can use?

I found the "adb logcat" command. Relevant info from the log below, unfortunately it doesn't mean much to me.

[Code].....

View 2 Replies

Flex :: Flash Player 10.1 Crash On Shared Object Access

Jun 14, 2010

since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird crash when accessing shared objects. Flex Builder's debugger pops up and prints a stack trace like this:

undefined
at flash.net::SharedObject$/getLocal()
at my.code::MyClass$/load()[/my/path/to/my/MyClass.as:27]
(...)

This happens when calling SharedObject.getLocal("someString") for the second time for the same string, though it doesn't always crash. When using another browser on the same machine (not configured as the preferred debugging browser in Flex Builder), Flash Player remains silent. The code is wrapped in a try/catch(Error) block which does not catch this error. I'm using Flex SDK 3.5 and Flex Builder 3 on Mac OS X 10.6.3.

View 4 Replies

Actionscript 3 :: Flex Using Sharedobjects To Store Information On Server - Crash

Aug 26, 2011

I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:

[Code]...

But when it gets to the 3rd line, it crashes. I don't know how to use the debugger for flex sadly enough

View 1 Replies

Flex :: Datagrid - ItemRenderer Flex Values Getting Not Rendered According To ArrayCollection Provider?

Feb 4, 2011

i have a problem using the itemRenderer functionality. When using an ArrayCollection the visible Data in the DataGrid using the itemRenderer will be rendered just fine. But if i start scrolling the entries are repeating in the cells using the renderer. The cells are not filled with date according to the id. What mistake i'm doing here.

I read a lot of the explainations like:

[URL]

here is the code for the set data function (itemRenderer is extending HBox):

override public function set data(value:Object):void {
_data = value;
if(data!=null)

[code]....

View 1 Replies

Flex :: Itemrenderer - Referencing And Setting A Single Item Renderer Instance In A Flex Tree At Runtime?

Oct 17, 2010

Anyone know how to change a single instance of an item renderer for a Flex tree item at runtime? To reiterate, I'm not trying to change the entire tree's item renderer like this:tree.itemRenderer = new ClassFactory(ItemRenderer2);I'm trying to change the item renderer of a single tree item like this (the following code does not work):tree.selectedItem.itemRenderer = new ClassFactory(ItemRenderer2);To put it more simply, does anyone know how to reference an instance of an item renderer and set it to a new item renderer class? I've tried using the Tree's itemToItemRenderer() method with no success.

View 1 Replies

Flex :: Flex Drag And Drop Between AdvancedDataGrid With Custom ItemRenderer

Feb 26, 2011

I have implemented drag and drop between 2 AdvancedDataGrid, but the default behaviour from Flex displays the row data during the drag using the grid item renderer showing all 5 columns.

Instead, I would like to display an icon / image or my own custom item renderer during the drag and drop.

View 2 Replies

Flex :: Crash - IntelliJ IDEA Wrapper Html Crashes Browser?

May 22, 2010

I'm building an Flex 4 application using IntelliJ IDEA 9.0.2 generated sample Flex application. I replace the generated mxml with the following code from the book Hello Flex 4. It simply crashes the browser when I run it. It says "Waiting for [URL]..and then crashes I tried it on both FF 3.5.9 and Chrome 4.

[Code]...

View 1 Replies

Java :: Flex Compiler - Mxmlc - Makes 64bits JVM Crash (dcpr.dll)

Aug 12, 2010

I have a web application that converts SVG files into swf ones. In order to do so, there are 3 steps:

1 - Running through SVG Files in a folder

[Code]...

View 2 Replies

Flex :: Displaying List Of Flex Progressbar Using Itemrenderer?

Sep 25, 2010

I want to create a list of progress bars and update the list accordingly.I have group data in an Array as

<mx:Array id="arr">
<mx:Object label="Group One" min="0" max="200" currentValue="60" />
<mx:Object label="Group Two" min="0" max="300" currentValue="50" />[code]....

The values in the array object indicate name of group,minimum,maximum and current value for the group (to be used in progressbar).I used the list with "mx.controls.ProgressBar" as itemRenderer as

<mx:List width="100%" dataProvider="{arr}"
itemRenderer="mx.controls.ProgressBar"/>

Now what I need is whenever currentValue field of Array "arr" changes i want to update the progressbar "progress" value to currentValue (where min and maximum value of progressbar are stored in Array "arr").

View 3 Replies

Flex :: Navigate Within An ItemRenderer?

May 11, 2011

How can we navigate within an itemRenderer? For example, in Views we use the View.navigator (ViewNavigator) to push and pop views, there is no such feature in ItemRenderer.

Navigation within a View (Easy)

<s:View>
<s:HGroup >
<s:Button label="Questionnaire" click="navigator.pushView(view.QuestionnaireCategory1View)"/>
</s:HGroup>

Navigation within a Item Renderer (Impossible?)

<?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"

[code]...

View 2 Replies

Flex :: Add ItemRenderer On The Fly On Component?

Jun 21, 2011

I have a List which has TextInput as itemRenderers for all its items. Upon application launch the items are rendered in the TextInputs correctly. The data is being populated from an Array of Objects.

What I want is, after the data has been populated in the ItemRenderers, I want to have an additional item renderer (TextInput of course)...so that if the user wants to enter another item, he can put it in the additional textInput.

And I also want to add the additional itemRenderer each time the user has added a new item and taps ENTER on the newly added item.

Below is my itemRenderer, there is the clearTxt_enterHandler handler..but I wonder how to add another itemRenderer upon "Enter".

<?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"

[Code].....

View 1 Replies

Flex :: Adobe Air: Drag Application Crash - Error #3200: Cannot Perform Operation On Closed Window

Nov 23, 2009

Now I set dragEnabled="true", dropEnabled="true" and dragMoveEnabled="true" to archive the ability to reorder my Items via Drag and Drop. But as soon as I start to Drag an Item the whole Application crashes with:

[Code]....

View 1 Replies

Flex :: Put An Itemrenderer On The DataGrid Itself Rather Than A Datagridcolumn?

Jul 8, 2009

Is it possible to put an itemrenderer on the DataGrid itself rather than a datagridcolumn? I could only find examples for datagridcolumn. I want a generic itemrenderer on all the items in a datagrid...

View 1 Replies

Flex :: Datagrid Of ItemRenderer Checkbox?

Jul 15, 2009

i used iteamreander in datagrid . if i select checkbox in grid automatically select another checkbox why? plz explain My xml data is more then 50 records.

<mx:DataGrid change="calculate()" id="calamount" x="0" y="3" width="327"
height="337" variableRowHeight="true"
dataProvider="{xml_coupon.lastResult.Teamcoupon.match_details}" >

[code]....

View 1 Replies

Flex :: Datagrid With RadioButtonGroup Itemrenderer

Aug 12, 2009

I have an AC with several questions and assoicated answers. These must be shown in a DG, and the idea is that the rows and colums of the DG are bound to the AC. For example, if the answer to question1 is Yes, the Yes-button must be true, and both the others must be false (as in normal radiobuttongroup behaviour). But when I change a button by clicking it, the actions datafield of the AC should change accordingly. Am I clear enough here?

It is ment for dynamic questionnaires.

<?xml version = "1.0"?>
<mx:Application xmlns:mx = "http://www.adobe.com/2006/mxml">
<mx:Script>

[Code].....

View 2 Replies

Flex :: Set The DataGridColumn's ItemRenderer Dynamically?

Nov 27, 2009

I have this DataGrid:

<mx:DataGrid id="myDataGrid">
<mx:columns>
<mx:DataGridColumn dataField="colA" headerText="Column A:" width="40"

[code].....

View 1 Replies

Flex :: Difference Between ItemRenderer And ItemEditor?

Dec 24, 2009

What is the Difference between ItemRenderer and ItemEditor?And When ItemRenderer is initializing and loading?

View 1 Replies

Flex :: Custom ItemRenderer And Editor?

Feb 15, 2010

I've created a custom ItemRenderer extending UIComponent and implementing IListItemRenderer. This renderer contains a Text-Object to display the value.

For editing I'm using the standard ItemEditor (TextInput).

Now, when I want to edit a value, I click on a cell and the editor is created. But instead of displaying the value which was displayed in the renderer, "[object Object]" is displayed.

View 1 Replies

Flex - Access The DataGridColumn From It's ItemRenderer?

Mar 3, 2010

I am using a custom componenet based off of text as an itemRenderer for a dataGrid that is displaying an XMLList. I want to be able to re-use this itemRenderer for multiple columns, how do I access the dataGridColumn so I know which field to assign to the text value?

super.data gives me the whole XML item, super.parentDocument gives me the whole DataGrid

View 1 Replies

Flex :: Accessing The XML Nodes In ItemRenderer?

Mar 10, 2010

[Bindable]public var headingData1:Object = new Object();

<mx:HTTPService id="srv" url="components.xml" resultFormat="object" result="getHeadings(event);"/>
private function getHeadings(evt:ResultEvent):void{

[Code]....

View 2 Replies







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