I have a movieclip which contains a bitmap and I wan't to increase the hit area. I understand I can add a transparent shape behind it but this is to be compiled through air for ios and I don't want to cause unnecessary redraws.
Is there a way to define a rectangle as the hit area or another solution perhaps?
There is a special hitArea field for that purposes.
Unfortunately even if you override hitTest* function of InteractiveObject they will not be used for mouse-events dispatching :( If somebody knows how to force Flash to use overridden methods - I'd like to know it too.
You could also create a button with Bitmap inside it then define the hitArea. It essentially does the same thing that Ilya did in code. However when you add the new instance of the button to the stage you will be able to apply MouseEvents to it.
Pretty pictures :)
The problem is this will increase the amount of memory and power to do on the iOS so it's really a horse a piece... :(