Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Playing MC from hitTest result |
From: | Craig Paterson |
Date: | Fri, 26 Jan 2001 12:36:54 -0000 |
Hi all,
I know that someone out there will be able to help me with this one.
I have 2 MC's, one called "line" and the other "mc1". mc1 contains a
piece of text fading in from orange to white and then back again, I have
stop actions for the first frame, middle frame and then a go to frame 1
and stop action in the last frame. I have set up the labels "fadeIn" &
"fadeOut". Following me so far? OK.
Next I have the MC "line" following the cursor horizontally acrross the
stage. What I want to be able to do is have the text in "mc1" fade in
when the line touches it, and fade out when it exits the "mc1". What it
does at the moment is go from the solid orange to the solid white,
but does not play the tweens.
Here is the code I'm using (I'm pretty new to F5) :-
onClipEvent (enterFrame) {
_root.line._x = _root._xmouse;
}
onClipEvent (enterFrame) {
if (this.hitTest (_root.mc1)) _root.mc1.gotoAndPlay ("fadeOut");
else _root.mc1.gotoAndPlay ("fadeIn");
}
Reply to me off list if you would like me to send the .fla
Thanks for your help in advance,
cheers,
Craig
--
Craig Paterson
Multimedia Developer
Vision Thing Design Consultants
67 Marionville Road
Edinburgh
EH7 6AJ
United Kingdom
u. http://www.visionthing.co.uk
e. craigvisionthing [dot] co [dot] uk (mailto:craigvisionthing [dot] co [dot] uk)
--
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]