1

I have a Sprite displayed on top of my view which houses a scroller with a map in, the sprite is a menu, and I want to stop the user from swiping their finger around on the menu and having the map scroll in the background, it looks silly.

How do I go about stopping swipes over the menu from passing through the the map behind it?

I have tried setting:

mouseEnabled = false;

but that had no effect.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Hamid
  • 4,410
  • 10
  • 43
  • 72

4 Answers4

0

I'm not sure if this works with touch interfaces, but try mouseChildren = false;

Jonathan Rowny
  • 7,588
  • 1
  • 18
  • 26
0

Possibly you're seeing a manifestation of this PlayBook/AIR bug.

Peter Hansen
  • 21,046
  • 5
  • 50
  • 72
  • After reading your link, it might appear so, I happen to be running the version shown their this this bug occurs on (the latest one in the list). I didn't see a solid solution though :( – Hamid Aug 09 '11 at 08:19
  • If you can run your app on AIR on the desktop, and the problem does not occur there, then I think that proves it. There has been no solution created yet, nor a particularly good workaround. :( – Peter Hansen Aug 09 '11 at 15:13
0

With the very small amount of information given, it's hard to debug, but have you tried setting enabled=false?

J_A_X
  • 12,857
  • 1
  • 25
  • 31
  • Setting it on what? You have to guess, so I have to guess? :D – Hamid Aug 09 '11 at 08:19
  • Ok, I set this on the scroller, which is what I assume you mean and got the desired result, I will accpet this as the answer. Thanks :D – Hamid Aug 09 '11 at 09:47
0

Have you tried:

               mouseChildren = false;
               //useHandCursor = true;
               buttonMode = true;
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416