Jump to content

onstart/addEventListener with Adobe DPS - Help Needed


Recommended Posts

I'm having an issue with a game I have built using Construct 2 when placed into an Adobe DPS folio file.  The game itself functions perfectly, the issue is the app's built in navigation is activated every time a user interacts with the piece (touch).  I was told by an Adobe rep that this could avoided...

 

According to one of our developers, when you display HTML content in DPS, the viewer looks for elements with handlers such as onclick and ontouchstart or an event listener such as addEventListener. If any of these elements are present, tapping the item should not display the nav bars.

If you dynamitcally set the element.ontouchstart function after the content has loaded, the nav bars will appear when the item is tapped. To suppress the nav bars, one approach is to change the function that applies the handler functions to use addEventListener.

 

Seeing as I am not a coder, I could really use some help.  I can supply the raw files if that would help.  

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...