rss twitter

Posts Tagged ‘check’

So Germans don’t like Chrome / Safari?

We recently checked the latest 1000 visitors’ Browser (on each domain) and found out, that Germans tend to use the Firefox instead of using Safari or Chrome. Here’s the result:

Beautify Code Firefox IE 7+8 Safari Chrome
.de 71,4% 9,6% 9,3% 5,5%
.com 57% 7,8% 16% 16%

So what we can see is that international visitors are using alternative Browsers more often than our German visitors do.

Does anyone got an idea why? :)

Check Flash Player Version


Just a quick snippet to determine the visitor’s Flash Player Version (incl. OS and Version RC) in Actionscript 3. The detailed trace of all information covers Operating System, Major Flash Version and up to the 4th release version, e.g. 10.0.42.34 – the latest release yet.
Read more »

Check, if value exists in Array

This article shows how you can easily check if a specific value already exists in an Array in Actionscript 3.

Actionscript:

Actionscript:
  1. var doesExist:Boolean;
  2. var rndInt:int;
  3. var rndArr:Array = new Array();
  4.  
  5. var timer:Timer = new Timer(200, 15);
  6.     timer.addEventListener(TimerEvent.TIMER, fillArray);
  7.     timer.start();
  8.  
  9. function fillArray(event:TimerEvent):void {
  10.     rndInt = Math.floor(Math.random() * 15);
  11.     doesExist = rndArr.every(checkExisting);
  12.     doesExist ? rndArr.push(rndInt) : fillArray(null);
  13.     trace(rndArr);
  14. }
  15.  
  16. function checkExisting(element:*, index:int, arr:Array):Boolean {
  17.     return (element != rndInt);
  18. }

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs