Actionscript 3 :: Flex 3 TileList Drag/Drop/Re-order Exception. How Do I Rearrange Tiles?

Jun 8, 2009

I'm in need of some dire help here. I'm writing an application in Flex 3 that utilizes a TileList with a custom itemRenderer to display info from a service. Unfortunately, I'm running into an exception with the drag/drop/rearrange portion of the TileList. With dragEnabled and dragMoveEnabled, I receive a fully-reproducible exception when trying to rearrange the tiles in the control:

Exception:
ArgumentError: Error #2004: One of the parameters is invalid.
at flash.utils::ByteArray/writeObject()
at flash.desktop::Clipboard/putSerialization()[code]....

When I try to debug, the debugger doesn't seem to indicate to me any piece of code that might be faulty.

View 1 Replies


Similar Posts:


Flex :: Drag And Drop - Getting TileList Image Source

Aug 15, 2009

I have a TileList that's loaded with data from Flickr. The tilelist uses an imageRenderer to make a bunch of thumbnails. I'm trying to create a custom drag and drop function, but I want to get the image source of the tilelist mouseEvent target. Here's what the code looks like for the drag handler:

[Code]...

View 1 Replies

ActionScript 3.0 :: Drag And Drop Item Order Not Matching DataGrid Source

May 25, 2010

I have a DataGrid that contains data linked to a server. When I select mutliple items from the grid (using shift-select) and drag some items out from the DataGrid to another component, the array of items being dragged over appears to be in a completely arbitrary sort-order, and are not in the sort -order f the DataGrid as I'd expect.

Therefore, wwhen i drop them on the target (which is unsorted), their order doesnt match that of the DataGrid... what am I doing wrong and how can i fix this?

I'm getting the array using:

var dragItems:Array = event.dragSource.dataForFormat("items") as Array;

Is this the wrong data source on dragSource to look at?

I should mention that the drop target is a nonlist control, and that i am using a custom drop handler...

View 1 Replies

Flex :: Creating A TileList With Canvases Which Are Drag-able?

Nov 24, 2010

I want to create a tilelist in which there would be different canvas or vbox etc, and i want to make them drag able.I wrote a code to do this, but the output does not shows anything in a list.

<mx:TileList width="1500" height="1000" dragMoveEnabled="true"
selectable="true" selectionColor="#FFFFFF"
dragEnabled="true" dropEnabled="true"

[code].....

View 1 Replies

Flex :: Wrap Java Exception Into Exception?

Jun 16, 2010

I am using spring exception translator to wrap java exception into flex exception.
eg

public void testException()throws Exception{
throw new Exception("my exception");
}

But for some reason, I am getting IllegalAccessError. The code sections are entering the testException and the Translator class.

Question: why it trying to get log target level ?

Below is the lines from the log:

[Code].....

View 1 Replies

ActionScript 3.0 :: Adding Movies Dynamically - Recreate Class Works But Shows The Tiles In A Random Order

Oct 4, 2011

0: Its not rocket science, but my surname aint Oppenheimer either so... read on if ou dare.

1: this is my third attempt at mastering OO and flash CS5 so, i hope we can all have a laugh after.

2: In short.. I added a 64x64 tiled movie in flash. Read it out in an array, in a.. well original way(just to see if i could get it to work so stop lauging already), and tried to recreate them using a flash class.
 
2a: The recreate class works but shows the Tiles in a random order, every time a new one?! this is what happens..

[Code]...

View 5 Replies

Flex Drag And Drop

May 19, 2009

I am trying to do a flex drag and drop. It is very similar to this first example.url....The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging.

View 1 Replies

Flex :: Drag And Drop Between Datagrids?

May 5, 2010

we want to drag a button with a css layout from one grid to the other. On the second grid should be the same button with this layout. The grids are in different mxml files.

View 2 Replies

Flex :: Drag And Drop In Canvas?

Feb 1, 2011

I'm doing an application in flex where I draw different sprites inside a canvas. Depending of the dimensions, scrollbars can be appear. I would like to move the "image" with the movement of the mouse as you can see at the Adobe Reader when you are reading a document with zoom (hand mouse icon). In this way, you dont have to touch the scrollbar.I'm start trying with drag and drop properties of the canvas, setting the position of the scrollbar according with the movement of the mouse but that is not as I expect.

View 2 Replies

Flex :: Drag And Drop Icon?

Mar 7, 2011

I am dragging item from a datagrid and while dragging I could see all of the columns in the selected record, being getting dragged. However I only want to show one column (maybe name or id of the record)? Is there a way to achieve this? Also, could I show an icon or image instead of the record while dragging.

View 1 Replies

Flex :: Drag And Drop Of FXG Graphics

Apr 27, 2011

I am building a flex project involving drag+drop of fxg graphics. My graphic is instantiated as below:
<graphics:arrow2 id="object" mouseMove="mouseMoveHandler(event);" />
I get an error: "Call to a possibly undefined method Graphic."

This works if I change my drag-object to Image and replace the 'Graphic' below with 'Image'. What should I use to be able to reference the fxg graphic in the drag-drop? My drag drop functionality is as follows
private function mouseMoveHandler(event:MouseEvent):void {
var dragInitiator:Graphic = Graphic(event.currentTarget);
var ds:DragSource = new DragSource();
ds.addData(dragInitiator,"gph");
DragManager.doDrag(dragInitiator, ds, event);
[Code] .....

View 1 Replies

Flex :: Drag And Drop Of Swc Components

Apr 28, 2011

We need a capability by which we can drag and drop swc components in our Flex Application.

View 1 Replies

ActionScript 3.0 :: Drag From TileList To MovieClip?

Jan 9, 2012

I have a Tile List wich all my movie clips, and i want to 'drag' the movieClip from Tile list and drop it into my movieClip called "palco", [URL] that my code to populate my TileList:

[Code]....

View 0 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 :: Drag And Drop Onto AdvancedDataGrid Cell

Sep 14, 2009

How do I determine which Flex AdvancedDataGrid cell - row and column index - I've just dropped onto? calculateDropIndex seems to give me the row, but how do I get the column?

View 1 Replies

Flex :: Prevent In Drag And Drop, Dragging Onto Self?

Oct 19, 2009

I was wondering, if I have two list boxes, and I want to drag and drop between both of them, how do I prevent the user from dragging onto the same list (thus duplicating the item? I cannot have a situation where that is the case

View 5 Replies

Flex :: Tree Drag And Drop Functionality

Dec 8, 2009

[code]I want a tree in this structure, having line between the nodes, also, instead of Open and Close Folders, I have added my own graphic there with label. I did by extending TreeItemRenderer Class. Now, I if iam dragging and dropping a child node ex:label5, and try i drop it above label1 here, it is getting dropped there. i.e.,it is becoming like.[code]

View 1 Replies

Flex :: Drag&Drop In Advanced DataGrid?

Jan 18, 2010

I have a Advanced DataGrid for displaying the number of rows from the Database and one row strictly should not allowed drag option. Is is possible

View 1 Replies

Flex :: Drag And Drop From Datagrid To Uicomponent?

Aug 10, 2010

I'm trying to drag an item from a datagrid and drop it onto a UIComponet. Basically I just want the UIComponent to know that something has been dropped onto it and allow it to access the data of the dropped item.

I thought just listening for the drop event would do it but it seems not.

I found lots of documentation on dragging from one IList to another but nothing for this.

<mx:UIComponent xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="init(event)" dragDrop="itemDropped(event)">

View 1 Replies

Actionscript 3 :: Drag And Drop To A Sprite In Flex?

Sep 13, 2010

I need to detect when a user d-b-n-d an object into a sprite. I'm adding the 3 event listeners I need, but only one of them works:

ontainer.addEventListener( DragEvent.DRAG_ENTER, dragEnterHandler);
container.addEventListener( DragEvent.DRAG_EXIT, dragExitHandler);
container.addEventListener( DragEvent.DRAG_DROP, dragDropHandler);

[code]....

View 1 Replies

Flex :: Enable Drag And Drop In List?

Oct 10, 2010

I have a Spark List with a TileLayout. I want to enable moving itemRenderers around to be able to order items.

View 1 Replies

Flex :: Drag-and-drop Onto List Item?

Oct 21, 2010

I have a List with an item renderer and would like to enable drag-and-drop onto the items in the list, rather than adding the data to the list. Is it possible to find the item that is being hovered over when dragging?

View 1 Replies

Jquery :: Vs Flex For Drag-n-Drop Interface

Nov 24, 2010

I'm developing an application that will randomize a list of words, and display them to the user. The user will then be able to drag the box containing each word over a Cartesian plane, and drop it anywhere they like. They will also be able to link various words together on the same plane. Once a user has completed these tasks, I want to update a database with that user's data - the coordinates of each word, as well as any parent words that may exist for each word. I started developing the application in Flex, but I'm running into problems integrating the data manipulation. It might just be me, but I find the way Flex is structured to be very counter-intuitive. I'm playing around with shifting the project over to perhaps a JQuery build. I'm proficient in neither JQuery nor Flex, however, and I'm not sure which one will be easier to pick up and develop a working prototype with.

View 1 Replies

Flex :: Drag And Drop On Lattice Grid?

Feb 27, 2011

I am trying to build a visual simple electric circuitry model. Towards thata) I am looking to build a drag & drop functionality, whereby I have items (wires, resistors, battery) that can be dragged and dropped on screen where I have a 10 x10 grid- the dropped items will take line positions on the grid based on where they fall.Should I do this using the mouseX, mouseY and connect them to grid points they fall closest to? The typical drag and drop examples I have seen, don't concern themselves with exact position in destination- which is obviously important here

View 1 Replies

Flex :: Datagrid Drag And Drop Styling?

Mar 1, 2011

When I enter with a dragged item into datagrid, a bold line appears over the active row of the datagrid (which is fine to show the active row), but the problem is that even after I drop the item into datagrid, that line remains there. It goes only if I enter with a new item (in which case a new line comes to the respective row again).

I am using custom handler for dragdrop event for this datagrid.

View 1 Replies

Flex :: Drag And Drop An Object Across The SkinnableContainer

Apr 14, 2011

I am trying to drag and drop an object across the SkinnableContainer- am coming across a very strange issue

The drop occurs only at a few places- elsewhere it just shows the "X" sign and on dropping there, reverts to original position. I have used very standard commands... from function 2 to function 3, the call occurs very rarely as seen in trace statements- any guidance on why this happens?

I added the following code to SkinnableContainer: dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);

(1):

private function mouseMoveHandler(event:MouseEvent):void
{
var dragInitiator:Image = Image(event.currentTarget);
var ds:DragSource = new DragSource();

[Code]....

View 1 Replies

Flex :: Ability To Drag+drop A Movieclip

Apr 29, 2011

In order to improve user experience we want the ability to have an animated movieclip of a turning wheel- and have the ability to drag and drop it anywhere on a defined area

We have built the rotating wheel as a swc file.

How do we do the drag+drop. Examples that I have seen, cater to only dropping of images.

View 2 Replies

Flex :: Drag And Drop An Image From A Container To Another?

May 23, 2011

I need a way to drag and drop an image from a container to another. I have tried a few different ways but I guess the drag & drop thing is still eluding me. Anyway, here's what I am trying to do, A container will contains a few bitmap/vector image (what's the best way for this? Tile Group? Or?) and then I want to be able to drag any of the image onto another larger Image inside of a Panel. Just like dragging shapes in Photoshop. No code here, as I am completely lost on how to go about it. I found a few tip/tutorial here and there but none which I could understand easily or adapt to my need.

Edit 1 : Got so far till now :
public function beginDrag( mouseEvent:MouseEvent ):void
{

[code]....

View 2 Replies

Flex :: Move-only With Drag & Drop In A Tree?

Sep 12, 2011

I have a tree (in Flex 3.5), and I want to use the drag & drop functionality, but I want to let the user only move nodes, not copy them. I tried listening for the dragOver event and change the drag event's action property if it indicates a copy operation, and also listening for the keyDown event and changing the feedback using the DragManager if the pressed key was ctrl, but to no avail.

View 2 Replies

InDesign SDK : Drag'n'Drop From A Flex Panel?

Jan 16, 2012

I have a Flex panel, in InDesign, from which I drag an URL. If I drop this URL on a text editor or a web browser, it works. But when I try to drop it on my InDesign document, it's a little bit harder.I have implemented a subclass of CDragDropTargetFlavorHelper. The drop works perfectly on Windows. But on mac, I have problems in the method CouldAcceptTypes :

DragDrop::TargetResponse AutocatDNDCustomFlavorHelper::CouldAcceptTypes(const DragDropTarget* target, DataObjectIterator* dataIter, const IDragDropSource* fromSource, const IDragDropController* controller) const
{
if (0 != dataIter && 0 != target)

[code]....

The problem is the IMPDataObject I get is nil. There is no item in the controller. However, there were items in the CouldAcceptTypes method, in the DataObjectIterator. So, where are my items ?I tried using a custom CDataExchangeHandlerFor, but could not really understand what its usage was for. It didn't work anyway.

View 1 Replies







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