PDA

View Full Version : how to move flash in html using javascript?


britoniah3480
03-11-2008, 03:30 AM
hey anyone here know how to move flash anywhere? I mean drag it anywhere? I really need it badly. thanks!

iyeru42
03-11-2008, 03:45 PM
Do you want the finished position to be saved when the user comes back to the page? If not, you can try enabling designmode.
javascript:document.body.contentEditable=' true'; document.designMode='on'; void 0

But it won't technically allow you to drag stuff around depending on how your set things up beforehand.

asf8
03-11-2008, 06:38 PM
how to move flash in html using javascript? - hey anyone here know how to move flash anywhere? I mean drag it anywhere? I really need it badly. thanks!

Maybe something amoung these?

javascript drag objects
http://www.google.com/search?hl=en&q=javascript+drag+objects&btnG=Search

javascript drag drop objects
http://www.google.com/search?hl=en&q=javascript+drag+drop+objects&btnG=Search

javascript drag drop
http://www.google.com/search?hl=en&q=javascript+drag+drop&btnG=Search

ajax drag drop
http://www.google.com/search?hl=en&q=ajax+drag+drop&btnG=Google+Search

div drag drop
http://www.google.com/search?hl=en&q=div+drag+drop&btnG=Google+Search

Maybe?

Just watch for onscreen artifacts when you move your items. Otherwise maybe something will work?

I know the various ajax kits also have drag/drop functionality, but then you add the file size from the kit to your site also. An example would be mootools - http://demos.mootools.net/DragDrop

Let us know what you come up with concerning drag/drop with Flash! ;)

britoniah3480
03-21-2008, 06:08 PM
errr... do you know the dog/pin/robot in microsoft word? (dont know what they call it but I think its microsoft office assistant). thats my Idea, using it in my website. div can move flash but when the mouse drags inside flash, It wont move. Any idea?

iyeru42
03-26-2008, 02:06 PM
errr... do you know the dog/pin/robot in microsoft word? (dont know what they call it but I think its microsoft office assistant). thats my Idea, using it in my website. div can move flash but when the mouse drags inside flash, It wont move. Any idea?

Did you add a mouse listener INSIDE flash?