Drag and drop


I need help with drag and drop functions. I have done a animation like a windows window that i want to do so i can drag and drop it. I think the window should have a code like this:

[color=blue]on (press) {[/color]
[color=blue]startDrag ("_root.Fonster");[/color]

[color=blue]on (release) {[/color]
[color=blue]stopDrag ("_root.Fonster");[/color]

[left][color=red]::The tellTarget i have in the code is an effect::[/color][/left]
But it aint working. Someone know what the problem is?

on (press) {
_root.Fonster.startDrag ();

on (release) {
stopDrag ();

that should work… tellTarget has been depricated since flash 5 try to avoid using it when you can.
Good Luck

thx :smiley: its working!