Skip to main content
Participant
October 1, 2012
Question

Increase responsiveness area

  • October 1, 2012
  • 4 replies
  • 651 views

Hi,

I have an image (14x20) that is displayed within an iOS mobile application. Catching the tap (or click) image event is a hard thing to do, so I wonder if it is possible to increase the image responsivness area, without scaling it.

I've tried placing the image within a group, and add the tap event on the group module, but I think that it should be an easier way to achive this. Could you offer me other workarounds?

Thanks,

Danut

This topic has been closed for replies.

4 replies

Inspiring
October 1, 2012

Whenever I need a bigger catch area in a movieclip, I use the vector "shape" tool in Flash Pro to add a square or rectangle over the top and then make it's alpha 0%. (Similar to what Colin said, but for movie clips)

I'm not sure if using an alpha channel like this is the best way, but seems to work fine for my low-resource app (not a lot of animation or action going on).

Colin Holgate
Inspiring
October 1, 2012

That sounds like an "over the top" solution! Just kidding…

If you are doing movie clips there is an advantage of having the alpha zero hit object be on top rather than underneath, especially if you are using textfields. When you touch or click that object the apparent target would be the textfield if you're on the textfield, or the hit symbol if you at the edges. Having the hit symbol be on top means that the target would always be that object.

Inspiring
October 1, 2012

You're right on the money, Colin. I was using this method primarily for clickable text fields! (but I found it works well for smaller, title-bar-style button where you might need to tweak the hit area shape)

Colin Holgate
Inspiring
October 1, 2012

If you were using Flash you could make it be a button, and have the hit area of the button be bigger than the image. Not sure what the answer is for Flex.