Flasher Archive

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


Subject: RE: [flasher] Re: target movie frame label
From: David Hagelthorn
Date: Mon, 05 Mar 2001 14:36:01 -0000

cheers - works a treat. never used eval before.....(he says getting out
reference books...)

>>>>>>>> david hagelthorn
>>>>>>>> digital media designer

-----Original Message-----
From: Muzak [muzakatpandora [dot] be (mailto:muzakatpandora [dot] be)]
Sent: 05 March 2001 11:12
To: flasher from chinwag
Subject: [flasher] Re: target movie frame label


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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: david [dot] hagelthornathalogen [dot] com
To unsubscribe, email leave-flasher-479918Ratlists [dot] chinwag [dot] com



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