Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

drag/scroll without clicking

Explorer ,
Nov 08, 2013 Nov 08, 2013

hey guys,

Working on a game that mimics a webpage. Now I want to drag up/down like you would on an ipad. The issue is that there is content on the page that is hyperlinked. So would I best go about implementing a drag scroll and not have it execute the hyperlink if I happened to drag from it's linking picture?

TOPICS
ActionScript
462
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2013 Nov 08, 2013
LATEST

You could compare the mouseX and/or mouseY values on the MOUSE_DOWN and the CLICK for any of the linked objects to see if the values have changed (maybe beyond some reasonable allowance).  If so, skip the link processing.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines