[flexcoders] Drag-drop 'tear-off' for containers?

2009-12-07 Thread flexnewbie999
Hi,
Excuse if this was previously posted. It seems the original post was not 
registered or something. 

I'm trying to use drag-drop to 'tear' a 'page' off of the screen with the mouse 
so a default 'page' is visible underneath. I'd also like the 'pages' visible 
via a link. The problem I'm having is that the drop target is always visible 
after an item has been dropped into it. I'd like for the selected item to no 
longer be current or visible after it's been dropped nor the drop target. 

I'm probably missing something obvious since I'm new to Flex. Any help would be 
greatly appreciated!





[flexcoders] Drag Drop Panel placement

2009-06-22 Thread suba_be
Hi ,

We have the folowing requirement:

There are two canvas containers within a HDividedBox and a drag drop panel in 
the application. On moving the divider of the Hdividedbox, the drag drop panel 
should align itself to the second canvas dynamically.

We tried to get the container's x,y value on divider release handler, but the 
previous x,y values are obtanied not the current values.


The following is the layout

Application
HDividedBox
Canvas id=c1/
Canvas id=c2/
/HDividedBox
DragDropPanel/
/Application

On resizing the divider, DragDropPanel should be placed in x,y of Canvas c2


Any help on this will be appreciated.


Thanks in advance,
Suba




[flexcoders] Drag Drop - maually show red cross or green plus icon

2009-06-09 Thread bhaq1972
During a dragOver event I want to manually show the green plus or red cross 
icon on the dragProxy image. How do I do that?

thanks



Re: [flexcoders] Drag Drop - maually show red cross or green plus icon

2009-06-09 Thread Adrian Williams

Hi there...

   You need to take a look at this:

   DragManager.showFeedback(DragManager.MOVE);

hth
adrian

bhaq1972 wrote:



During a dragOver event I want to manually show the green plus or red 
cross icon on the dragProxy image. How do I do that?


thanks




[flexcoders] drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Mic
Will Flex recognize a drop onto a node? The visual position bar when moving the 
drop up and down the destination tree displays between nodes. When we first add 
a mgr to the HR tree, that mgr is a leaf. Want to trap a drop directly onto the 
mgr so can turn him/her into a branch and add people reporting to him/her. 
Cannot drop beneath as that would be a legal peer. TIA,

Mic.



RE: [flexcoders] drag drop tree to tree onto node, not between nodes

2009-05-10 Thread Tracy Spratt
I hope someone has a solution for this, I do not.  The tree drop feedback
lines will show above or below a child node, and will get longer to indicate
a drop point at the level above those, but I have found no way to drop a
first child node onto an empty node.

 

Now, I have not researched this in the last year, so maybe someone will have
a fix.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mic
Sent: Sunday, May 10, 2009 2:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag drop tree to tree onto node, not between nodes

 






Will Flex recognize a drop onto a node? The visual position bar when moving
the drop up and down the destination tree displays between nodes. When we
first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
directly onto the mgr so can turn him/her into a branch and add people
reporting to him/her. Cannot drop beneath as that would be a legal peer.
TIA,

Mic.





[flexcoders] Drag Drop controls query

2009-02-10 Thread abhishekchess1
hello frnds,
I'm going to create a mockup creater in air,
in that i'm showing many controls(button,text,etc)  to users and allow
him to drag drop  it in main canvas, and allow him to resize and edit
title or text.
same like this url
http://balsamiq.com/products/mockups

Could u guide me how can be done it.
thx you,
abhishekche...@gmail.com
:) 



Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-22 Thread SAAGAR SHETTY
Hi Prashant,

You can try using mouseUp event instead of click event.
But you will also have to write some extra logic to check if the drag is being 
performed.
You may set some boolean variable on drag and check it on mouseUp event handler.
If it is set then do not do anything.

Hope this helps

Thanks,
Saagar Shetty.





- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 2:15:02 PM
Subject: Re: [flexcoders] drag drop invokes click handler of dragged compoent


I don't understand your question. How can you start dragging without clicking?
Please make it very clear what you want... If possible give an example..
 Thanks,

with Regards,
Jitendra Jain



 From: prashant194 prashant194@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 21 October, 2008 1:57:53 PM
Subject: [flexcoders] drag drop invokes click handler of dragged compoent


Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.



 Check out the all-new face of Yahoo! India. Click here. 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-22 Thread Mark Carter

The DragManager has a useful method to save you the trouble: isDragging(), I
think.

I needed to do something like this just yesterday...

I have a list or words in one list and then the synonyms for the selected
word in another. I want to be able to drag a word from the first list to the
second list (saying This word is also a synonym etc).

However, when you try to drag the word, the selection changes and so the 2nd
list updates with the synonyms of the second word!

All I did was to use DragManager.isDragging() to prevent updating of the 2nd
list when dragging. Then when dragging finished (dragComplete), set the
selected item of the first list back to its pre-drag state.


SAAGAR SHETTY wrote:
 
 You can try using mouseUp event instead of click event.
 But you will also have to write some extra logic to check if the drag is
 being performed.
 You may set some boolean variable on drag and check it on mouseUp event
 handler.
 If it is set then do not do anything.
 

-- 
View this message in context: 
http://www.nabble.com/drag-drop-invokes-click-handler-of-dragged-compoent-tp20085668p20112727.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] drag drop invokes click handler of dragged compoent

2008-10-21 Thread prashant194
Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.



Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-21 Thread jitendra jain
I don't understand your question. How can you start dragging without clicking?
Please make it very clear what you want... If possible give an example..
 Thanks,

with Regards,
Jitendra Jain



From: prashant194 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 1:57:53 PM
Subject: [flexcoders] drag drop invokes click handler of dragged compoent


Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.

 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[flexcoders] Drag Drop functionality in Flex/AS3

2007-06-01 Thread zzberthod
I would like to do drag and drop on panels. To do this, I'm using a
Canvas containing 3 panels like this:
-|
||
|  PANEL 1   |
||
-
-
||
||
|  PANEL 2   |
||
||
-
-
||
||
|  PANEL 3   |
||
||
||
-

The 3 panels are vertical align manually.
Using panels on a Canvas, the panels move correctly. I would like that
when we drag a panel, it can't be drop to another.
Thus, we would be able to exchange panel's position without superimposing.

Notice 1: The 3 panels can have a different height
Notice 2: The top would be to be able add more than 3 panels

Have you got an idea how to do this?
Thanks for your help.




[flexcoders] Drag Drop functionality in Flex/AS3

2007-05-30 Thread zzberthod
Hello,

I try to add Drag Drop functionality on my Flex application.
But I don't know what to do?

Do you know a core function that I can use in Flex/AS3?

Thanks.




[flexcoders] Drag/Drop on PlotChart

2007-03-30 Thread carl_steinhilber
I'm revisiting this PlotChart project after a brief hiatus. Thanks to
Igor's comments and his pointers to Ely's examples, I was able to get
the chartitem selection working.

Now I have a seemingly larger task and I'm not sure where to start.

To recap, I have a PlotChart and a datagrid both bound to the same
datarenderer. Updating the data in the datagrid cells adjusts the
locations of the chartitems on the PlotChart. Selecting a row in the
datagrid highlights the row and selects the corresponding chartitem,
and clicking on a chartitem highlights the chartitem and selects the
corresponding row in the datagrid.

But now I'd like to be able to drag the chartitems directly, and have
any changes in location update the value(s) in the datagrid.
The things that are tripping me up are:

1) I've done some drag/drop functionality in other Flex apps before,
but always from one container to another. This is pretty much just
dragging within the same container (the chart). So I'm not even sure
if it requires the DragManager or not. Maybe it's just using a
MouseMove event to update the location??

2) It's a rather course chart... the y-axis, for example, is just 0 to
10 with pretty wide increments. I'd like to snap the dragging object
to the grid, but there doesn't appear to be any way to determine
what/where the grid is as a property of the chart. Is there a way?

3) And on DragComplete (if it does, indeed, utilize the DragManager),
I need to be able to determine the new coordinates to be able to
update the datagrid. Obviously if I can get #2 solved, seems like this
should fall into place since I'll know the chartitem position already.

Anybody have any comments and/or pointers on any of this? I Googled
all morning and I'm not finding much.

Thanks in advance!
-Carl



RE: [flexcoders] Drag Drop Question

2007-03-07 Thread Kumar
Try using some different container like HBox or VBox it will automatically
arrange the dropped component x and y you just need to set the height and
width.

 

Thanks,

Kumar

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Wednesday, March 07, 2007 2:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag Drop Question

 

I'm using a Canvas as a Drag/Drop target for multiple items. 

I drop the first item, from a List, between (0,0) and (50,100). My 
logic moves the item to (0,0) and sets width=100 and height=50. Now, I 
drop another item between (0,0) and (50,100), with the same width and a 
height=300. However, there are now two items that are overlapping.

I need these items to be side-by-side, both with a width=50, instead of 
100 and overlapping. So the question is, how do I identify the overlap 
and adjust for it.

What if I drop a 3rd, 4th, or 5th item? I need the width to adjust 
accordingly so everything equally shares the available width.

 



RE: [flexcoders] Drag Drop Compiler Bug/Problem

2007-03-06 Thread Stephen Gilson
One thought is that the doc specifies to use a container as a drop
target, you must use the backgroundColor property of the container to
set a color. Otherwise, the background color of the container is
transparent, and the Drag and Drop Manager is unable to detect that the
mouse pointer is on a possible drop target. 
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of richmcgillicuddy
Sent: Saturday, March 03, 2007 11:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag Drop Compiler Bug/Problem



I have a very (very) simple demo program that is listed below. I was
having trouble dropping a tilelist item onto a canvas. I was able to
get the drop to work only if I set the toolTip of the canvas. This
seems very odd, like the canvas was not initialized yet. The drag
operation starts OK enough but I get the cannot drop marker when I try
to drop on the canvas, UNLESS I set the tooltip to something. Any ideas?

Rich

--

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=onInit()
mx:Script
![CDATA[
import mx.utils.ObjectProxy;
import mx.collections.ArrayCollection;
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.*;

var anArrayCollection : ArrayCollection = new ArrayCollection();
private function onInit() : void {

var thisItem : ObjectProxy = new ObjectProxy();
thisItem.title = Item 1;
anArrayCollection.addItem(thisItem);
thisItem = new ObjectProxy();
thisItem.title = Item 2;
anArrayCollection.addItem(thisItem);
tlTest.dataProvider = anArrayCollection;

cvsDropTarget.addEventListener(DragEvent.DRAG_ENTER,
onSpaceDragEnter);
cvsDropTarget.addEventListener(DragEvent.DRAG_DROP,
onSpaceDragDrop); 


}

private function onSpaceDragEnter(event : DragEvent) : void {
var dropTarget: Canvas = Canvas(event.currentTarget);

// Accept the drag only if the user is dragging data 
// identified by the 'color' format value.
if (event.dragSource != null) { 
DragManager.acceptDragDrop(dropTarget);
} 
}

private function onSpaceDragDrop(event : DragEvent) : void {
var thisItem : SimpleThumbnail = new SimpleThumbnail();
thisItem.lblName.text = Test;
thisItem.x = event.localX;
thisItem.y = event.localY;
thisItem.width = 200;
thisItem.height = 200; 
cvsDropTarget.addChild(thisItem);

}

]]
/mx:Script
mx:Canvas id=cvsDropTarget x=0 y=0 width=100% height=100%
toolTip= /
mx:TileList id=tlTest x=0 y=0 width=140 height=100%
itemRenderer=SimpleThumbnail dragEnabled=true
allowMultipleSelection=false /

/mx:Application

---
// Simple Thumbnail

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=120
height=120 
verticalAlign=middle cornerRadius=10 borderStyle=solid
backgroundColor=#c0c0c0
mx:Label text={data.title} id=lblName fontSize=28
textAlign=center width=100%/

/mx:HBox



 


[flexcoders] Drag Drop Question

2007-03-06 Thread jmfillman
I'm using a Canvas as a Drag/Drop target for multiple items. 

I drop the first item, from a List, between (0,0) and (50,100). My 
logic moves the item to (0,0) and sets width=100 and height=50. Now, I 
drop another item between (0,0) and (50,100), with the same width and a 
height=300. However, there are now two items that are overlapping.

I need these items to be side-by-side, both with a width=50, instead of 
100 and overlapping. So the question is, how do I identify the overlap 
and adjust for it.

What if I drop a 3rd, 4th, or 5th item? I need the width to adjust 
accordingly so everything equally shares the available width.



[flexcoders] Drag Drop Compiler Bug/Problem

2007-03-03 Thread richmcgillicuddy
I have a very (very) simple demo program that is listed below. I was
having trouble dropping a tilelist item onto a canvas. I was able to
get the drop to work only if I set the toolTip of the canvas. This
seems very odd, like the canvas was not initialized yet. The drag
operation starts OK enough but I get the cannot drop marker when I try
to drop on the canvas, UNLESS I set the tooltip to something. Any ideas?


Rich


--







?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=onInit()
mx:Script
![CDATA[
import mx.utils.ObjectProxy;
import mx.collections.ArrayCollection;
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.*;

var anArrayCollection : ArrayCollection = new 
ArrayCollection();
private function onInit() : void {

var thisItem : ObjectProxy = new ObjectProxy();
thisItem.title = Item 1;
anArrayCollection.addItem(thisItem);
thisItem = new ObjectProxy();
thisItem.title = Item 2;
anArrayCollection.addItem(thisItem);
tlTest.dataProvider = anArrayCollection;


cvsDropTarget.addEventListener(DragEvent.DRAG_ENTER,
onSpaceDragEnter);
cvsDropTarget.addEventListener(DragEvent.DRAG_DROP,
onSpaceDragDrop);   


}

private function onSpaceDragEnter(event : DragEvent) : void {
 var dropTarget: Canvas = Canvas(event.currentTarget);

// Accept the drag only if the user is dragging data 
// identified by the 'color' format value.
if (event.dragSource != null) {  
DragManager.acceptDragDrop(dropTarget);
}   
}

private function onSpaceDragDrop(event : DragEvent) : void {
var thisItem : SimpleThumbnail =  new SimpleThumbnail();
thisItem.lblName.text = Test;
thisItem.x = event.localX;
thisItem.y = event.localY;
thisItem.width  = 200;
thisItem.height = 200;  
cvsDropTarget.addChild(thisItem);

}

]]
/mx:Script
mx:Canvas id=cvsDropTarget  x=0 y=0 width=100% height=100%
toolTip= /
mx:TileList id=tlTest x=0 y=0 width=140 height=100%
itemRenderer=SimpleThumbnail dragEnabled=true
allowMultipleSelection=false /

/mx:Application



---
// Simple Thumbnail

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=120
height=120  
 verticalAlign=middle cornerRadius=10 borderStyle=solid
backgroundColor=#c0c0c0
mx:Label text={data.title} id=lblName fontSize=28
textAlign=center width=100%/

/mx:HBox



Re: [flexcoders] Drag Drop Question

2007-02-23 Thread Jae Pak
jmfillman,

You just need to add event listeners to your button before adding it to your 
dropBox Canvas.  

See below.

Cheers.

- Jae 


private function dragDropHandler( event:DragEvent) :void {

{
...
buttonA.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
buttonA.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
buttonA.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
dropBox.addChild( buttonA);
...
} 

// Note this is needed for smoothing drag.  Highly necessary in my 
opinion. 
private function mouseMove(event:MouseEvent):void 
{
event.updateAfterEvent();
}  

private function mouseDown(event:MouseEvent):void 
{
if (event.target is Button)
{
event.target.startDrag();
}

}

private function mouseUp(event:MouseEvent):void
{
if (event.target is Button)
{
event.target.stopDrag();
}
}


- Original Message 
From: jmfillman [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 22, 2007 11:57:04 PM
Subject: [flexcoders] Drag  Drop Question









  



See code below. After you drag an item from the list and drop it 
into 

the Canvas, how you do then drag the item you just dropped, have it 

run the dragDropHandler function, and then move the original item?



?xml version=1.0 ?

mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml 

layout=absolute width=500 height=620 borderStyle= solid 

creationComplete= initApp( );



mx:Script

![CDATA[

import mx.controls. Button;

import mx.controls. Alert;

import mx.events.DragEvent ;

import mx.controls. List;

import mx.managers. DragManager;

import mx.core.DragSource;



private function initApp():void {

var dp:Array = ([

{label:First , data:25},

{label:Second , data:50},

{label:Third , data:75},

{label:Fourth , data:100},

]);

listOne.dataProvide r = dp;

}



private function dragEnterHandler( event:DragEvent) :void {

var dropTarget:Canvas= event.currentTar get as Canvas;

dropTarget.setStyle (borderThicknes s, 5);

DragManager. acceptDragDrop( dropTarget) ;

}



private function dragExitHandler( event:DragEvent) :void {

var dropTarget:Canvas= event.currentTar get as Canvas;

revertBoxBorder( );

}



private function dragDropHandler( event:DragEvent) :void {

var dropTarget:Canvas= event.currentTar get as Canvas;

var buttonA:Button = new Button;

buttonA.label = 

listOne.selectedIte m.label;

if (dropTarget. mouseY.valueOf( ) = 0 

 dropTarget.mouseY. valueOf()  100) {

buttonA.y = 0;

buttonA.y = 0;

}

if (dropTarget. mouseY.valueOf( ) = 

100  dropTarget.mouseY. valueOf()  200) {

buttonA.x = 00;

buttonA.y = 100;



}   



dropBox.addChild( buttonA);

revertBoxBorder( );

}

   

private function revertBoxBorder( ):void {

dropBox.setStyle( borderThickness , 

1);

}

]]

/mx:Script

mx:List id=listOne dragEnabled= true 

dropEnabled= true x=10 y=10/mx: List

mx:Canvas x=180 y=10 width=308 height=498 

borderStyle= solid borderColor= #00 backgroundColor= #FF 

dragEnter=dragEnte rHandler( event); 

id=dropBox dragExit=dragExitH andler(event) ;

dragDrop=dragDropH andler(event) ;   

/mx:Canvas

/mx:Application






  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg

[flexcoders] Drag Drop Question

2007-02-22 Thread jmfillman
See code below. After you drag an item from the list and drop it into 
the Canvas, how you do then drag the item you just dropped, have it 
run the dragDropHandler function, and then move the original item?

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute width=500 height=620 borderStyle=solid 
creationComplete=initApp();

mx:Script
![CDATA[
import mx.controls.Button;
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.controls.List;
import mx.managers.DragManager;
import mx.core.DragSource;

private function initApp():void {
var dp:Array = ([
{label:First, data:25},
{label:Second, data:50},
{label:Third, data:75},
{label:Fourth, data:100},
]);
listOne.dataProvider = dp;
}

private function dragEnterHandler(event:DragEvent):void {
var dropTarget:Canvas=event.currentTarget as Canvas;
dropTarget.setStyle(borderThickness, 5);
DragManager.acceptDragDrop(dropTarget);
}

private function dragExitHandler(event:DragEvent):void {
var dropTarget:Canvas=event.currentTarget as Canvas;
revertBoxBorder();
}

private function dragDropHandler(event:DragEvent):void {
var dropTarget:Canvas=event.currentTarget as Canvas;
var buttonA:Button = new Button;
buttonA.label = 
listOne.selectedItem.label;
if (dropTarget.mouseY.valueOf() = 0 
 dropTarget.mouseY.valueOf()  100) {
buttonA.y = 0;
buttonA.y = 0;
}
if (dropTarget.mouseY.valueOf() = 
100  dropTarget.mouseY.valueOf()  200) {
buttonA.x = 00;
buttonA.y = 100;

}   

dropBox.addChild(buttonA);
revertBoxBorder();
}
   
private function revertBoxBorder():void {
dropBox.setStyle(borderThickness, 
1);
}
]]
/mx:Script
mx:List id=listOne dragEnabled=true 
dropEnabled=true x=10 y=10/mx:List
mx:Canvas x=180 y=10 width=308 height=498 
borderStyle=solid borderColor=#00 backgroundColor=#FF 
dragEnter=dragEnterHandler(event); 
id=dropBox dragExit=dragExitHandler(event);
dragDrop=dragDropHandler(event); 
/mx:Canvas
/mx:Application




[flexcoders] Drag Drop outside of a target

2007-02-21 Thread Nate Pearson
What is the event that is triggered when I drop something outside of a
drop target?  I thought i could use dragExit() but that just shows
when you leave the area.  DragDrop() doesn't seem to get triggered
when you actually do the drop outside of the droppable area.

What i'm trying to do is let people click and drag items out side of a
custom list and have it delete from that list's data provider.

Thanks in advance,

Nate




Re: [flexcoders] Drag Drop outside of a target

2007-02-21 Thread Douglas Knudsen

DragEnter event perhaps?  This fires when something is dragged over it.  In
your handler for this you can determine if its droppable or not among other
things.

DK

On 2/21/07, Nate Pearson [EMAIL PROTECTED] wrote:


What is the event that is triggered when I drop something outside of a
drop target?  I thought i could use dragExit() but that just shows
when you leave the area.  DragDrop() doesn't seem to get triggered
when you actually do the drop outside of the droppable area.

What i'm trying to do is let people click and drag items out side of a
custom list and have it delete from that list's data provider.

Thanks in advance,

Nate




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Drag Drop outside of a target

2007-02-21 Thread Paul J DeCoursey
I think what you need to look at is the dragComplete event.  This will 
fire everytime a drag has completed.  So you will have to do some 
checking to see if what the target is.

Nate Pearson wrote:
 What is the event that is triggered when I drop something outside of a
 drop target? I thought i could use dragExit() but that just shows
 when you leave the area. DragDrop() doesn't seem to get triggered
 when you actually do the drop outside of the droppable area.

 What i'm trying to do is let people click and drag items out side of a
 custom list and have it delete from that list's data provider.

 Thanks in advance,

 Nate



Re: [flexcoders] drag/drop question

2007-02-18 Thread Andrey

I have tried both with array collection AND an xmllist... either way, it
seems that the changes are only showing up the next time somebody touches
it. :(


On 1/22/07, James T. Riffe [EMAIL PROTECTED] wrote:


   Are you using a ArrayCollection as a dataprovider?



James



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *darvon4u
*Sent:* Monday, February 05, 2007 9:43 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] drag/drop question



We're trying to re-rank the collection for datagrid after the user
re-orders the items with drag/drop.

here is an example. before:

1 a
2 b
3 c

now, supposedly we drag item 1 to the last place. we want to rerank it
so the first column still shows the order (line #), while the
collection has been changed.

after:

1 b
2 c
3 a

we have tried everything to get it to work. it just doesn't sort
properly. what i need to do is renumber AFTER EVERYTHING (all the
drag/drop events have been triggered). tried to do this in
dragcomplete or dragdrop handlers, to no avail.

Does anybody have any ideas? spent like 3 days on this, any help would
be truly appreciated!

Thanks,
-A

  



[flexcoders] drag/drop question

2007-02-05 Thread darvon4u
We're trying to re-rank the collection for datagrid after the user
re-orders the items with drag/drop.

here is an example. before:

1 a
2 b
3 c

now, supposedly we drag item 1 to the last place. we want to rerank it
so the first column still shows the order (line #), while the
collection has been changed.

after:

1 b
2 c
3 a

we have tried everything to get it to work. it just doesn't sort
properly. what i need to do is renumber AFTER EVERYTHING (all the
drag/drop events have been triggered). tried to do this in
dragcomplete or dragdrop handlers, to no avail.

Does anybody have any ideas? spent like 3 days on this, any help would
be truly appreciated!

Thanks,
-A




RE: [flexcoders] drag/drop question

2007-02-05 Thread James T. Riffe
Are you using a ArrayCollection as a dataprovider?

 

James

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darvon4u
Sent: Monday, February 05, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag/drop question

 

We're trying to re-rank the collection for datagrid after the user
re-orders the items with drag/drop.

here is an example. before:

1 a
2 b
3 c

now, supposedly we drag item 1 to the last place. we want to rerank it
so the first column still shows the order (line #), while the
collection has been changed.

after:

1 b
2 c
3 a

we have tried everything to get it to work. it just doesn't sort
properly. what i need to do is renumber AFTER EVERYTHING (all the
drag/drop events have been triggered). tried to do this in
dragcomplete or dragdrop handlers, to no avail.

Does anybody have any ideas? spent like 3 days on this, any help would
be truly appreciated!

Thanks,
-A

 



Re: [flexcoders] Drag/Drop - Datagrid. Target is off?

2006-12-01 Thread Igor Costa

Kenny in the target just enable the DropEnable=true

On 11/30/06, lostinrecursion [EMAIL PROTECTED] wrote:


  Hi all,

I have a little app I built with some drag/drop functionality that I
coded in. I am not using the default and writing my own handlers.
Everything is working, meaning all the data gets added, etc.

But, this is just more of annoyance really, I cannot get the DataGrid
to accept the drop at the top row. Meaning the user has to go below the
first or second row before the drop indicators pop and they can.

Further investigation leads me to see that even the dragEnter event is
not firing.

I am using the default dragProxyImage. In fact, the only thing I really
changed was the dragDrop handler to accept a few additional values.

Any ideas?

Thanks
-Kenny

 





--

Igor Costa
www.igorcosta.com


[flexcoders] Drag/Drop resets Grid ItemRenderer

2006-11-08 Thread John C. Bland II



Ok...here's the scenario.

Grid 1 accepts drops from Grid 2. Grid1 has an inline item renderer which is a combo box. The combo is a custom component that filters an ArrayCollection based on an ID passed to it.

So...this works great. I have the grid saving data on drop, updating level (from the combo) on change, and deleting (on delete button click). Very usable...ACCEPT...when you drop another item from Grid 2 on Grid 1. :-( It jacks up the combo and forces all visible combos to have the same exact dataset (filtered to the last drop). :-( :-( :-( 


Mind you, this ONLY happens when I drag multiple. If I just drag one item, everything stays as it should.

What is the magic key I need to press in order to get the grid to not reset all combos when a new multi-item drop happens?

BTW, I've come back and worked on this email a couple times so ignore any inconsistencies...I'm tired. :-(-- John C. Bland IIChief GeekKatapult Media, Inc. - 
www.katapultmedia.com---Biz Blog - http://blogs.katapultmedia.com/jb2Personal Blog - 
http://blog.blandfamilyonline.com 
http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear ThemHome of FMUG.az - 
http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Drag/Drop within a viewstack goes a bit awry?

2006-10-19 Thread Matt Chotin












I believe it might have turned into a bug
that weve fixed internally. Not sure there was a workaround for it.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006
7:15 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Drag/Drop within a viewstack goes a bit awry?











I just
had a look at the flexcoders archive and this issue has been 
mentioned before by Dima Ulich, 
http://tech.groups.yahoo.com/group/flexcoders/message/44032.
Does anybody 
know if there is a workaround and whether it was raised as a bug? 

Kornelius Elstner 

[EMAIL PROTECTED]ups.com
wrote on 18/10/2006 14:11:01: 

 Thanks, the example has an area about 1cm in height but not the 
 complete width of the list which is not calling the event. 
 
 Its interesting you mention the application control bar, my main 
 app uses such a control bar where the problem is much more evident. 







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Drag/Drop within a viewstack goes a bit awry?

2006-10-18 Thread Steve Cox










Bit of a confusing one this. I have 2 simple lists
with the ability to drag/drop from one to the other. When these lists are in
standard components all is fine. The dragEnter event
is dispatched when you hover over any point of the other list. However when
this is in a viewstack I cannot drag a list item in
the first 1cm or so of the list  dragEnter is
not called until you drag about 1cm below the top of the list. This seem to be compounded the more layout components the
list is inside.



Ive some sample code below  simple stuff
which demonstrates the odd behaviour. Removing the viewstack
removes the small area at the top of the list which is not able to accept a
drag item. Have you seen anything like this?





?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml
layout=absolute creationComplete=created()

 mx:Script

 ![CDATA[

 import mx.collections.IList;

 import mx.events.DragEvent;

 import mx.collections.ArrayCollection;

 import mx.managers.DragManager;

 [Bindable] private var ac : ArrayCollection;

 

 private function created() : void

 {

 var ar :
Array = new Array(test,test2);

 ac = new ArrayCollection(ar);

 }

 private function doDragEnter(event:DragEvent):void 

 {

 var dragInitiator:List=List(event.currentTarget);

 DragManager.acceptDragDrop(dragInitiator); 

 }

 private function doDragDrop(event:DragEvent):void 

 { 



 var dropTarget:List=List(event.currentTarget);




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



 var dropLoc:int=dropTarget.calculateDropIndex(event); 



 for (var i:uint=0;
i  items.length; i++)


 {

 IList(dropTarget.dataProvider).addItemAt(items[i], dropLoc );

 }

 }

 ]]

 /mx:Script

 mx:ViewStack
width=100% height=100%

 mx:HBox width=100%
height=100%

 mx:List x=31
y=53 width=100 dataProvider={ac}
dragDrop=doDragDrop(event)
dragEnabled=true dragMoveEnabled=true
dragEnter=doDragEnter(event)/mx:List

 mx:List x=307
y=53 width=100 dataProvider={new
ArrayCollection()} dragDrop=doDragDrop(event) dragEnabled=true
dragMoveEnabled=true dragEnter=doDragEnter(event)/mx:List

 /mx:HBox

 /mx:ViewStack

/mx:Application



 


Steve Cox
Senior Online Application Developer
Quba New Media
www.quba.co.uk
t: 0114 279 7779
f: 0114 272 2854
e:[EMAIL PROTECTED]

The Maltings 81 Burton Road
Sheffield S3 8BX




Quba's e-mail disclaimer

The information contained in this email and any attachments
is intended only for the use of the individual to whom it is addressed and may
contain information that is privileged and confidential, the disclosure of
which is strictly prohibited by law.If you have received this e-mail in error,
please notify the sender immediately and delete this e-mail.

Any views expressed in this e-mail are those of the
individual sender. This email message and any attached files have been scanned
for the presence of computer viruses. However, you are advised that you open
any attachments at your own risk. We thank you for your co-operation.

Quba New Media Ltd
Registered in England  Wales No. 4038459
Registered Address: The Maltings, 81 Burton Road, Sheffield, South Yorkshire, S3 8BX






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





Re: [flexcoders] Drag/Drop within a viewstack goes a bit awry?

2006-10-18 Thread Kornelius . Elstner
Yes, I've seen something very similar when having the lists under a docked
application control bar as in:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal
mx:ApplicationControlBar width=100% dock=true
mx:Label text=Drag and drop test/
/mx:ApplicationControlBar
mx:HBox width=100% height=100%
mx:List dropEnabled=true width=50%/
mx:List dragEnabled=true width=50%
mx:dataProvider
mx:Stringitem1/mx:String
mx:Stringitem2/mx:String
/mx:dataProvider
/mx:List
/mx:HBox
/mx:Application

The drag target area is offset vertically by what looks like the height
of the docked applicationcontrolbar. I tried your example but it seems to
work fine...

Kornelius

flexcoders@yahoogroups.com wrote on 18/10/2006 09:53:53:

 Bit of a confusing one this. I have 2 simple lists with the ability
 to drag/drop from one to the other. When these lists are in standard
 components all is fine. The dragEnter event is dispatched when you
 hover over any point of the other list. However when this is in a
 viewstack I cannot drag a list item in the first 1cm or so of the
 list – dragEnter is not called until you drag about 1cm below the
 top of the list. This seem to be compounded the more layout
 components the list is inside.

 I’ve some sample code below – simple stuff which demonstrates the
 odd behaviour. Removing the viewstack removes the small area at the
 top of the list which is not able to accept a drag item. Have you
 seen anything like this?


 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=created()
 mx:Script
 ![CDATA[
 import mx.collections.IList;
 import mx.events.DragEvent;
 import
mx.collections.ArrayCollection;
 import mx.managers.DragManager;
 [Bindable] private var ac :
 ArrayCollection;

 private function created() : void
 {
 var ar : Array = new
 Array(test,test2);
 ac = new
ArrayCollection(ar);
 }
 private function
 doDragEnter(event:DragEvent):void
 {
 var dragInitiator:
 List=List(event.currentTarget);
 DragManager.
 acceptDragDrop(dragInitiator);
 }
 private function
 doDragDrop(event:DragEvent):void
 {

 var dropTarget:
 List=List(event.currentTarget);

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

 var dropLoc:
 int=dropTarget.calculateDropIndex(event);

 for (var i:uint=0; i
  items.length; i++)
 {

 IList(dropTarget.dataProvider).addItemAt(items[i], dropLoc );
 }
 }
 ]]
 /mx:Script
 mx:ViewStack width=100% height=100%
 mx:HBox width=100% height=100%
 mx:List x=31 y=53
 width=100 dataProvider={ac} dragDrop=doDragDrop(event)
 dragEnabled=true dragMoveEnabled=true
 dragEnter=doDragEnter(event)/mx:List
 mx:List x=307 y=53
 width=100 dataProvider={new ArrayCollection()}
 dragDrop=doDragDrop(event) dragEnabled=true
 dragMoveEnabled=true dragEnter=doDragEnter(event)/mx:List
 /mx:HBox
 /mx:ViewStack
 /mx:Application


 
 Steve Cox
 Senior Online Application Developer
 Quba New Media
 www.quba.co.uk
 t: 0114 279 7779
 f: 0114 272 2854
 e:[EMAIL PROTECTED]

 The Maltings 81 Burton Road
 Sheffield S3 8BX
 

 Quba's e-mail disclaimer
 The information contained in this email and any attachments is
 intended only for the use of the individual to whom it is addressed
 and may contain information that is privileged and confidential, the
 disclosure of which is strictly prohibited by law.If you have
 received this e-mail in error, please notify the sender immediately
 and delete this e-mail.
 Any views expressed in this e-mail are those of the individual
 sender. This email message and 

RE: [flexcoders] Drag/Drop within a viewstack goes a bit awry?

2006-10-18 Thread Kornelius . Elstner
I just had a look at the flexcoders archive and this issue has been
mentioned before by Dima Ulich,
http://tech.groups.yahoo.com/group/flexcoders/message/44032. Does anybody
know if there is a workaround and whether it was raised as a bug?

Kornelius Elstner

flexcoders@yahoogroups.com wrote on 18/10/2006 14:11:01:

 Thanks, the example has an area about 1cm in height but not the
 complete width of the list which is not calling the event.

 It’s interesting you mention the application control bar, my main
 app uses such a control bar where the problem is much more evident.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] [Drag Drop][Trees]

2006-10-03 Thread nikko_leborgne
Hello !

I have a problem with the drag and drop between two trees.
Indeed, to drag  drop in an only tree, there is no problem.
Moreover, I know to drag  drop between two trees, but I only know
move files or folders.
And, I would like COPY a file from a tree to another. What is the
solution ?

Thanks !





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Drag Drop Outside App

2006-09-13 Thread esb260
I am wondering if there is a way for me to somehow catch when a user drags a 
Flex object 
outside the main app window so that I can take the object they have dragged out 
and place it 
in another app that is not Flex. Javascript prehaps?





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Drag Drop / addChild question on containers

2006-08-20 Thread jgraham_us
I have the following setup 2 VBox's inside a Application, I have 
Panels in vBox1, I want to drag n drop those panels to vBox2.  

The only way I can see to do this across containers is to destroy the 
object and recreate it in the other container.  

I really would like to be able to do just addChild and removeChild 
between containers on the same instance of the Panel.  

Anyone know if this is doable without destroying and recreating the 
Panel on the drop?

Thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] drag-drop behaviors in Flex Builder 2

2006-07-25 Thread zerlot_ma777



Hi,
When I am using FB2, I think it will be better if I can do the following behaviors(especiallyina complex containers nested layout mxml page):
1. In outline window
2. click to select one container(or tag) name
3.drag and move it into another location in outline, then inthe source mode the corresponding code block which I selected in the outline window will be placed in the right location.(Now, the Flex Builder 2 just only jump to the specified tag and highlight it)
4.finish. I think if I can do above behaviors ,it's cool,aha? most improve my productivity.
Wish it could be realized by flex builder team in next updater...

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Drag Drop problem with browser scrolling

2006-07-18 Thread mmmmbeeeeer



Here's an interesting problem which I hope someone can help me with.I've just started playing with Flex 2 - release version and have implemented the following:1. Composite component containing a label and DataGrid in a Vboxmx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:vz="*" width="100%"mx:Script  ![CDATA[   import mx.collections.ArrayCollection;  [Bindable]   public var compTitle:String;  [Bindable]   public var compDataProvider:ArrayCollection;  ]] /mx:Scriptmx:Label text="{compTitle}" width="100%" fontSize="18" fontWeight="bold" fontFamily="Arial"/mx:DataGrid id="grid" dataProvider="{compDataProvider}" width="100%" alternatingItemColors="[#CBDDFE,#FF]" showHeaders="false"  dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" mx:columns  mx:DataGridColumn headerText="Client" dataField="CUSTOMER"/  mx:DataGridColumn headerText="Name" dataField="NAME"/ ... etc /mx:columns /mx:DataGrid/mx:VBox2. I have actionscript code in my application file which gets a list of categories from server side and iterates over that list requesting a list of objects (Jobs in this case) for each category from the server side. It then creates one of the above components for each category, adds it to the container (a Vbox) in the Application and gives it the dataProvider containing the relevant info.So far so good - this works fine...Now, when I drag a row from the DataGrid in one component to the DataGrid in another, it works fine when the browser is at the top of the page, however if I scroll the browser window down (the Flash Player canvas is bigger than the screen) the dropping gets screwed up. To be more precise, it appears as though the drop target is getting the dragEnter event when the mouse is not actually in the right place. As I scroll the browser window down, the apparent location of the drop target (as seen by the code sending the dragEnter event) is offset to the north of the visible drop Target component. The further down the browser window is scrolled, the more the offset until it just doesn't work at all.I've tested in both IE6 and Firefox 1.5.0.4 with the same results.I'm wondering whether anyone else has seen this behaviour - a search of the archives didn't seem to reveal any prior reports.Thanks for any help you might be able to offer.Cheers,P

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Drag Drop conundrum...

2006-04-22 Thread flexabledev



I've started to experiment with Drag  Drop and have run into a
problem I can't figure out. I have successfully written code that
allows me to Drag rows from a DataGrid (with a custom Drag Proxy) and
Drop the value of one of the columns into a List. The only thing I
don't understand is why when I do a Drag  Drop, I always get two
entries in the List for each of the rows that were dragged. If I drag
two rows with String values that get dropped (i.e. ONE, TWO), the
result in the List after the Drop looks like:

[object Object]
[object Object]
ONE
TWO

When I debug it, the value of items.length equals 2

which drives a For loop with
 IList(dropTarget.dataProvider).addItem(items[i].field);

As I step through the doDragDrop function in debug mode, it only
executes the loop twice, yet I end up with four entries in the List?

Any ideas? 

I can't figure it out, but it feels like there is some default
behaviour (dropping the items Object separate from my addItem)
occuring that I don't see when I step through it in debug mode?










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Drag Drop conundrum...

2006-04-22 Thread Paul Williams



Just a guess, but one possibility is that your list's default drop
behaviour is switched on, i.e. on the list control, dropEnabled=true.
This could cause the item to be added twice, once by your event handler
and once by the default drop behaviour.

Paul

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Saturday, April 22, 2006 9:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag  Drop conundrum...

I've started to experiment with Drag  Drop and have run into a
problem I can't figure out. I have successfully written code that
allows me to Drag rows from a DataGrid (with a custom Drag Proxy) and
Drop the value of one of the columns into a List. The only thing I
don't understand is why when I do a Drag  Drop, I always get two
entries in the List for each of the rows that were dragged. If I drag
two rows with String values that get dropped (i.e. ONE, TWO), the
result in the List after the Drop looks like:

[object Object]
[object Object]
ONE
TWO

When I debug it, the value of items.length equals 2

which drives a For loop with
 IList(dropTarget.dataProvider).addItem(items[i].field);

As I step through the doDragDrop function in debug mode, it only
executes the loop twice, yet I end up with four entries in the List?

Any ideas? 

I can't figure it out, but it feels like there is some default
behaviour (dropping the items Object separate from my addItem)
occuring that I don't see when I step through it in debug mode?






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-15 Thread dos dedos



I've seen many AJAX examples of drag and drop. Is drag and drop planned for Flex in the future (beyond 8.5) or is their some kind of fundamental reason not to have it? I have a feeling it can be done already but not it should be made easier. Drag and drop is a common feature of rich user interfaces.On the second point, I've been told on this list that the Flex-to-desktop interface is very tricky to implement. I have yet to see any documentaion/examples on how to do it. This aspect of Flex should be made simpler for developers who don't mind having their users install servers on the desktop.Matt Chotin [EMAIL PROTECTED] wrote: That's not something that Player 8.5 is going to support I think. There might be other tricks but the Player itself won't understand the drag and drop.  Matt 
 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Katz Sent: Monday, March 13, 2006 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag  drop *from* the user's file system into a Flex 2.0 app  I know the Flash player is limited in its ability interact with the user's file system. I'm wondering if a Flex 2.0 application (and the new Flash player) has the ability to enable a user to drag a file or folder *from the file system* onto a Flex app and have the app perform an action (such as reading meta data on the files, uploading them, etc.). Does anybody have any insight about this?  thanks, David  --  David Katz [EMAIL PROTECTED]   -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-15 Thread JesterXL





David
I know for a fact Zinc  mProjector allow you 
to drag and drop files to projectors (EXE's that wrap SWF's) so this could work 
for Flex 1.5 SWF's; only a matter of time till 2 is supported. This is not 
in a browser, however.

Dos
Flex 1.5 and Flex 2 both have built-in drag and 
drop functionality. They just cannot interact with the file system while 
running in a browser. So, anything you've seen with AJAX for drag and 
drop, you could probably do the same in Flex.


- Original Message - 
From: dos 
dedos 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, March 15, 2006 8:20 AM
Subject: RE: [flexcoders] Drag  drop *from* the user's file 
system into a Flex 2.0 app
I've seen many AJAX examples of drag and drop. Is drag 
and drop planned for Flex in the future (beyond 8.5) or is their some kind of 
fundamental reason not to have it? I have a feeling it can be done already but 
not it should be made easier. Drag and drop is a common feature of rich user 
interfaces.On the second point, I've been told on this list that the 
Flex-to-desktop interface is very tricky to implement. I have yet to see any 
documentaion/examples on how to do it. This aspect of Flex should be made 
simpler for developers who don't mind having their users install servers on the 
desktop.Matt Chotin [EMAIL PROTECTED] wrote:
That's 
  not something that Player 8.5 is going to support I think. 
  Theremight be other tricks but the Player itself won't understand the 
  dragand drop.Matt! -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
  David KatzSent: Monday, March 13, 2006 7:56 AMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] Drag  drop *from* the 
  user's file system into aFlex 2.0 appI know the Flash player is 
  limited in its ability interact with theuser's file system. I'm wondering 
  if a Flex 2.0 application (and thenew Flash player) has the ability to 
  enable a user to drag a file orfolder *from the file system* onto a Flex 
  app and have the app performan action (such as reading meta data on the 
  files, uploading them,etc.). Does anybody have any insight about 
  this?thanks,David--David 
  Katz[EMAIL PROTECTED]--Flexcoders Mailing ListFAQ: 
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
__Do You Yahoo!?Tired 
of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-15 Thread dos dedos



As far as I can tell there are two ways to do Flex/Browser-to-desktop interfacing:1. " You need to serve a crossdomain.xml file over HTTP from the local server. This will allow a web based application to interoperate with a desktop basedserver. This is essential to get this to work. Basically this forces you tosupport both HTTP and XMLSocket/Socket in parallel." -- quoted from a reply I had received earlier.2. I may be wrong on this one but my assumption is that if you don't mind installing FES on the desktop and running the Flex app off of http://localhost/ then I believe that you could access file I/O and whatever else you need on the desktop, thru FES. This adds the cost of FES deployment license to each desktop the app runs on.JesterXL [EMAIL PROTECTED] wrote: David I know for a fact Zinc  mProjector allow you  to drag and drop files to projectors (EXE's that wrap SWF's) so this could work  for Flex 1.5 SWF's; only a matter of time till 2 is supported. This is not  in a browser, however.  Dos Flex 1.5 and Flex 2 both have built-in drag and  drop functionality. They just cannot interact with the file system while  running in a browser. So, anything you've seen with AJAX for drag and  drop, you could probably do the same in Flex.   - Original Message -  From: dos  dedos  To: flexcoders@yahoogroups.com  Sent: Wednesday, March 15, 2006 8:20 AM Subject: RE: [flexcoders] Drag  drop *from* the user's file  system into a Flex 2.0 app I've seen many AJAX examples of drag and drop. Is drag  and drop planned for Flex in the future (beyond 8.5) or is their some kind of  fundamental reason not to have it? I have a feeling
 it can be done already but  not it should be made easier. Drag and drop is a common feature of rich user  interfaces.On the second point, I've been told on this list that the  Flex-to-desktop interface is very tricky to implement. I have yet to see any  documentaion/examples on how to do it. This aspect of Flex should be made  simpler for developers who don't mind having their users install servers on the  desktop.Matt Chotin [EMAIL PROTECTED] wrote: That'snot something that Player 8.5 is going to support I think.Theremight be other tricks but the Player itself won't understand thedragand drop.Matt! -Original Message-From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf OfDavid KatzSent: Monday, March 13, 2006 7:56 AMTo:   
 flexcoders@yahoogroups.comSubject: [flexcoders] Drag  drop *from* theuser's file system into aFlex 2.0 appI know the Flash player islimited in its ability interact with theuser's file system. I'm wonderingif a Flex 2.0 application (and thenew Flash player) has the ability toenable a user to drag a file orfolder *from the file system* onto a Flexapp and have the app performan action (such as reading meta data on thefiles, uploading them,etc.). Does anybody have any insight aboutthis?thanks,David--DavidKatz[EMAIL PROTECTED]--Flexcoders Mailing ListFAQ:http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearchArchives:http://www.mail-archive.com/flexcoders%40yahoogroups.com   
 Yahoo! Groups Links __Do You Yahoo!?Tired  of spam? Yahoo! Mail has the best spam protection around  http://mail.yahoo.com   
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-15 Thread JesterXL





Aye, you could do that. I'm talking 
specifically about clicking on a file on your desktop, and dragging over top of 
a Flex interface, dropping it there, and having Flex respond to it.

- Original Message - 
From: dos 
dedos 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, March 15, 2006 9:10 AM
Subject: Re: [flexcoders] Drag  drop *from* the user's file 
system into a Flex 2.0 app
As far as I can tell there are two ways to do 
Flex/Browser-to-desktop interfacing:1. " You need to serve a 
crossdomain.xml file over HTTP from the local server. This will allow a web 
based application to interoperate with a desktop basedserver. This is 
essential to get this to work. Basically this forces you tosupport both HTTP 
and XMLSocket/Socket in parallel." -- quoted from a reply I had received 
earlier.2. I may be wrong on this one but my assumption is that if you 
don't mind installing FES on the desktop and running the Flex app off of 
http://localhost/ then I believe that you could access file I/O and whatever 
else you need on the desktop, thru FES. This adds the cost of FES 
deployment license to each desktop the app runs on.JesterXL 
[EMAIL PROTECTED] wrote:

  
  
  

  David
  I know for a fact Zinc  mProjector allow you 
  to drag and drop files to projectors (EXE's that wrap SWF's) so this could 
  work for Flex 1.5 SWF's; only a matter of time till 2 is supported. This 
  is not in a browser, however.
  
  Dos
  Flex 1.5 and Flex 2 both have built-in drag and 
  drop functionality. They just cannot interact with the file system while 
  running in a browser. So, anything you've seen with AJAX for drag and 
  drop, you could probably do the same in Flex.
  
  
  - 
  Original Message - 
  From: 
  dos dedos 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, March 15, 2006 8:20 AM
  Subject: RE: [flexcoders] Drag  drop *from* the user's file 
  system into a Flex 2.0 app
  I've seen many AJAX examples of drag and drop. Is drag 
  and drop planned for Flex in the future (beyond 8.5) or is their some kind of 
  fundamental reason not to have it? I have a ! feeling it can be done already 
  but not it should be made easier. Drag and drop is a common feature of rich 
  user interfaces.On the second point, I've been told on this list that 
  the Flex-to-desktop interface is very tricky to implement. I have yet to see 
  any documentaion/examples on how to do it. This aspect of Flex should be made 
  simpler for developers who don't mind having their users install servers on 
  the desktop.Matt Chotin [EMAIL PROTECTED] 
  wrote: 
  That's 
not something that Player 8.5 is going to support I think. 
Theremight be other tricks but the Player itself won't understand the 
dragand drop.Matt! -Original Message-From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf 
Of David KatzSent: Monday, March 13, 2006 7:56 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Drag  drop *from* 
the user's file system into aFlex 2.0 appI know the Flash player 
is limited in its ability interact with theuser's file system. I'm 
wondering if a Flex 2.0 application (and thenew Flash player) has the 
ability to enable a user to drag a file orfolder *from the file system* 
onto a Flex app and have the app performan action (such as reading meta 
data on the files, uploading them,etc.). Does anybody have any insight 
about this?thanks,David--David 
Katz[EMAIL PROTECTED]--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links
  __Do You 
  Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 


Yahoo! MailUse 
Photomail to share photos without annoying attachments. 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-15 Thread dos dedos



Yes :) but once you can open/read files on the desktop you can show them inside a Flex UI and then drag and drop them from their to some other place within the UI.JesterXL [EMAIL PROTECTED] wrote:   Aye, you could do that. I'm talking  specifically about clicking on a file on your desktop, and dragging over top of  a Flex interface, dropping it there, and having Flex respond to it.  - Original Message -  From: dos  dedos  To: flexcoders@yahoogroups.com  Sent: Wednesday, March 15, 2006 9:10 AM Subject: Re: [flexcoders] Drag  drop *from* the user's file  system into a Flex 2.0 app As far as I can tell there are two ways to do  Flex/Browser-to-desktop interfacing:1. " You need to serve a  crossdomain.xml file over HTTP from the local server. This will allow a web  based application to interoperate with a desktop basedserver. This is  essential to get this to work. Basically this forces you tosupport both HTTP  and XMLSocket/Socket in parallel." -- quoted from a reply I
 had received  earlier.2. I may be wrong on this one but my assumption is that if you  don't mind installing FES on the desktop and running the Flex app off of  http://localhost/ then I believe that you could access file I/O and whatever  else you need on the desktop, thru FES. This adds the cost of FES  deployment license to each desktop the app runs on.JesterXL  [EMAIL PROTECTED] wrote:  David   I know for a fact Zinc  mProjector allow youto drag and drop files to projectors (EXE's that wrap SWF's) so this couldwork for Flex 1.5 SWF's; only a matter of time till 2 is
 supported. Thisis not in a browser, however.  Dos   Flex 1.5 and Flex 2 both have built-in drag anddrop functionality. They just cannot interact with the file system whilerunning in a browser. So, anything you've seen with AJAX for drag anddrop, you could probably do the same in Flex. -Original Message -From:dos dedosTo: flexcoders@yahoogroups.comSent: Wednesday, March 15, 2006 8:20 AM   Subject: RE: [flexcoders] Drag  drop *from* the user's filesystem into a Flex 2.0 app   I've seen many AJAX examples of drag and drop. Is dragand drop planned for Flex in the future (beyond 8.5) or is their some kind offundamental reason not to have it? I have a ! feeling it can be done alreadybut not it should be made easier. Drag and drop is a common feature of richuser interfaces.On the second point, I've been told on this list thatthe Flex-to-desktop interface is very tricky to implement. I have yet to seeany documentaion/examples on how to do it. This aspect of Flex
 should be madesimpler for developers who don't mind having their users install servers onthe desktop.Matt Chotin [EMAIL PROTECTED]wrote:That's  not something that Player 8.5 is going to support I think.  Theremight be other tricks but the Player itself won't understand the  dragand drop.Matt! -Original Message-From:  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf  Of David KatzSent: Monday, March 13, 2006 7:56 AMTo:  flexcoders@yahoogroups.comSubject: [flexcoders] Drag  drop *from*  the user's file system into aFlex 2.0 appI know the Flash player  is limited in its ability interact with theuser's file system. I'm  wondering if a Flex 2.0 application (and thenew Flash player)
 has the  ability to enable a user to drag a file orfolder *from the file system*  onto a Flex app and have the app performan action (such as reading meta  data on the files, uploading them,etc.). Does anybody have any insight  about this?thanks,David--David  Katz[EMAIL PROTECTED]--Flexcoders Mailing  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com  Yahoo! Groups Links   __Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.comYahoo! MailUse  Photomail to share photos without annoying attachments.  
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this 

RE: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-14 Thread Matt Chotin
That's not something that Player 8.5 is going to support I think.  There
might be other tricks but the Player itself won't understand the drag
and drop.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Katz
Sent: Monday, March 13, 2006 7:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag  drop *from* the user's file system into a
Flex 2.0 app

I know the Flash player is limited in its ability interact with the
user's file system. I'm wondering if a Flex 2.0 application (and the
new Flash player) has the ability to enable a user to drag a file or
folder *from the file system* onto a Flex app and have the app perform
an action (such as reading meta data on the files, uploading them,
etc.). Does anybody have any insight about this?

thanks,
David

--

David Katz
[EMAIL PROTECTED]


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-13 Thread David Katz
I know the Flash player is limited in its ability interact with the
user's file system. I'm wondering if a Flex 2.0 application (and the
new Flash player) has the ability to enable a user to drag a file or
folder *from the file system* onto a Flex app and have the app perform
an action (such as reading meta data on the files, uploading them,
etc.). Does anybody have any insight about this?

thanks,
David

--

David Katz
[EMAIL PROTECTED]


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Drag drop *from* the user's file system into a Flex 2.0 app

2006-03-13 Thread Michael Schmalle



Hello,

My insight is that would be a dream. I bet Adobe is thinking along the same lines though.

Looking at Flash5 to Flex2, you can imagine anything for the future. ;-)

Other than a no answer to your question, you could use a server side
language locally to accomplish something close but, no dice on the OS
to Flash Player just using the Flash Player 8.5.

Peace, MikeOn 3/13/06, David Katz [EMAIL PROTECTED] wrote:




I know the Flash player is limited in its ability interact with the
user's file system. I'm wondering if a Flex 2.0 application (and the
new Flash player) has the ability to enable a user to drag a file or
folder *from the file system* onto a Flex app and have the app perform
an action (such as reading meta data on the files, uploading them,
etc.). Does anybody have any insight about this?

thanks,
David

--

David Katz
[EMAIL PROTECTED]







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  










-- What goes up, does come down.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Drag drop within a tree control itself

2006-03-02 Thread Robs
Hi people,
 I've a tree control which is the drag source  drop target itself to 
enable shuffling of nodes within the tree. As such, the normal drag  
drop codes work fine but there is 1 problem in the dragComplete 
event. I've used the following function within dragComplete event:

function doDragComplete(event) 
  {
 var dragItems = event.dragSource.dataForFormat
(source).selectedItems;
 //var dragItems = event.dragSource.dataForFormat
(source).selectedNode;
 //mx.controls.Alert.show(event.dragSource, Drag 
source);
mx.controls.Alert.show(dragItems[0].getProperty
(label), Drag Complete);
/* var counter = dragItems.length;
 for (var i=0;icounter;i++)
 {
var item = dragItems[i];
item.removeTreeNode();
 }*/
  }

As u can see above the alert popup shud show the selected node, but 
its blank. The main purpose is to relocate the dragged node from the 
old to the new location.

Kindly help...
Thanks.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] drag drop

2005-04-22 Thread Robert Brueckmann









Is there any way to get the id of the
component which is the source from which youre dragging items from?



Im trying to do 2 things on a
page. I have a list of indices and a blank listthe user first can drag
indices over to the blank list and then once theyve dragged them over,
they can then drag and drop within the list to order them accordinglyso
I have the initial drag  drop done without a hitchbut I can figure
out the intra-list drag  dropping for ordering purposesI thought
one way would be in the the doDragOver function, I would simply check the id of
the source and against the id of the destination and if theyre equal
make it a move action, otherwise its a copy actionI can get the
id of the destination without a hitch but I cant figure out how to
retrieve the id of the source the item is being dragged from.



Possible? Should I just add an up and
down arrow next to the list and make them select the items and call the
setChildIndex method on the item in the list instead of doing the whole drag
 drop thing?





Robert L. Brueckmann

Senior Web Developer

Merlin Securities, LLC

595 Madison Avenue

New York, NY 10022

p: 212.822.4821
f: 212.822.4820










This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.


Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] drag drop

2005-04-22 Thread Ashish Goyal





You can get the dragging source byusing 
-event.dragSource.dataForFormat("source").

Thanks
-Ashish

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 
  9:03 AMTo: flexcoders@yahoogroups.comSubject: 
  [flexcoders] drag drop
  
  
  
  Is there any way to 
  get the id of the component which is the source from which you're dragging 
  items from?
  
  I'm trying to do 2 
  things on a page. I have a list of indices and a blank list...the user 
  first can drag indices over to the blank list and then once they've dragged 
  them over, they can then drag and drop within the list to order them 
  accordingly...so I have the initial drag  drop done without a hitch...but I 
  can figure out the intra-list drag  dropping for ordering purposes...I 
  thought one way would be in the the doDragOver function, I would simply check 
  the id of the source and against the id of the destination and if they're 
  equal make it a move action, otherwise it's a copy action...I can get the id of 
  the destination without a hitch but I can't figure out how to retrieve the id 
  of the source the item is being dragged from.
  
  Possible? 
  Should I just add an up and down arrow next to the list and make them select 
  the items and call the setChildIndex method on the item in the list instead of 
  doing the whole drag  drop thing?
  
  
  Robert L. 
  Brueckmann
  Senior Web 
  Developer
  Merlin Securities, 
  LLC
  595 Madison 
  Avenue
  New 
  York, NY 10022
  p: 
  212.822.4821f: 212.822.4820
  
  
  
  
  This message contains information fromMerlin Securities, LLC, 
  or from one of its affiliates, that may be confidential and privileged. If you 
  are not an intended recipient, please refrain from any disclosure, copying, 
  distribution or use of this information and note that such actions are 
  prohibited. If you have received this transmission in error, please notify the 
  sender immediately by telephone or by replying to this 
  transmission.
   
  Merlin Securities, LLC is a registered broker-dealer. Services 
  offered throughMerlin Securities, LLC are not insured by the FDIC or any 
  other Federal Government Agency, are not deposits of or guaranteed 
  byMerlin Securities, LLCand may lose value. Nothing in this 
  communication shall constitute a solicitation or recommendation to buy or sell 
  a particular security.







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] drag drop

2005-04-22 Thread Robert Brueckmann









Thanks Ashish! I couldnt find
anything like that in the documentation anywhere! Thanks a lot.





Robert L. Brueckmann

Senior Web Developer

Merlin Securities, LLC

595 Madison Avenue

New York, NY 10022

p: 212.822.4821
f: 212.822.4820











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ashish Goyal
Sent: Friday, April 22, 2005 12:36
PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] drag
drop





You can get the dragging source
byusing -event.dragSource.dataForFormat(source).



Thanks

-Ashish











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Friday, April 22, 2005 9:03
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag drop



Is there any way to get the id of the
component which is the source from which you're dragging items from?

I'm trying to do 2 things on a
page. I have a list of indices and a blank list...the user first can drag
indices over to the blank list and then once they've dragged them over, they
can then drag and drop within the list to order them accordingly...so I have
the initial drag  drop done without a hitch...but I can figure out the
intra-list drag  dropping for ordering purposes...I thought one way would
be in the the doDragOver function, I would simply check the id of the source
and against the id of the destination and if they're equal make it a move
action, otherwise it's a copy action...I can get the id of the destination
without a hitch but I can't figure out how to retrieve the id of the source the
item is being dragged from.

Possible? Should I just
add an up and down arrow next to the list and make them select the items and
call the setChildIndex method on the item in the list instead of doing the
whole drag  drop thing?



Robert L.
Brueckmann



Senior Web Developer



Merlin Securities, LLC



595 Madison Avenue



New York, NY
 10022



p: 212.822.4821
f: 212.822.4820



















This message contains information
fromMerlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone or by
replying to this transmission.





Merlin Securities, LLC is a registered
broker-dealer. Services offered throughMerlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed byMerlin Securities, LLCand may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.









This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.


Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] drag-drop with two sources and two targets

2005-04-21 Thread Dzafer










Hi there,



How can I use drag-drop features with 2 sources and 2
targets without allowing drag elements from source one to target two and vice-versa?



Any help will be appreciated.



Best regards



Dzafer













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.