Skip to main content

Screener

What is Screener​

  • Will select automatically the Flash player between FlashPlayer and ExGame on smartphone device, depending if the device has FlashPlayer plugin installed.
  • See details about ExGame here .

Usage​

The Screener will run by adding the following HTML.

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<title>screener sample</title>
<style type="text/css">
body {
margin:0; padding:0;
}
#main {
display: -webkit-box;
-webkit-box-align: center;
-webkit-box-pack: center;
}
</style>
</head>
<body>
<div id="main">
<div id="container"></div>
</div>
// Path to the latest downloaded ExGame (jj.js)
<script src="?url=http%3a%2f%2fsample%2ecom%2fjj_ver%2e1%2e0%2e14%2ejs"></script>
// Path to screener.min.js
<script src="?url=http%3a%2f%2fsample%2ecom%2fscreener%2emin%2ejs"></script>
<script>
var container = document.getElementById("container");
new Screener({
// Runtime priority
     player: ['FlashPlayer', 'ExGame']
})
.play('?url=http%3a%2f%2fsample%2ecom%2fexample%2eswf', container, {
// Settings for FlashPlayer, swf width and height
swf: {
width: 240,
height: 240
},
// Settings for ExGame, Same configs for ExGame
exg: {
scale: 1.5
}
});
</script>
</body>
</html>

Setting the runtime priority​

Following are setup example and expected behavior

Runtime PriorityAndroid2.2 or laterAndroid4.0 or later devices without FlashPlayer installed
player: [ 'Flash Player', 'ExGame' ]Played on Flash PlayerPlayed on ExGame
player: [ 'Flash Player' ]Played on Flash PlayerWill inform the user that it's device is not compatible

About Displayed Information​

  • Will be re-directed to the unsupported Flash Player device announcement page in Mobage.

Notice​

  • Recommend to use the latest Exgame for Android devices.
  • ExGame will not initialize on a unsupported environment regardless to its runtime priority settings.
  • What is Screener
  • Usage
  • Setting the runtime priority
    • About Displayed Information
  • Notice