# Drag and drop problem

**URL:** <https://forum.kirupa.com/t/drag-and-drop-problem/111270>\
**Category:** Uncategorized\
**Created:** [May 25, 2004, 12:32pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270 "2004-05-25T12:32:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ross\_S](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Ross\_S](https://forum.kirupa.com/u/Ross_S)\
**Post date:** [May 25, 2004, 12:32pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/1 "2004-05-25T12:32:59Z")

</div>

Hi,

i’ll try and explain this best I can,

i’m developing a drag and drop type game for a college assesment for students

I have set up a test screen to set up it’s funcionality.

For example when I place somthig in a correct position it say “Correct” otherwise it say “wrong”

So up to that point it’s working ok,

but now I want to take it further so it only say wher it’s right or wrong after you click a button,

So I did what I tohught, but it dosent seem to register, no sytax errors come up so it seems to be in the codes logic, I tihnk mabe i’m not referig to the drag item corectly.

I have it somthing like this:

on (release) {

if ("/P1".\_droptarget == “/pipetarg”) {  
\_root.answer1=“wrong”;  
}

P1 is the drag item while pipe targ is the target.

any help?

Thankyou.  
:jail:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 8:07am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/2 "2004-05-26T08:07:33Z")

</div>

> [@lunatic](#):
>
> Then it should be \_root.answer.text = “wrong”
> 
> (and the textbox is hopefully dynamic?)

yes it is. 🙂

alougth I havent had poblems eith the text box in other experiments.

I’ll just go and have a play aronund and see.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 8:20am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/3 "2004-05-26T08:20:19Z")

</div>

Eval works!

Thanks!

😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 2:31pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/4 "2004-05-26T14:31:47Z")

</div>

Right on! :thumb:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 3:55pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/5 "2004-05-26T15:55:47Z")

</div>

Who’s the guy with the white hair? :pope:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 4:00pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/6 "2004-05-26T16:00:46Z")

</div>

You mean my avatar? :h:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 9:16am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/7 "2004-05-27T09:16:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 9:17am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/8 "2004-05-27T09:17:08Z")

</div>

yes 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 9:30am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/9 "2004-05-27T09:30:41Z")

</div>

the guy with the white hair wants to kill the malanysian president

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 9:56am UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/10 "2004-05-27T09:56:56Z")

</div>

Fascinating :tie:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 2:40pm UTC](https://forum.kirupa.com/t/drag-and-drop-problem/111270/11 "2004-05-27T14:40:29Z")

</div>

lol, that’s Will Ferrell as Mugatu in the movie Zoolander - one of my faves!

“Kill the Naughty Man AAAAAAHHHHHHH!”

:hr:
