Skip to main content
dalstondavid
Inspiring
July 25, 2018
Answered

Menu buttons to navigate between scenes

  • July 25, 2018
  • 1 reply
  • 384 views

Hi all, I dare say this has been asked often, and it's a very basic question.

I've built a simple multi-scene Animate CC project, with a menu that is a movie clip containing buttons. If my 'target' is a Flash Player, it works fine. If I change 'target' to Air for iOS, the navigation no longer functions. Is this because I need to replace the MouseEvent.CLICK with something else? Or do I need to overhaul the ActionScript?

Is there maybe a straightforward tutorial online somewhere that covers exactly this?

You might be able to tell that I'm not an expert. I have successfully published an app before, but I'm a musician, not a developer. Thanks for any advice

David H

This topic has been closed for replies.
Correct answer kglad

mousedown is detected on touch devices.  mouseup (and therefore click) may not be.

show your mousedown code that fails.

1 reply

kglad
Community Expert
Community Expert
July 25, 2018

yes, use MouseEvent.MOUSE_DOWN

dalstondavid
Inspiring
July 26, 2018

Thanks for coming to my help, although that didn't seem to make any difference. I don't really understand why MOUSE_DOWN would be more relevant for mobile devices, though—I guess I ought to access swipe and tap functions too. Also no idea how to do that. Thanks anyway /D

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 26, 2018

mousedown is detected on touch devices.  mouseup (and therefore click) may not be.

show your mousedown code that fails.