Interaction Mode in Flex

Interaction mode defines how you allow your app to interact with an app user. Interaction mode is again based on Theme you choose for your app, namely Halo, Spark, Modile. Default Interaction mode for Halo, Spark is mouse and for Mobile its touch.

But what if you want a different interaction mode rather than the default one, well its simple to change by using ‘interactionMode’ property and its usage is given below.

[showmyads]

MXML

interactionMode="touch"

//Other value 'mouse'

In ActionScript you can change at runtime using the setStyle function since its a style property like below.

setStyle( "interactionMode", InteractionMode.TOUCH );

//Other value 'InteractionMode.MOUSE'

Happy new year.

Advertisements

4 Responses to Interaction Mode in Flex

  1. […] Interaction mode defines how you allow your app to interact with an app user. Interaction mode is again based on Theme you choose for your app, namely Halo, Spark, Modile. Default Interaction mode for Halo, Spark is mouse and for Mobile its touch…  […]

  2. […] Interaction mode defines how you allow your app to interact with an app user. Interaction mode is again based on Theme you choose for your app, namely Halo, Spark, Modile. Default Interaction mode for Halo, Spark is mouse and for Mobile its touch…  […]

  3. Homepage says:

    … [Trackback]…

    […] Informations on that Topic: 99thoughts.com/flex_blog/2012/12/28/interaction-mode-in-flex/ […]…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: