About our company API for flash games

Stargame SRL company has been present on the game market for 5 years.

During this period our flash games rose to fame in CIS countries, Europe, America and Asia. We don't stand still. We refresh and improve our games to make them better and better.

We offer you simple and easy flash games integration on any website. What is our advantage? It's a peculiar system with unique mathematics which complies with the requirements of a game site.

If you start working with us, you will get a lot of satisfied clients and daily income.

GENERAL SCHEME

Do you want to run our flash games on your website? There's nothing easier! Interaction between our games and your website is very simple. You publish our flash games on your website. That is provided by a very simple and intuitive API. A game list is created by a request to our server. After that you get a game list in a convenient to you format. Then you publish on your website the games you see fit.

We have provided several categories of games: colfire1, colfire2, igrosoft, aristicrats. Each category has its own specifics.

Running a game in the demo mode doesn't require a remote login or registration. You only need to send a demo session to flash vars. The values for the demo mode: sessionid = 777, key1= 777, key2=777

To get a game list in a convenient format you need to send a request to our API "Flash games". Then you publish on your website the games you see fit.

 

INTERACTION BETWEEN A FLASH GAME AND A WEBSITE

 

To create a flash game showcase you need to send a request to the server via url https://admin.stargamecasino.com/remote_games_list. This method returns all available games in the XML format.

<root>
 <data>
   <actualdate>2013-08-23 12:31:16</actualdate>
   <gamescount>101</gamescount>
   <config>http://admin.stargamecasino.com/flashconfig.php</config>
 </data>
 <gamelist>
   <family id="6" name="coolfire 2">
     <game>
       <id>178</id>
       <name>MobsterCash</name>
       <icon>http://admin.stargamecasino.com/img/tote/games/cf_all/178.jpg</icon>
       <url>http://admin.stargamecasino.com/tote_opbetting3?gameid=178&x=536195399</url>
     </game>
     <game>
       <id>168</id>
       <name>Hot Volee</name>
       <icon>http://admin.stargamecasino.com/img/tote/games/cf_all/168.jpg</icon>
       <url>http://admin.stargamecasino.com/tote_opbetting3?gameid=168&x=1784685157</url>
     </game>
     ...
   </family>
   ...
 </gamelist>
</root>
        

 

To launch games you should save our loader (Slots.swf for flash games and the certain SlotsAristocrat.swf for the Aristocrat type of games (*see Appendix 1* in the end of the document)) that is attached to the documentation on its server. In the example below the loader is located in the folder /design/flash

The example of JS script for game launch

<script type="text/javascript">
  functiondoStartGameAll( gameid,login,pass) {
  varcommandline = "";
  $.ajax({
    url: " /frame?gameid=" + gameid,
    type: "GET",
    success: function(results){
    commandline = results;
  },
  complete: function(){
    $.facebox(commandline);
  },
    error: function(xhr,err){
  }});
</script>
    

The example above opens the facebox window with the page containing a flash loader. You should send 4 parameters to this page: sid, key1, key2, config.

User session parameters for demo sites: sid 777, key1 777, key2 777, config http://admin.stargamecasino.com/flashconfig.php

Flash loader page example

<scripttype="text/javascript">
  functionthisMovie(movieName)
  {
    if (navigator.appName.indexOf("Microsoft") != 1)
    {
      return window[movieName];
    }
    else
    {
      return document[movieName];
    }
  }

  functioncallFlashMethod()
  {
    document.getElementById('flashapp').externalClose();
  }

  functionclosePopup()
  {
    callFlashMethod();
  }

  $.facebox.close();
    return false;
  }

  functionclosePirates ()
  {
    return false;
  }
</script>
    



Flash game object

<div>
  <object id="_MainApp" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<? echo $width;?>" height="<? echo $height;?>" wmode="direct" allowscriptaccess="always">
    <param name="movie" value="/design/flash/<? echo $gamename;?>?time=13793337790" />
    <param name="allowfullscreen" value="true" />
    <param name="wmode" value="direct" />
    <param name="allowscriptaccess" value="always" />
    <param name="flashvars" value="SID=<? echo $sid;?>&KEY1=<? echo $key1;?>&KEY2=<? echo $key2;?>&gameid=<? echo $gid;?>&config=<? echo $config;?>" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" id="flashapp" wmode="direct"
    allowscriptaccess="always" allowfullscreen="true" data="/design/flash/<? echo $gamename;?>?time=13793337790"
    width="<? echo $width;?>" height="<? echo $height;?>"
    flashvars="SID=<? echo $sid;?>&KEY1=<? echo $key1;?>&KEY2=<? echo $key2;?>&gameid=<? echo $gid;?>&config=<? echo $config;?>" >
    <param name="wmode" value="direct" />
      <!--<![endif]-->
      <div>
      <h3>_MainApp</h3>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>
</div>
    

 

THE MOST POPULAR GAMES

 

To get new flash games you need to send a request to the server https://admin.stargamecasino.com/remote_games_list_new. The data received as a response have the similar format but each nod (game description) contains the field isaristocrat:

<game>
  <id>207</id>
  <name>50Dragons</name>
  <icon>
     http://admin.stargamecasino.com/img/tote/games/cf_all/207.jpg
  </icon>
  <isaristocrat>1</isaristocrat>
  <url>
     http://admin.stargamecasino.com/tote_opbetting3?gameid=207&x=117721050
  </url>
</game>
    

The value isaristocrat=1 means that the game falls into the type Aristocrats and its implementation differs from implementation of regular flash games.