Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 448

Programming actionscript 3.0
Table of Contents

Advertisement

return tempArr.join("&");
}
</script>
The code begins by creating a temporary array that will hold all the name-value pairs in the
navigator object. Next, the navigator object is looped over using a
loop, and the data
for..in
type of the current value is evaluated to filter out unwanted values. In this application, we are
interested only in String or Boolean values, and other data types (such as functions or arrays)
are ignored. Each String or Boolean value in the navigator object is appended to the
tempArr
array. Next, the browser's screen object is looped over using a
loop, and each numeric
for..in
value is added to the
array. Finally, the temporary array is converted into a string
tempArr
using the
method. The array uses an ampersand (&) as a delimiter, which
Array.join()
allows ActionScript to easily parse the data using the URLVariables class.
448
Client System Environment

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents