So all is traced out correctly but alas, when the planets align (or dont), my Sprite (which is a Sprite containing a MovieClip with animation (spritesheet)) remains unseen. Well almost unseen, it does work on the last Sprite in the array.
AS3:
private function indicatorCheck(event:EnterFrameEvent):void { var currentCheck:Randimal = event.currentTarget as Randimal; var index:int = this.animalArray.indexOf(currentCheck); var intersection:Rectangle = this.alien.indicator.getBounds(Starling.current.stage).intersection(currentCheck.getBounds(Starling.current.stage)); if (intersection.width >= 80) { this.alien.indicator.alpha = 1; trace("YES indicator"); } else { this.alien.indicator.alpha = 0; } }
The strange thing is that if I replace an alpha with a change in y value it renders correctly on each item within the array. alpha only works correctly on the last item in the array...
As always in this amazing community, thanks to any support and or pointers and it is much appreciated...