PDA

View Full Version : on drop go to URl


grimm
03-21-2002, 07:57 PM
i want to create a menu system that when you drop some an object onto another it goes to a certain URl.... how do you do this.


here is my drag code:

on (rollOver) {
startDrag(this, true);
}
on (release) {
stopDrag();
if (this._droptarget == "dropbut") {
_root.dropbut.gotoAndstop(2);
}

I don't know where to go from here....

I don't mean to cross post but no one seems to respond to my topics in action scripting...

JHallam
03-21-2002, 08:31 PM
Ok, firstly you don't have to cross post, everyone and someone WILL respond :)

Okay,
I think this in theory will work.

on (rollOver) {
text1 = 1;
startDrag(this, true);
}
on (release) {
text1 = 2;
stopDrag();
if (this._droptarget == "dropbut") {
_root.dropbut.gotoAndstop(2);
on (rollOut) {
text1 = 3;
getURL ("URL");
}

Cheers

grimm
03-21-2002, 09:03 PM
thank you...
yes i do understand that some one will eventually respond but sometimes time is of the essence. that is why I apologized for doing so...

thanks again i will try to give it a whirl tomorrow as today I am out of time

:(

JHallam
03-21-2002, 09:09 PM
No worries, I know what you mean now, that theory is wrong. You want "drag, Drop into, then getURL