Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] target movie frame label
From: Muzak
Date: Mon, 05 Mar 2001 11:16:35 -0000

You have to eval() the _droptarget, as droptarget returns a slash path. Eval() converts it to a reference which you can use in a
comparisson.


on (press) {
startDrag ("_root/f3", false, 158, 35, 540, 623);
}
on (release) {
if (eval(_root.f3._droptarget) == _root.f3drop) {
gotoAndPlay ("drop");
stopDrag ();
} else {
stopDrag ();
}
}

hth,
Muzak

----- Original Message -----
From: "David Hagelthorn" <David [dot] Hagelthornathalogen [dot] com>


> guys,
>
> i am trying to target a frame label from within a movieclip on a droptarget.
> this should be easy, but it is starting to give me a headache! Basically,
> the code I have at the moment is as follows:
> (this code is on a drag button from within the movieclip "f3"). the frame
> label "drop" is also within the movieclip f3.
>
> on (press) {
> startDrag ("_root/f3", false, 158, 35, 540, 623);
> }
> on (release) {
> if (getProperty("_root.f3", _droptarget) eq "_root.f3drop") {
> gotoAndPlay ("drop");
> stopDrag ();
> } else {
> stopDrag ();
> }
> }
>
> if anyone can help it would be great......thanks
>
>
> >>>>>>>> david hagelthorn




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]