Sorry no savvy. Can you elaborate... Why do I not need to convert all 90,000 MovieClips to UIMovieClips?
Also how do I get UIMovieClip into Flex 2.01? var dropTarget:UIMovieClip = UIMovieClip(event.currentTarget); This line won't compile... --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > I would think you might want to convert a container for your movieclips > to accept the drop. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of quiet.mountain > Sent: Thursday, December 13, 2007 12:44 PM > To: [email protected] > Subject: [flexcoders] Re: How to use DragManager.acceptDragDrop() when > target is a MovieClip? > > > > OK I'm now using the integration kit so the movieclips are fixed > manually for now in the fla. > > (I actually need to convert over 90,000 movieclips in abut 400 .fla > files to UIMoveiClips - but I'm hoping I can hack the "Make Flex > Component" jsfl? But that's probably another posting.) > > Anyway assuming I convert from MovieClip to UIMovieClip manually for > now, I'm still not home and dry because I don't have > mx.flash.UIMovieClip in Flex 2.01, so I can't specify the event > handler in Flex for the dropTarget i.e. > > var dropTarget:UIMovieClip = UIMovieClip(event.currentTarget); > > How do I get UIMovieClip into the Flex 2.01 SDK? Can I just copy and > paste mx.flash.UIMovieClip from the Flex 3 beta SDK into the Flex > 2.01 SDK ? Sorry if that's a really dumb question. > > Cheers, Rich > > > > > Use the integration kit or implement IUIComponent on your own. > > > > > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders% 40yahoogroups.com> > > [mailto:[email protected] <mailto:flexcoders% 40yahoogroups.com> > ] On > > Behalf Of quiet.mountain > > Sent: Thursday, December 13, 2007 12:18 AM > > To: [email protected] <mailto:flexcoders% 40yahoogroups.com> > > Subject: [flexcoders] Re: How to use DragManager.acceptDragDrop () > when > > target is a MovieClip? > > > > > > > > Sorry, > > > > I should have mentioned that my MovieClips are being created in > Flash > > CS3 and I am not currently using the Adobe Flash Workflow > Integration > > Kit. > > > > So I am talking about using the DragManager with > > flash.display.MovieClip. > > > > The suggested solution for Flex 3 is to use UIMovieClip: > > > http://livedocs.adobe.com/labs/flex/3/langref/mx/flash/UIMovieClip.ht m > <http://livedocs.adobe.com/labs/flex/3/langref/mx/flash/UIMovieClip.h tm> > > > > <http://livedocs.adobe.com/labs/flex/3/langref/mx/flash/UIMovieClip.h t > <http://livedocs.adobe.com/labs/flex/3/langref/mx/flash/UIMovieClip.h t> > m> > > > > l > > > > I have two questions: > > > > 1) Will this work with Flex 2.01? > > 2) If I publish the FLA as a SWF will the MovieClips be of type > > UIMovieClip (I don't want to use SWCs)? > > > > Many thanks, Rich > > > > --- In [email protected] > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > 40yahoogroups.com> > > , "quiet.mountain" > > <quiet.mountain@> wrote: > > > > > > Evening all, > > > > > > Simple one here I hope.. > > > > > > I have a bunch of Movieclips that I want to color in using drag > and > > > drop of little colored tiles from a TileList. > > > > > > The MovieClips obviously do not implement IUIcomponent, so how do > I > > > use DragManager.acceptDragDrop(target:IUIComponent) to accept the > > > drag once over the MovieClip? > > > > > > Here's my code: > > > > > > /* > > > * Function to handle dragEnter over MovieClip rug shape > > > */ > > > public function dragEnterHandler(event:DragEvent): void > > > { > > > // Get the drop target component from the event object > > > var dropTarget:MovieClip = MovieClip(event.currentTarget); > > > > > > // Accept the drag only if the user is dragging data > > > // identified by the 'items' format value. > > > if (event.dragSource.hasFormat('items')) > > > { > > > DragManager.acceptDragDrop(dropTarget); > > > } > > > } > > > > > > > > > As ever, many thanks for your time, > > > Rich > > > > > >

