Hello guys ,
I am storing the current object in a current_target, when hittest is true and dispathing an event to document class.
Here is my code
if(evt.target.hitTestObject(_targetCont)) {
current_target=new MovieClip();
current_target = evt.target as MovieClip;
dispatchEvent(new HitEvents(HitEvents.DROPPED_TO_TARGET));
}
public function get CurrentTarget()
{
return(current_target as MovieClip);
}
and then i have added an event listener in document class
and in the function I am tracing the “current_target” but its returning null.