# Droptarget & loadmovie problem

**URL:** <https://forum.kirupa.com/t/droptarget-loadmovie-problem/141275>\
**Category:** Uncategorized\
**Created:** [March 18, 2005, 10:33am UTC](https://forum.kirupa.com/t/droptarget-loadmovie-problem/141275 "2005-03-18T10:33:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [March 18, 2005, 10:33am UTC](https://forum.kirupa.com/t/droptarget-loadmovie-problem/141275/1 "2005-03-18T10:33:01Z")

</div>

Hi,

I’m having a problem.

In my main swf i load an external swf.  
I have a menu with dragable buttons.

Now the problem is that the user has to drag a button to a target on the screen [SIZE=1](in this case a ticket from a party that you have to hand in to the bodyguard at the entrance)[/SIZE]. But the problem is that this target is loaded from the external swf.

So i have tried this:

```auto

on(press) {
	startDrag(this.btnTicket);
	origx = this.btnTicket._x;
	origy = this.btnTicket._y;
	trace(_root.mc_ready2load.guard._x);
}
on(release) {
	stopDrag();
	trace(eval(this._btnTicket._droptarget));
	if (eval(this.btnTicket._droptarget) == _root.mc_ready2load.guard) {
		_root.ticketBool = false;
		trace("whippie");
	} else {
		this.btnTicket._x = origx;
		this.btnTicket._y = origy;
	}
}

```

The first trace gives me the x coordinate so I know that I address it correctly.  
The second trace gives me “undefined” as an output. Why do I always get this “undefined”?

I’ve also tried it with hitTest but this also doesn’t work…  
Can anyone help me???

Thank you, PZ  
T
