The FlexStore sample has some custom drag/drop handling. Seems like you could borrow some of that code.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Wednesday, March 26, 2008 2:03 PM To: [email protected] Subject: [flexcoders] Re: Drag and Drop for Variable Custom Component Would it be easier to make the draggable elements in Flash then import it into Flex? This way I can control the mouseOver/Down/Release events in the (easier to use) Flash environment. Does this facilitate the drag and drop process at all? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "kenny14390" <[EMAIL PROTECTED]> wrote: > > Hi. I've read the documentation about drag and drop and I've read up > on custom components, but my case is a little different. I'm never > directly invoking my custom component, but rather conditionally > invoking it (if a condition is true). So I don't write the tags for > the component, I'm just adding it as a child to a Canvas component to > make it show up. I feel like this complicates drag and drop support, > but I want to see what you guys think about it before I go over my head. > > Here's the link to the page with the application in question: > http://75.125.60.10/~bingbuil/feature2.php <http://75.125.60.10/~bingbuil/feature2.php> > > I'm working on the details like overlapping classes, but I scrapped > this together quickly to test out the Canvas children thing. > > So my question basically is how would I implement Drag and Drop on the > oval elements that get appended to the Canvases? I've messed around > with the component itself, but I can't figure out how to have it > communicate with the main MXML application, to tell it to call a > function. If the source code would help, I'd be glad to provide it. > Thanks. >

