<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>i'm not sure you could do it with just the div with the flash movie in it... </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>sometimes when you modify css properties of a div with a flash movie in it, IE will reset the Flash movie. only certain properties do it, but i'm not sure of the specific list.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>my initial thought was to use a nested div like your example code, and then when you drag, move the div with the swf off the screen (to -100000 or something) and have an image underneath it, or swap in a div with the image under it somehow.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>then when you drop it, just move the flash back.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>it also seems strage that there would be a 1px border around the flash if you don't want it there... are you sure there's not some css somewhere adding in the extra padding or margin?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On Aug 1, 2006, at 4:30 PM, DL wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">I have a requirement to drag and drop multiple Flash objects written into multiple div containers, using SWFObject.</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">I have tested a few javascripts which can drag and drop div containers holding jpg, gif and png images (not Flash objects).</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">But I've not yet found a way of dragging and dropping the <div id="flashcontent></div> written to by SWFObject.  </SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">The nearest working solution is to nest <div id="flashcontent></div><I> inside</I> an wrapper draggable div .. but this creates an unwanted (but draggable) margin around the SWFObject.  Like this ..</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial" color="#0000ff"><SPAN style="font-size:10pt"><div id="drag" class="box" style="left:400px;top:150px;"></SPAN></FONT></DIV> <DIV align="left"><FONT face="Arial" color="#0000ff"><SPAN style="font-size:10pt">  <div class="bar" style="width:12em;">drag SWFObject</div></SPAN></FONT></DIV> <DIV align="left"><FONT face="Arial" color="#0000ff"><SPAN style="font-size:10pt">  <div id="flashcontent" class="content" style="width:12em;">SWFObject content</div></SPAN></FONT></DIV> <DIV align="left"><FONT face="Arial" color="#0000ff"><SPAN style="font-size:10pt"></div></SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">So my question .. if I do <I>not</I> use nested divs's .. just the standard SWFObject div .. can the written SWFObject in some way be switched to a bitmap image during this dragdrop operation?</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">i.e. a "freeze image" of the flash movie placed in the div as a temporary image during dragging, then switching back to Flash vector when dropped?</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">One rough idea I had was to use bitmap caching in Flash 8. But how to get the bitmap as an image?</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">Or is there a much simpler approach to dragdrop "temporarily frozen" Flash movie images in div containers?</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"><FONT face="Arial"><SPAN style="font-size:10pt">DL</SPAN></FONT></DIV> <DIV align="left"><BR> </DIV> <DIV align="left"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SWFObject mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:SWFObject@lists.deconcept.com">SWFObject@lists.deconcept.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com">http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>