Flex :: CurrentState Of Itemrenderer Refreshes On DragDrop Event?

Apr 2, 2011

I have a simple drag and drop, and wanted to change the state of the drop target on a match. It works as expected, but then there the state changes back to normal (or the itemrenderer is refreshing). I am guessing there is either an override that i need to do, or in need to flag it to not refresh, but having no luck.

MXML

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


Similar Posts:


Flex :: Spark List Itemrenderer Focus Defaults The CurrentState

Dec 29, 2010

I am using a spark list control with an itemrenderer. Whenever I set an itemrenderer's currentState, the moment I mouse out of the itemrenderer, it gets reset to its default state. How can I make an itemrenderer keep its currentState unless I explicitly tell it to change?

View 1 Replies

Flex :: DragDrop Event Not Firing For TextArea Control?

Feb 2, 2010

I'm working on a simple view in my app that allows a user to drag an item from a list control and drop it onto a textarea.

Seems the dragEnter event fires just fine, but the dragDrop event does not.

View 1 Replies

Flex :: Listen To Event In ItemRenderer?

Apr 2, 2012

I try to make have an EventListener in ItemRenderer but its not working. How to listen to an event inside an ItemRenderer?

----In MainHomeView.mxml----
<fx:Metadata>
[Event(name="myEvent", type="flash.events.Event")]

[Code].....

View 2 Replies

Flex :: Dispatching Custom Event From ItemRenderer?

Feb 15, 2012

I'm trying to dispatch a custom event from a custom ItemRenderer. This is my custom event
package events {
import customClass.Product;
import flash.events.Event;
public class CopyProductEvent extends Event {
public static const COPY_PRODUCT:String = "COPY_PRODUCT";
public var picked:Prodotti;
[Code] .....
The event from the function is dispatched correctly... I can't intercept it..

View 1 Replies

Flex :: Override Paste Event In DataGrid ItemRenderer?

Mar 16, 2011

I am trying to figure out how to override the default paste logic in a Flex 4 DataGrid ItemRenderer. Does anyone know how to do this?I am trying to capture the event when a user hits Ctrl-V while a cell in the DataGrid has focus and override the logic there.

View 1 Replies

Flex :: Access 'currentState' From Other Classes?

May 6, 2010

I'm making a little application in Actionscript 3. In my initApp.as I have created another class which needs to edit the currentState, which is only accessible from the main .as (initApp.as). I found a solution such that I can reach the currentState property from my other class: Application.application.currentState.This is however not a good solution as it couples the classes too much.. is there a better way of editing the currentState from other classes?

View 1 Replies

Actionscript 3 :: Prevent Overlapping DragDrop Images In Flex

Apr 16, 2010

I am trying to create basically a puzzle in Flex Builder 3. I display images from an array onto a canvas that can be dragged and dropped around the canvas. My problem is that I don't want the images to be able to overlap each other. how to prevent this?? They can overlap as you drag but not when dropped, they need to "snap" to the nearest point that is not already occupied by another image.

View 1 Replies

Flex :: Pass Event Handler To Dynamically Created Object Inside ItemRenderer

May 27, 2011

I have a Tree, which has an itemRenderer. On the itemRenderer, driven by the XML conditions, objects are created dynamically and added as a children to nodes. These new objects shall trigger an event handler ( some click events mostly ). How do I pass the event handler to the tree and later to the dynamically created new objects inside itemRendere?

Something like:
<mx:Tree x="534" y="49" newObjectsOnClick="newObjectsOnClickHandler">

View 1 Replies

Use DragDrop In AIR Application?

Sep 5, 2011

I am building an AIR application which opens some specific documents. I want to enable dragdrop on this application. So that when application is running and user drag a file and drop that file on the application window, the application must respond to that event and must be able to perform some action.

View 2 Replies

Flash :: Dispatch Event From ItemRenderer To Datagroup?

Apr 27, 2011

Eventdispatching here we are again...

I'm trying to dispatch a custom event from an custom ItemRenderer inside a Datagroup with no success.[code]...

From what i saw in the debugger, the events are dispatched from the ItemRenderer, but they never get catched by the listener (listener handler is never called). Many suggestions fly around about that in stackoverflow, but most for older flex versions or not practicle for my scenario.

View 1 Replies

Actionscript 3 :: Click Event Fire When Checkbox In ItemRenderer Is Clicked

Mar 8, 2012

I have an itemRenderer custom component inline of my DataGrid component. I need to have an event fire in the containing class (at the same level as the DataGrid) when the checkbox is checked or unchecked (in the itemRenderer component). How would I do this?

[Code]....

View 1 Replies

ActionScript 2.0 :: MC - Position Of The Anchor Points Refreshes Every Frame?

Aug 5, 2003

I always see these bezier curve things where you can like choose how to make the line bend and everything and today i started expirimenting with the drawing API and found out that it's incredibly easy to do. My question is how do you make it so that the position of the anchor points refreshes every frame? I have the basic idea I just can't quite figure it out.

View 7 Replies

Flash :: Access CurrentState From Other Files?

May 14, 2011

I have my main file (Main.mxml), and I have a main AS file (main.as). main.as is included by Main.mxml via <fx:Script source="main.as"/>. In main.as, I want to change the currentState of Main.mxml. How would I go about doing this?

Things I have already tried:

this.parent.currentState = "c_main";
this.parentDocument.currentState = "c_main";
this.parentApplication.currentState = "c_main";

View 3 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 :: 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

Server Side :: Have A Different Image Load On Home Page Everytime The Page Refreshes?

Jun 2, 2011

I want to have a different image load on my home page everytime the page refreshes or someone visits it. Is it possible to do it without using Flash?

View 2 Replies

ActionScript 2.0 :: Changing Content On A Page Each Time A User Visits Or Refreshes The Page?

Jun 16, 2003

How do i change content on a page each time a user visits or refreshes the page? example: the icon on kirupas header changes when the page is refreshed or re loaded. I have searched using dynamic content, but didn't quite find it...I only want to change 1 image..

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