Skip to main content
Participating Frequently
January 9, 2013
Answered

Convert mouse_click actionscript to touch events

  • January 9, 2013
  • 1 reply
  • 2745 views

Hi  I am currently using a PC version of CS6 Flash Pro.

I have just created a Flash project that activates buttons and opens other actions within a timeline that will work perfectly when using the mouse to click on the buttons.

However, I now need to be able to use this same project for touch screen functionality.

AmI able to convert it from a mouse_click event to touch events?

Is it difficult?

Will I need to completely redo this project?

I have searched high and low on the internet and have found nothing about this.

Any help is appreciated.

Thank you

Michael

This topic has been closed for replies.
Correct answer kglad

for simple touches (like buttons) it is easiest to use MouseEvent.MOUSE_DOWN events instead of TouchEvents.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 9, 2013

for simple touches (like buttons) it is easiest to use MouseEvent.MOUSE_DOWN events instead of TouchEvents.

Participating Frequently
January 9, 2013

Thanks for getting back to me so quickly.

Forgive my naivety.

The touch screen will have no access to a mouse. Will the MouseEvent.MOUSE_DOWN work on a touch screen? (So if someone touches the buttonon an Ipad it will work?)

How do I test this? Can i do this within Flash somewhere. I have a tablet, isi t possible to download it to the tablet to check it?

I am sorry I am so new to this part of Flash.

kglad
Community Expert
Community Expert
January 9, 2013

yes, mousedown will be trigged by a touch of an ipad screen.

you can test mousedown events in flash.

if your tablet were an ipad you could install your app and test it.