18.02.2015 Views

5ml User's Guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>5ml</strong> <strong>User's</strong> <strong>Guide</strong><br />

Enabling Native Device Functionality for a Page<br />

After you enable the project to support native device functionality, you can add native device functionality to a page.<br />

To enable native device functionality on a page:<br />

1. Open a project page, and on the Page Outline, select the page (or a page element).<br />

2. On the Properties pane select the Behavior tab.<br />

Figure 17-1: Enabling native device functionality on the Behavior tab<br />

3. Add a native device event and action. For example, from the Event drop-down menu, select the ondevicemotion<br />

event, and from the Action drop-down menu, select the Vibrate Device action.<br />

4. Click Apply. The new behavior displays in the Behavior list.<br />

For more information about adding event/action behaviors and a list of supported native device behaviors, see<br />

"Changing Behavior Properties" on page 223. For more information about the native device functionality<br />

supported by <strong>5ml</strong>, see "About Events" on page 224.<br />

Note: To view and test native device functionality you must preview the page using the Preview as Mobile App<br />

option; see "Previewing a Project" on page 120. Native device functionality does not work on browsers.<br />

- 373 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!