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:
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