JM-Mobile
Java Multimedia for Mobile
 
Java Multimedia for Mobile - Tutorials
 

Online Tutorials

XML Data

coming soon!


Variable

There are two kinds of variable: System and User variables:

System variable

It’s a set of predefined variable representing the proprieties of the mobile-phone where the application is running on, for instance, System screen size or Language, etc.

User variable

It’s a way to define, to keep and to modify the states of user's interactions. By now JM-Mobile provides two primitives variable types: STRING and INTEGER.

Modify the user variable

On an event occurred (begin, end, key pressed, etc.) author can choose to modify a user variable. With an INTEGER variable author can choose to set, subtract or plus a value to the variable; with an STRING variable author can choose to concat or replace a new string to the variable

Using variable

Using of variable make the presentation of application more dynamical. In general, to use a variable we put a $ at the beginning of the variable’s name (e.g. $myScore) and put it inside a pair of {}, e.g., {$myScore}

Using variable in the text content

By example:

We have a variable called myScore that keeps a score of user. In the end of application we want to show this score, we can create a Text object and edit its text content as following:

   “My score {$myScore}”

Using variable in the FileName attribute of an image object

This application of variable allows changing to corresponding image content with the situation of the user’s interaction.

By example:

We have a string variable called stateOfMind that can take a “happy”, “sad”, “lovesick”, etc. then we want to show an image corresponding with a state of user in the application, we can create an image object with its FileName attribute specified as following:

   “…/res/images/{$stateOfMind}.png”


Scene

The structure of JM-Mobile project allows author to organize his/her project following the scenes, each scene presents a part, a period, a topic/subject of the multimedia project.

There are two types of scene provided: GenericScene and SlideshowScene.

The GenericScene is a neutral structure that allows to edit the general multimedia presentations.

With the particular multimedia presentations such as Slideshow, Test, Quiz, Magazine, etc. if there are the particular scene structures for these particular presentations, the edition and management of these presentations will be much more easily. However, only the SlideshowScene structure is provided by default. If you want edit the other specific scenes please contact us at support@jm-mobile.com.

Performance hint

"Scene" provides the ways to structure your project in different parts that will be presented exclusively. Avoid creating the big scenes which contain many rich media such as images. The big scenes will make the time to initial them to be long, in addition these scenes maybe couldn't be loaded on the weak cell-phone systems.

 
 
  Contact JM-Mobile Contact us   © Copyright 2006 JM-Mobile Solutions, All rights reserved