# Drag&drop pathing problems

**URL:** <https://forum.kirupa.com/t/drag-drop-pathing-problems/119560>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 12:33pm UTC](https://forum.kirupa.com/t/drag-drop-pathing-problems/119560 "2004-08-16T12:33:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noctivagus](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@Noctivagus](https://forum.kirupa.com/u/Noctivagus)\
**Post date:** [August 16, 2004, 12:33pm UTC](https://forum.kirupa.com/t/drag-drop-pathing-problems/119560/1 "2004-08-16T12:33:16Z")

</div>

I have been going insane trying to get the following to work :

I have a main movie index.swfwhich holdsa container for externalmovies to load in called “contens”

I have a photalbum I load into this and this is where the headache starts.

The photoalbum uses drag&drop and works standalone.Once loaded in the index.swfthe dragging works but the dropping doesn’t. I know it is a pathing problem but can’t get it to work (FLAsh MXbtw)

I have addedthe script where the problemoccurscan someone plz help me for im going mad.

// drag polaroid from bottom on stage  
bild.prototype.ReleaseHandler = function(bild, ursprungx, ursprungy){  
this.stopDrag();  
//stop wobbling  
delete this.onEnterFrame;  
delete stopit;  
delete cnt;  
//  
[color=Red]if(this.\_droptarget != “/bildansicht\_mc” && this.\_droptarget != “/bildansicht\_mc/container\_mc”)[/color]{  
//nicht zeigen  
if((this.\_x \> 700) || (this.\_x \< 0) || (this.\_y \> 100) || (this.\_y \< 0)){  
this.onEnterFrame=function(){  
if(this.\_x != urspr\_x){  
this.\_x -= ((this.\_x-ursprungx)/2);  
this.\_y -= ((this.\_y-ursprungy)/4);  
}else{  
delete this.onEnterFrame;  
}  
}  
}  
}else{  
//zeige grossansicht  
bildgroesse\_reset();  
bildansicht\_mc.container\_mc.loadMovie(bilderordner+shooting\_cb.getValue()+"/"+bild);  
ergaenzeVerlauf(bild); //zum verlauf hinzufuegen  
this.bild\_mc.\_alpha=30;  
this.\_rotation = urspr\_rot;  
this.onEnterFrame=function(){  
if(this.\_x != ursprungx){  
this.\_x -= ((this.\_x-ursprungx)/2);  
this.\_y -= ((this.\_y-ursprungy)/4);  
}else{  
delete this.onEnterFrame;  
}  
}

Please do not answer in german since this is code from someone else and I am not german :).

I think the problem is in the red text and it is just not matching the targetdrop area.

Any help would be appreciated.

Nocti

---

<div class="post-metadata">

**Author:** ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)\
**Post date:** [August 18, 2004, 3:02pm UTC](https://forum.kirupa.com/t/drag-drop-pathing-problems/119560/2 "2004-08-18T15:02:25Z")

</div>

Where is /bildansicht\_mc located?

i guess its in the \_root, change those to \_root.bildansicht\_mc

(btw, thats some crappy old syntax :P)
