PDA

Click to See Complete Forum and Search --> : dragclips not working on ie on the mac



trev@thetrailoftears.com
05-19-2001, 09:00 PM
Hi
I have a draggable movie clip that when released (if it is not over the target called box is returned to its original position.If it is released over box then it stays there.
Trouble is although it works fine in the Flash Player and on
a p.c using ie5 it doesn't work on a mac which also uses ie5

any help gratefully appreciated - I'm probably doing something dumb (I'm a bit new to this) but at least I'm trying.

This is the script I'm using on my button


on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
on (release) {
/:amb1 = getProperty ( "", _droptarget );
if (/:amb1=="/box") {
setProperty ("", _x, "250");
setProperty ("", _y, "175");
} else if (/:amb1<>"/box") {
setProperty ("", _x, "5");
setProperty ("", _y, "5");
}
}

me2222
05-20-2001, 05:41 AM
Hi trev,
your code works fine for me on Mac IE.
I think the Mac u tried it has only the Flash4 plugin.
Install the Flash5 plugin and it works.

me2222
05-20-2001, 06:07 AM
Sorry, I forgot to say that your script is a Flash4/Flash5 mixture.
To make it work with the Flash4 plugin you have to change it to this:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
/:amb1 = getProperty("", _droptarget);
if (/:amb1 eq "/box") {
setProperty ("", _x, "250");
setProperty ("", _y, "175");
} else if (/:amb1 ne "/box") {
setProperty ("", _x, "5");
setProperty ("", _y, "5");
}
}

Change "==" which is Flash5 syntax to "eq" and "<>" which is Flash4 syntax, but used for numbers, to "ne" which is used for string comparision.

trev@thetrailoftears.com
05-20-2001, 09:02 AM
Thanks I'll go and try that now

much appreciated.


Trev