------------------------------------------------------------------------------------------------------------------------
[Kernel32 the underground army of digital hybrids]
This document was released by : Black Death
E-mail:roozbeh@mailbox.as
We may not agree with what you say, but We will defend to the death your right to say it.
Skill level:For beginners
------------------------------------------------------------------------------------------------------------------------
Extracting information from the client using flash:

sometimes it is helpful to know more about those who visit
your webpages,so you can actually control them a little bit
or use the information for your own good!!

javascript is one of the easiest ways you can gather informaion
about your visitors,but it is not exactly the easiest way to
do so.

Flash MX has introduced a new feature that gives you the scope
of gathering some information about the clients,but you can not
use this feature to extract as much information as you could
if you were using javascript.

This feature is the System capabilities which you can use to
extract information about the client's OS,Language,flash version,
Availability of audio encoders,Mp3 decoders,video encoders,....

As this is not that much complex,i will not discuss every
detail and just provide you with the action script you need to
add to your flash projects.

(you need to assign these expression to variables)

System.capabilities.os this will return the operating system of
the client(string).


System.capabilities.language returns the language of the clientnotice(the player can only detect 20 languages and if the language is detected other than this 20 languages it will return XU)(string)

System.capabilities.manufacturer returns a string containing "Macromedia"(cinstant) added to the name of the client's operating system

System.capabilities.hasMP3 returns a boolean (true/false)if the booleanis true it shows the Availablity of MP3 decoders

System.capabilities.version returns a string that shows the flash version


There are more values you can use but i do not have time to go over all
of them and there is no reason for doing so,you can probably take care of the rest.

-----------------------------------------------------------------------
by:Black Death Kernel32 web development unit
-----------------------------------------------------------------------