Search  

SHORTCUT ACTIONSCRIPT - GETSTATS - DATE, TIME, USER'S SCREEN DETAILS AND MUCH MORE

HomeBrowse CategoriesFlashApplications and UtilitiesUtilitiesShortcut ActionScript - getStats - Date, time, user's screen details and much more

This is a way of accessing information about the end user. You can do anything with the information this neat little function returns.

Examples of info that it provides are:
 - OS - Returns the operating system
 - Language - Returns the language in plain text
 - Day - Returns the day as a word
 - Hours - Returns the amount of hours (24h clock)
 - TimeOffset - Returns the Offset as configured on the user's computer
 - Date - Returns the Day number (e.g. 1-31)
 - DateSuffix - Note: This should be used after Date and will return th, st, rd or nd as appropriate
 - Mins - This is the number of minutes
 - Month - This is the month *name*
 - MonthNum - This is the month *number* (1-12)
 - Year - This is the 4-digit year number
 - ResolutionX - This is the width of the screen in pixels
 - ResolutionY - This is the height of the screen in pixels
 - DotsPerInch - This is the DPI of the user's screen
 - PixelAspect - This is the Pixel Aspect Ratio of the user's screen

You can simply include the file (either via AS or copy and pasting the code) and use this function: getStats(“OS”;)

Ideal for cross-compatibility, browser research (send the data back to the server?), integration and simply some welcome text.

Optional addition

To minimize file size, the file is not set up to work with all languages by default, you will need to add them. This is generally not necessary. The next bit will explain how you add them.

There is literally an if statement that you can use as a template, you just need to add them on if you need them. Don’t add them if you don’t need to because they add to the file size (which is minimal at the moment).
Language 
Tag
Supported Countries and Tags

English
en
United States = US, United Kingdom = UK

French
fr

Korean
ko

Japanese
ja

Swedish
sv

German
de

Spanish
es

Italian
it

Simplified Chinese
zh
PRC (Simplified Chinese) = CN

Traditional Chinese
zh

Taiwan (Traditional Chinese) = TW

Portuguese
pt

Polish
pl

Hungarian
hu

Czech
cs

Turkish
tr

Finnish
fi

Danish
da

Norwegian
no

Dutch
nl

Russian
ru

Other/Unknown
xu
Posted about 1 year ago

useful

Posted 12 months ago

STOP THAT ! Are you in my machine right now….!?

Posted 12 months ago

ehehehehe! Nice file! ;D

Posted 12 months ago

Thanks :)

Posted 12 months ago

Nice I like this one!

Posted 12 months ago

Nice! Can you make this file detect the browser and/or internet connection speed? That would be really useful.

Posted 12 months ago

Resolution: 1360×768 WideScreen Baby YEAH !!!

if (resolution = 1360x168){
     trace("That is Unbelievable");
}
else{
     trace("Upgrade Please.")
}

Just Kidding, I just dropped some money on upgrading my broken monitor and I decided to go wide, plus it was on sale! I really like it though, and I thought it was funny that this thing could actually tell

Posted 12 months ago

OOPS It cut me off, its supposed to be ‘768 )’, and then I meant to say that this is quite useful in checking if your user can correctly view your site, and would be a good feature. If it didn’t meet your standards it would be easy to set up a variable to where it checks, you dont meet, and a pop up comes up saying ‘Best Viewed At: .....’ . I may soon buy this, good thinking!

Posted 12 months ago

Windows Vista and your computer is set up in the language Unknown language

with a GMT offset of -60 :?

Nice file anyway

Posted 12 months ago

Oh. Can you send a screenshot. You may be working in a beta release of flash that doesn’t work with it. And yes, I forgot to mention how to add more languages to the file. At the moment it comes prebuilt with a few of the most common.

I added it to the description

There is literally an if statement that you can use as a template, you just need to add them on if you need them. Don’t add them if you don’t need to because they add to the file size (which is minimal at the moment)

@Everyone, thanks :)

Posted 12 months ago

useful

Posted 12 months ago

i would like to, but i don’t have your email address, and your homepage says dont mail me.

but i’ll post it here then

Free Image Hosting at www.ImageShack.us

Posted 12 months ago

Resolution: 2880 * 900 (two widescreens) :-)

Nice file.

Posted 12 months ago

Thanks!

The way to change Unknown Language is just at the top.

Posted 11 months ago

well done! i like it! Nice file.

Posted 11 months ago

Hi,

does this come with the source AS as I need to collect this information and use it to adjust my flash file settings and layout.. (like an autosizer and autorotater if the user selects they have their monitor in portrait view.)

Please get back soon.

thanks

Posted 10 months ago

Yes. It comes with everything you need.

Posted 9 months ago

nice

Posted 8 months ago

Cool file! But when I publish the swf movie, only Safari can read the descriptive text and the stats. Firefox, Internet Explorer will not show all the text. Any ideas? Thanks so much for a great utility!

Posted 8 months ago

That’s strange. I’ve seen no problems with it at all. Can you send me a screenshot or something? I’ve tested it in all 3 main browsers. I know this sounds silly but are you sure you have Flash installed?

Posted 7 months ago

yay this is great!

Posted 6 months ago

Thanks for the good reviews, guys!

Posted 16 days ago