Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 103641

Re: Help with error #2007 Parameter hitTestObject must be non-null.

$
0
0

You can then replace the following:

 

  1. if(hitTestObject(target))
  2. {
  3.   visible = false;
  4.   target.alpha = 1;
  5.   Object(parent).match();                             
  6. }

with this:


  1. if(hitTestObject(evt.target))
  2. {
  3.   visible = false;
  4.   evt.target.alpha = 1;
  5.   Object(parent).match();                             
  6. }

 

I didn't understand why you've kept target as a member variable in that case though. I do not have the full context here, probably you have missed the assignment to target before the drop event. Just double check. In that case, the change I mentioned above will not be required.

 

-Dharmendra.


Viewing all articles
Browse latest Browse all 103641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>