Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Highlighted
New Contributor
Posts: 8
Registered: ‎11-18-2010
My Device: Not Specified

Re: Problem with Sprite and MouseEvent

[ Edited ]

Thats quite interesting...

 

I will try setting up an array of objects close together and see how that goes...If testing doesnt go well...

 

 

I have "in theory" come up with a solution i think...

 

using that change in the hitArea, i could possibly make an invisible mouse event box on top of the target square which is smaller.  That way the hit area could be adjusted to the right size of desire...

 

This i don't think this would be the most efficient code to write, but i think it could work...

 

If all goes well, ill let you guys know...

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Problem with Sprite and MouseEvent

An alternative (but maybe less desireable) is to place a transparent layer above all the graphic boxes that listens for mouse events and then you, programatically, determine if a selection has occured.  I use this method for dragging stuff often, but it may be applicable here.

New Contributor
Posts: 8
Registered: ‎11-18-2010
My Device: Not Specified

Re: Problem with Sprite and MouseEvent

Oh wow!

 

Taylor was right about the some logic behind the hitArea.

 

i placed a set of sprites right beside each other, and it does not conflict at all...

thats very very interesting...

 

only the ones in the around the boxes as a whole have the "extended area"

 

[Red being the extra area of mouseEvent]

untitled.png

 

Thank you so much for your effort and help guys!