-
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");
}
}
-
juggernart
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.
-
juggernart
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.
-
Thanks I'll go and try that now
much appreciated.
Trev
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|