Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Did I wirte the script(hitTest) correctly??

Status
Not open for further replies.

Jennyucf

Instructor
Jun 22, 2001
215
US
I have two movie clips, named "circle" and "line". I want the line appears when it hits the circle. But the following script doesn't work at all. I've stuck here for two hours~~~~~~~~~~

if (_root.line.hitTest(_root.circle)) {
setProperty (_root.line, _visible, 1);
} else {
setProperty (_root.line, _visible, 0);
}

anymistakes??
 
Try this one :

if ( _root.line, hitTest (_root.circle)){
setProperty (_root.line, _visible, 1);
} else {
setProperty (_root.line, _visible, 0);
}


Hope it works :p....
Find me on Undernet in Flash related chans
 
HI, I finally found the problem of it. The script is right, but the movie clip I use is a "magnifier glass" ,which is complicated.. But now I fixed it.Thank you !!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top