Re: [flexcoders] Drag and drop vs scrolling

2010-04-21 Thread Alex Harui
Some folks have tried making the renderer a drop target in order to add different meaning to dropping in folders. In theory it should work, but I think I’d work from the Tree instead, and then I would expect autoscroll to work. On 4/20/10 3:31 PM, Richard Rodseth rrods...@gmail.com wrote:

Re: [flexcoders] Drag and drop vs scrolling

2010-04-21 Thread Richard Rodseth
Thanks. I was able to fix the highlighting issue by modifying some code that used listData.rowIndex to use calculateDropIndex() instead. Autoscroll doesn't work, but I can live with that. On Tue, Apr 20, 2010 at 11:41 PM, Alex Harui aha...@adobe.com wrote: Some folks have tried making the

Re: [flexcoders] Drag and drop, custom cursor during drag not working

2009-12-17 Thread Chris
Just a thought, as I haven't tried the method you described. What about setting the styles of the cursor on mouse down? var styleSheet:CSSStyleDeclaration = StyleManager.getStyleDeclaration(DragManager); styleSheet.setStyle(moveCursor, grabCursor); or styleSheet.setStyle(copyCursor,

Re: [flexcoders] Drag and drop

2009-07-20 Thread dingpeng cao
you can do this with a trick: when you start drag remember the mouseX and mouseY. code list this: // The mouseMove event handler for the Image control // initiates the drag-and-drop operation. private function mouseMoveHandler(event: MouseEvent):void { var

Re: [flexcoders] Drag n Drop from one Flex application to another Flex application.

2009-07-14 Thread Julien Nicoulaud
I guess it is not possible, because between the two applications you should have access to the system drag and drop manager. By the way, you can do it in an air application. (by the way, hi everyone, i'm new :) 2009/7/13 avibhujade avibhuj...@yahoo.com Hi, I have two flex applications and

Re: [flexcoders] Drag and Drop

2009-03-20 Thread Tom Chiverton
On Friday 20 Mar 2009, christophe_jacquelin wrote: How to make Drag and Drop between 2 mx:Image ? DragManager, like I said ~4h ago in reply to your other post. Having read the extensive documentation and example code, what is your specific problem ? -- Tom Chiverton Helping to confidentially

Re: [flexcoders] Drag and Drop

2009-03-20 Thread Fotis Chatzinikos
Christophe, Do you know the story about the wolf, the sheep and crying out wolf without a purpose? If not google for it :-) PS: Explanation: If you keep asking 20 questions a day on simple staff, without reading any tutorials, people will get pissed of and will not reply even when you need real

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-02-02 Thread David Kramer
in the UI. _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Hayes Sent: Friday, January 30, 2009 5:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-02-02 Thread David Kramer
Of Tracy Spratt Sent: Friday, January 30, 2009 4:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) http://livedocs. http://livedocs.adobe.com/flex/3/html/dragdrop_8.html adobe.com/flex/3/html

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Tracy Spratt
If you write your own drag/drop handlers and call preventDefault, you can do anything you want, or nothing. There are lots of examples in the docs. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Jim Hayes
So I think what you really need to be doing is to have the list item renderer accept the drop, rather than the list itself? I'm sure I did this with the datagrid about a year and a half ago, unfortunately I don't have that project to hand just now or I'd have a look and see how I did it. All I

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread David Kramer
To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) If you write your own drag/drop handlers and call preventDefault, you can do anything you want, or nothing. There are lots of examples in the docs. Tracy Spratt

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread David Kramer
: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) So I think what you really need to be doing is to have the list item renderer accept the drop, rather than the list itself? I'm sure I did this with the datagrid about a year and a half ago

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Tracy Spratt
Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of David Kramer Sent: Friday, January 30, 2009 4:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Jim Hayes
Of Jim Hayes Sent: Friday, January 30, 2009 2:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes) So I think what you really need to be doing is to have the list item renderer accept the drop

RE: [flexcoders] Drag And Drop Tree

2009-01-20 Thread Alex Harui
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag And Drop Tree It can be moved around but cannot be dropped into a folder (branch) unless the folder is open. I was adding those handlers, so that i can drop item/items inside a closed node... And it works for branches but not for leaf nodes

Re: [flexcoders] Drag And Drop Tree

2009-01-19 Thread claudiu ursica
: [flexcoders] Drag And Drop Tree Setting breakpoints in drag/drop generally doesn’t work because you tend to release the mouse in order to dig through the debugging info and when you resume the drag is cancelled. Remove the custom drag event handlers and try with simple data and see if it works. We

Re: [flexcoders] Drag And Drop Tree

2009-01-19 Thread Sefi Ninio
...@adobe.com *To:* flexcoders@yahoogroups.com flexcoders@yahoogroups.com *Sent:* Monday, January 19, 2009 7:47:53 AM *Subject:* RE: [flexcoders] Drag And Drop Tree Setting breakpoints in drag/drop generally doesn't work because you tend to release the mouse in order to dig through

Re: [flexcoders] Drag And Drop Tree

2009-01-19 Thread claudiu ursica
From: Alex Harui aha...@adobe. com To: flexcod...@yahoogro ups.com flexcod...@yahoogro ups.com Sent: Monday, January 19, 2009 7:47:53 AM Subject: RE: [flexcoders] Drag And Drop Tree Setting breakpoints in drag/drop generally doesn't work because you tend to release the mouse in order

RE: [flexcoders] Drag And Drop Tree

2009-01-19 Thread Alex Harui
...@yahoogroups.com] On Behalf Of claudiu ursica Sent: Monday, January 19, 2009 12:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag And Drop Tree Hi Alex, I can move simple leafs from the root under a folder with no custom handlers, if the folder is open. However the thing is that I

Re: [flexcoders] Drag And Drop Tree

2009-01-19 Thread claudiu ursica
Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, January 19, 2009 11:01:07 PM Subject: RE: [flexcoders] Drag And Drop Tree If I remove your handlers, I can move Sent just fine. In your handler the following line is suspicious: var xml : XML = new

RE: [flexcoders] Drag And Drop Tree

2009-01-18 Thread Alex Harui
Setting breakpoints in drag/drop generally doesn't work because you tend to release the mouse in order to dig through the debugging info and when you resume the drag is cancelled. Remove the custom drag event handlers and try with simple data and see if it works. We definitely tested

RE: [flexcoders] Drag an Drop on images

2009-01-16 Thread Tracy Spratt
Assuming you are not working with controls that support DnD by default, you use a mouse gesture to start the drag operation, ceate a Dragsource, add your data to it, then use DragManager.doDrag() to start the drag. The docs have good examples. Tracy Spratt Lariat Services Flex

Re: [flexcoders] Drag and Drop into a Popup Window

2008-12-09 Thread Reto M. Kiefer
Hello Alex, thanks for your answer! it was my fault. I didn't specified the proper event handlers in the drop target. It's working quite fine now. Sorry for the disturbance.. Cheers Reto 2008/12/8 Alex Harui [EMAIL PROTECTED]: What didn't work? Post a mini-example. From:

RE: [flexcoders] Drag and Drop into a Popup Window

2008-12-08 Thread Alex Harui
What didn't work? Post a mini-example. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Reto M. Kiefer Sent: Monday, December 08, 2008 1:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop into a Popup Window Dear all, I want to drag and drop data

RE: [flexcoders] Drag and drop module

2008-11-10 Thread Alex Harui
http://blogs.adobe.com/aharui/2007/08/popup_dialogs_as_modules.html From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudiu Ursica Sent: Monday, November 10, 2008 5:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and drop module Hi, I have a module who

Re: [flexcoders] drag and drop from Tree to List

2008-11-10 Thread anuj sharma
Hi I am not sure I get that but in general if you drag and drop from lets' say 'A' to B' ,I have used to drag and drop both ways from one list to another and I did is as follows A.dragMoveEnabled=true; A.dragEnabled=true; A.dropEnabled=true; B.dragMoveEnabled=true; B.dragEnabled=true;

RE: [flexcoders] drag and drop from Tree to List

2008-11-10 Thread Tracy Spratt
Because the dataProviders are presumably dissimilar, with the tree being hierarchical and the list being linear, you will not be able to depend on the built-in functionality, but will need to override the drag handler functions, and update the dataProviders yourself. Tracy

Re: [flexcoders] Drag and Drop question

2008-09-16 Thread Pan Troglodytes
I believe you're going to need to handle the drop events yourself and not use the dropEnabled=true setting. When you do that, by default drop is denied and you have to tell it to allow it, like in the dragEnter event. For example: private function dragEnterHandler(e:DragEvent):void {

RE: [flexcoders] Drag and Drop question

2008-09-16 Thread Tracy Spratt
[mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Tuesday, September 16, 2008 11:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop question I believe you're going to need to handle the drop events yourself and not use the dropEnabled=true setting. When you

RE: [flexcoders] Drag and drop steals all mouse events

2008-07-24 Thread Kenneth Sutherland
J I had this issue a few days ago and spent a few hours trying lots of weird and wonderful ways of trying to figure out where the mouse was, then within 5 mins of posting to flexcoders (typical really) I remembered that I could just listen to the drag event (enter / over should do).

RE: [flexcoders] Drag and drop steals all mouse events

2008-07-24 Thread Mike Pearce
DragOver.. Have no idea how I missed it! Thanks Kenneth =)

RE: [flexcoders] Drag and drop from datagrid to tree

2008-07-16 Thread Alex Harui
You'll need custom code. Google or check the forum archives From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of joyfulrodger Sent: Wednesday, July 16, 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and drop from

RE: [flexcoders] Drag-n-Drop problem in DataGrid with custom ItemRenderer ...

2008-07-03 Thread Alex Harui
If the renderer is causing problem, you should probably show the renderer code. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muhammad Ariful Islam Sent: Thursday, July 03, 2008 1:37 AM To: flexcoders@yahoogroups.com Subject:

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-13 Thread nwebb
@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *nwebb *Sent:* Monday, May 12, 2008 7:04 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Drag and Drop (modify default dragProxy) Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-13 Thread nwebb
Thanks Daniel, trying that now I seem to be having some problems getting anything to show up in my DataGridDragProxy subclass but I'm sure I'll work out the issue soon enough. Much appreciated. On Mon, May 12, 2008 at 3:37 PM, Daniel Gold [EMAIL PROTECTED] wrote: I think if you wanted to

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Douglas Knudsen
perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] wrote: Hi, I'm drag/dropping items within a DataGrid. I would like to modify

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread nwebb
Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I capture the data on MouseDown and create/display a Label on MouseMove), but I thought it could be a little cleaner and so I was hoping I could access the current dragProxy, use the existing data within it, all

Re: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Daniel Gold
I think if you wanted to modify the default drag proxy you could subclass DataGrid and override the get dragImage function, which looks like this (in Flex 2.01) override protected function get dragImage():IUIComponent { var image:DataGridDragProxy = new DataGridDragProxy();

RE: [flexcoders] Drag and Drop with data grids

2008-05-12 Thread Tracy Spratt
Override the dragDrop handler. You can do whatever you want with the data in there. http://livedocs.adobe.com/flex/3/html/dragdrop_5.html Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beczim Sent: Monday, May 12, 2008 10:45

RE: [flexcoders] Drag and Drop (modify default dragProxy)

2008-05-12 Thread Alex Harui
. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nwebb Sent: Monday, May 12, 2008 7:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop (modify default dragProxy) Hi Douglas, thanks for the reply - yeah that's pretty much what I

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
I'm fairly certain that there's no voodoo to automatically delete nodes from your XML, you need to do that yourself in your drop handler. -J On Thu, May 1, 2008 at 4:36 PM, Rafael Faria [EMAIL PROTECTED] wrote: If i'm dragging an element from one tree to another. How do i get the updated

RE: [flexcoders] Drag and Drop question

2008-05-01 Thread Tracy Spratt
McDonald Sent: Thursday, May 01, 2008 2:46 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop question I'm fairly certain that there's no voodoo to automatically delete nodes from your XML, you need to do that yourself in your drop handler. -J On Thu, May 1, 2008 at 4:36 PM

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
this. Are the XML structures the same? Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Thursday, May 01, 2008 2:46 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Drag and Drop question I'm

RE: [flexcoders] Drag and Drop question

2008-05-01 Thread Tracy Spratt
@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop question How do you mark a drag/drop operation as having a certain type (ie Move)? -J On Fri, May 2, 2008 at 5:32 AM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Actually I am pretty sure the list-based component's built

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
-- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Thursday, May 01, 2008 5:05 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Drag and Drop question How do you mark a drag/drop operation as having a certain

RE: [flexcoders] drag and drop a button?

2008-04-12 Thread Rick Winscot
PROTECTED] Im Auftrag von Rick Winscot Gesendet: Samstag, 12. April 2008 03:05 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] drag and drop a button? Take a look at this sample - BitmapData is used to create a proxy on the fly of the object being dragged. http://www.quilix.com/node

RE: [flexcoders] drag and drop a button?

2008-04-11 Thread Rick Winscot
Take a look at this sample - BitmapData is used to create a proxy on the fly of the object being dragged. http://www.quilix.com/node/3 Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Friday, April 11, 2008 10:23 AM To:

Re: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.

2008-03-14 Thread Thibaud Van Vreckem
Thanks Alex, Actually,that's exactly the answer I was afraid off.. when looking at the said code, I have a feeling, -since I'm using custom itemrenderrer in my list- it might be simpler to dispatch mouse over events from there. Am I wrong ? On Fri, Mar 14, 2008 at 3:04 AM, Alex Harui [EMAIL

RE: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.

2008-03-14 Thread Alex Harui
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thibaud Van Vreckem Sent: Friday, March 14, 2008 2:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item. Thanks Alex, Actually,that's

RE: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.

2008-03-13 Thread Alex Harui
Sounds like you want calculateDropIndex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thibaud Van Vreckem Sent: Thursday, March 13, 2008 10:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] drag and drop between list -

RE: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.

2008-03-13 Thread Alex Harui
Tree has drop into folder code. Is that what you're looking for? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thibaud Van Vreckem Sent: Thursday, March 13, 2008 10:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] drag and

Re: [flexcoders] Drag and Drop to Nowhere

2008-02-21 Thread Josh McDonald
I'm pretty sure the x icon image is set as a style on the dragproxy, so you should be able to get away with just assigning a custom style name and setting up your trashcan icon in your css. -J On Fri, Feb 22, 2008 at 7:11 AM, Jim Cook [EMAIL PROTECTED] wrote: Can someone give me a pointer on

Re: [flexcoders] Drag n Drop Tile List to Canvas

2008-02-21 Thread Sherif Abdou
there is an example of that in flex Documentation - Original Message From: Swamy Nathan [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com Sent: Thursday, February 21, 2008 10:34:03 PM Subject: [flexcoders] Drag n Drop Tile List to Canvas Hi Folks, Can any one please

RE: [flexcoders] Drag and Drop issues

2008-02-20 Thread Alex Harui
Maybe you shouldn't register the canvas. Put another child in the canvas with alpha=0 that goes behind all the other children and register that. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Collins Sent: Wednesday, February 20,

RE: [flexcoders] Drag and drop into a datagrid Cell (rather than the default, row) ?

2008-02-14 Thread Alex Harui
Enable drop on a row might work. I might just try handling the drop and the showDropFeedback differently. Instead of the single line, you should be able to highlight a cell and then instead of an insert to the collection, change some data in a cell. From:

RE: [flexcoders] Drag and drop into a datagrid Cell (rather than the default, row) ?

2008-02-14 Thread Jim Hayes
@yahoogroups.com on behalf of Alex Harui Sent: Thu 14/02/2008 18:57 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Drag and drop into a datagrid Cell (rather than the default, row) ? Enable drop on a row might work. I might just try handling the drop and the showDropFeedback differently

RE: [flexcoders] Drag And Drop Question: List within list...

2007-12-17 Thread Alex Harui
Tree is buggy in Flex 2. If you can, get on the beta for Flex 3 and see if you still have problems there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boson Au Sent: Thursday, December 06, 2007 10:40 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Drag And Drop Question: List within list...

2007-12-17 Thread Alex Harui
:03 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Drag And Drop Question: List within list... Tree is buggy in Flex 2. If you can, get on the beta for Flex 3 and see if you still have problems there. From: flexcoders@yahoogroups.com [mailto

Re: [flexcoders] drag and drop images and remove the dragged image

2007-12-14 Thread Michael Wills
I believe if you make a handler for the dragComplete event on your horizontal tile list, you can listen for when the process is complete and then pull out the image that was dragged.

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Mirko Sabljić
Thank you very much for your help, i'll try that and let you know how did it go. best regards Daniel Freiman wrote: Use a bitmap of the target instead of the original target. /// var target:UIComponent = event.currentTarget as UIComponent;

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Mirko Sabljić
I followed your advice Dan and used this code: public function dragItSubs(event:MouseEvent):void{ // Get the drag initiator component from the event object. var dragInitiator:UIComponent = event.currentTarget as UIComponent; / var

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Daniel Freiman
Sorry, try BitmapAsset instead of Bitmap, which extends Bitmap and implements IFlexDisplayObject. If that doesn't work, I have code to draw the bitmap data onto a UIComponent. - Dan Freiman On Nov 12, 2007 7:13 AM, Mirko Sabljić [EMAIL PROTECTED] wrote: I followed your advice Dan and used

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Mirko Sabljić
Still doesn't work, would it be too much to ask you to post that code to draw bitmap data onto UIComponent? I tried to implment that idea with following code: public function dragItMain(event:MouseEvent):void{ // Get the drag initiator component

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Daniel Freiman
var target:UIComponent = event.curentTarget as UIComponent; var dragProxy:UIComponent = new UIComponent(); var w:Number = Math.round(target.width / target.scaleX); // will throw error if greater than 2880 var h:Number = Math.round(target.height / target.scaleY) // will throw error if greater than

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Mirko Sabljić
I just tried your code and i keep getting the same error: ArgumentError: Error #2015: Invalid BitmapData. at flash.display::BitmapData$iinit() so i am really confused now :-/ thank you very much for your time and help Daniel Freiman wrote: var target:UIComponent = event.curentTarget as

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Daniel Freiman
Are you trying to instantiate a bitmap that has a width or hight greater than 2880? - Dan Freiman On Nov 12, 2007 1:23 PM, Mirko Sabljić [EMAIL PROTECTED] wrote: I just tried your code and i keep getting the same error: ArgumentError: Error #2015: Invalid BitmapData. at

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Mirko Sabljić
Definitely not, width and height of the image is under 1000px so i guess that's not the problem? Daniel Freiman wrote: Are you trying to instantiate a bitmap that has a width or hight greater than 2880? - Dan Freiman On Nov 12, 2007 1:23 PM, Mirko Sabljić [EMAIL PROTECTED] wrote:

Re: [flexcoders] Drag and drop question

2007-11-12 Thread Daniel Freiman
Which line is is breaking on? What's the stack trace look like? - Dan Freiman On Nov 12, 2007 3:48 PM, Mirko Sabljić [EMAIL PROTECTED] wrote: Definitely not, width and height of the image is under 1000px so i guess that's not the problem? Daniel Freiman wrote: Are you trying to

Re: [flexcoders] Drag and drop question

2007-11-11 Thread Daniel Freiman
Use a bitmap of the target instead of the original target. /// var target:UIComponent = event.currentTarget as UIComponent; var dragProxy:Bitmap; var myBitmapData:BitmapData = new BitmapData(target.width, target.height); myBitmapData.draw(target); //

Re: [flexcoders] Drag and Drop Snap to Grid

2007-11-06 Thread Marvin Froeder
Anyone knows that? VELO On Jul 19, 2007 1:30 PM, andrewwestberg [EMAIL PROTECTED] wrote: Does anybody have an idea of how to do snap to grid during a drag operation? I have a canvas and I'm dragging some components around on it to change their location, but I'd like them to want to stick

RE: [flexcoders] Drag and drop

2007-10-22 Thread Alex Harui
Usually you have to call preventDefault() so the underlying component does not execute its default behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Monday, October 22, 2007 1:46 PM To: flexcoders@yahoogroups.com

RE: [flexcoders] drag and drop an image object, over a list object

2007-09-17 Thread Alex Harui
calculateDropIndex? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flashcrow2000 Sent: Monday, September 17, 2007 5:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] drag and drop an image object, over a list object Hello

RE: [flexcoders] Drag and drop for list items

2007-08-27 Thread Alex Harui
Maybe by making everything else a valid droptarget? Or do you want the no-drop feedback during mousemove? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flashcrow2000 Sent: Monday, August 27, 2007 6:21 AM To: flexcoders@yahoogroups.com

Re: [flexcoders] drag n drop file upload

2007-03-09 Thread Muzak
In a browser, nope. As a standalone, you'll need a wrapper, like MDM Zinc. http://www.multidmedia.com/software/zinc/ regards, Muzak - Original Message - From: Toby Tremayne [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, March 10, 2007 6:23 AM Subject: [flexcoders] drag

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-10 Thread Paolo Bernardini
are you using flex 2.0 or 2.0.1? I have an application using drag and drop and need to move the items within the TileList, it was working just fine in version 2.0, now since I updated to 2.0.1 it doesn't move the items anymore but instead makes a copy. Basically I want to order the Items of the

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-10 Thread Rachel Maxim
I'm using 2.0, I'm not in a huge hurry to upgrade right before I finish this project :) Thank you for offering help, I got it working by changing the TileList attribute dragMoveEnabled=true (I didn't realize this could be turned on when using custom drag and drop handling). On 1/10/07, Paolo

RE: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Tracy Spratt
Have you found the line of code that changes the functionality? If not, do that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rachel Maxim Sent: Tuesday, January 09, 2007 12:49 PM To: flexcoders@yahoogroups.com Subject:

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Rachel Maxim
I'm gonna keep working on it, but that is exactly what I am trying to find! Unfortunately this is pretty bare-bones as far as functionality goes, so if I remove just a couple lines then the entire drag and drop won't work :) I'll definitely post when I find the solution though! R On 1/9/07,

RE: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Tracy Spratt
: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move? I'm gonna keep working on it, but that is exactly what I am trying to find! Unfortunately this is pretty bare-bones as far as functionality goes, so if I remove just a couple lines then the entire drag and drop

RE: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Stephen Gilson
I did not run the code, but two things jump out at me. In your doDragEnter event, you have this: else { DragManager.NONE; } DragManager.NONE is a constant, and I'm not sure what you are trying to do. In

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Rachel Maxim
. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rachel Maxim *Sent:* Tuesday, January 09, 2007 1:23 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Rachel Maxim
Hi Stephen I'm not gonna argue with you since you work for Adobe :) I did figure out shortly after posting that the DragManager.NONE line wasn't doing anything (I just didn't want to allow drag and drop in that case). As far as calling ShowFeedback for every item dragged, I don't see another

RE: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Peter Watson
-and-drop. The default value is false. regards, peter From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rachel Maxim Sent: Tuesday, January 09, 2007 3:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop within

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Rachel Maxim
@yahoogroups.com *Subject:* Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move? Hi Stephen I'm not gonna argue with you since you work for Adobe :) I did figure out shortly after posting that the DragManager.NONE line wasn't doing anything (I just didn't want

Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?

2007-01-09 Thread Rachel Maxim
Hard to imagine but I had not actually tried running the sample code I was working from, assuming it worked how I wanted it to...anyway as it turns out the sample also COPIES and doesn't move, so whatever I am doing is working how it's supposed to, it's just not how I want. Let me approach this

RE: [flexcoders] Drag and Drop onto chart... locate axes?

2006-12-11 Thread Ely Greenfield
Hi Thunder. The 'computedGutters' property of the chart is the closest thing you want. It tells you the size of the gutters surrounding the data area of the chart, which is the area the axes occupy. Ely. From: flexcoders@yahoogroups.com

Re: [flexcoders] drag n drop manager

2006-12-05 Thread Lachlan Cotter
Hi Rajesh, When you say that the object is moved or disappears when you drop it on the application, is that because you haven't set up event handlers to receive the dropped data? There are at least two methods you could use to remove the drag operation. 1. Do a test in the method that

RE: [flexcoders] Drag and drop

2006-11-30 Thread Thomas W. Gonzalez
The button is not being deleted, but being moved from your source component's display list to the destination components display list. The DragManager has a reference to the DragSource, not a COPY of it. In order to do what you are implying you would need to create a NEW button at the

Re: [flexcoders] Drag and Drop from HTML to Flex

2006-10-27 Thread Igor Costa
Without any code it's impossible to figure out your problem.RegardsOn 10/6/06, khelonium [EMAIL PROTECTED] wrote: Hi, I am trying to drag and drop items from a html page to a flex application. When I release the dragged object I send a command via the external

RE: [flexcoders] Drag and Drop tutorials/Samples of mixed types of dragging

2006-10-17 Thread Hua Wei
John, here are a few examples that might be helpful. Adding drag-and-drop supporthttp://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/ Adding Drag-and-Drop Drop Deny to DataGridhttp://thanksmister.com/?p=21 Simple Flex 2.0 Drag

Re: [flexcoders] Drag and Drop tutorials/Samples of mixed types of dragging

2006-10-17 Thread John Grden
awesome thanks for the links everyone, I'll do some homework and let you know how it pans outThanks very much!\m/On 10/17/06, Hua Wei [EMAIL PROTECTED] wrote: John, here are a few examples that might be helpful. Adding drag-and-drop support

Re: [flexcoders] Drag n Drop between 2 Datagrids

2006-10-03 Thread Igor Costa
Yeah man it's simple wayhere you could also do.just create two datagrids than, using the property in the first one, dragEnabled=true and in the second one you could do, dropEnabled=trueThan worked. here a short example?xml version=1.0 encoding=utf-8?mx:Application

RE: [flexcoders] Drag and Drop from a List to a LineChart

2006-09-27 Thread Ely Greenfield
If I'm reading it correctly, with #1 you just need a label function on your list. That allows you to customize the string that is shown to represent the data. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jnewportSent: Tuesday, September 26, 2006 12:47

Re: [flexcoders] Drag and drop DataGrid to Tree

2006-05-07 Thread jeremy lu
search this list for keywords like datagrid and treehad been discussed in detail before.On 5/6/06, Franca Daniel [EMAIL PROTECTED] wrote:Hey you all,i am trying build a application where i need drag a item from DataGrid to drop in a Tree. Anyone have aidea how to do that ? Please help me

Re: [flexcoders] drag and drop components between cells in a datagrid

2006-04-13 Thread jeremy lu
sounds feasible, have you tried (using DragManager ) ? if you can't figure it out I would love to give it a go. On 4/14/06, pk_wasp [EMAIL PROTECTED] wrote: Is it possible to have a DataGrid with custom item renderer componentsand drag/drop them between the indvidual cells using

Re: [flexcoders] Drag and Drop in Tree Componet

2006-01-19 Thread Danger
Good Luck~ http://www.sephiroth.it/file_detail.php?id=133 On 1/19/06, kjlinboomer [EMAIL PROTECTED] wrote: Hi all, I am developing a tree component with drag and drop dunctionality within itself (ie -- if a drag a leaf from one branch to another). Can somebody point me in the right

RE: [flexcoders] Drag and Drop in Tree Componet

2006-01-19 Thread Tracy Spratt
Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danger Sent: Thursday, January 19, 2006 2:40 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop in Tree Componet Good Luck~ http://www.sephiroth.it/file_detail.php?id=133 On 1/19/06, kjlinboomer

RE: [flexcoders] Drag 'n' drop multiple items at one time

2005-11-29 Thread Philippe Maegerman
The drag and drop example in Flex samples explorer allows you to drag several rows from a datagrid to another, you might find what you want in there http://flexapps.macromedia.com/flex15/explorer/explorer.mxml?versionChecked=true Quick tour drag and drop From:

RE: [flexcoders] Drag and drop among components

2005-09-06 Thread Abdul Qabiz
Hi, I have not used DragManager much, so can't help how to do this with DragManager. But I can show you, how can you achieve the same with your own logic: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=initApp() mx:Script

  1   2   >