Home
|
Ask Question
|
Interview Questions
|
Tech FAQ
s
|
Engineering
|
Company
|
Geek Forums
|
Interview Coaching
|
Online Quiz
|
Interview eBook
Code Base
Submit Code
Back
Oracle
PHP
Java
ASP.NET
C#
Delphi
VB.NET
Perl
ColdFusion
SQL Server
MySQL
C
C++
UNIX
AJAX
Flash
HTML
CSS
Java Script
VB Script
XML
Python
MS Access
MainFrame
Flash Code Base
•
Addition of Two Numbers Using User Defined Class
•
Alphabet Conversion
•
Assigning actions to an object and button
•
Creating Loops
•
Detect Flash Player Version
•
Detect Operating System
•
Generation of Duplicate Image
•
Generation of Random Number
•
Implement Custom Sort
•
Import Audio File
•
Simple Mathematic Operations (Round, Ceil, Floor, Square Root)
•
Simple Mathematic Operations (Add, Sub, Mul, Div, Mod)
•
Sorting and Reversing an Array
Code Samples
Flash
Detect Operating System
Code Resource
Author:
lavanyarani
Difficulty Level
: Beginner
Published:
10th Nov 2009
Read:
2730 times
Filed in:
Flash
Add Comment
Sponsored Links
This code helps you to detect the operating system on which you are working.
Sample Code
Step
-1
: Create an input box
and
give the
name
as “n”.
Step
-2
: Create a
button
with
the
text
on
it “click”.
Step
-3
: Select the
button
and
open the action panel
and
write the
following code
in
the script pane.
on
(
release
)
{
var
os
:
String
=
System
.
capabilities
.
os
.
substr
(
0
,
3
)
;
if
(
os
==
"Win"
)
r1.
text
=
"windows"
;
if
(
os
==
"Mac"
)
r1.
text
=
"mac"
;
if
(
os
==
"Lin"
)
r1.
text
=
"Linux"
;
}
Step
-4
: press ctrl+
enter
to test the movie.
Copyright GeekInterview.com
Next Article:
Detect Flash Player Version
Latest Code Samples
♦
Simple Mathematic Operations (Round, Ceil, Floor, Square Root)
♦
Simple Mathematic Operations (Add, Sub, Mul, Div, Mod)
♦
Addition of Two Numbers Using User Defined Class
♦
Import Audio File
♦
Alphabet Conversion
♦
Generation of Duplicate Image
♦
Implement Custom Sort
♦
Sorting and Reversing an Array
♦
Detect Operating System
♦
Detect Flash Player Version
Popular Code Samples
♦
Simple Mathematic Operations (Add, Sub, Mul, Div, Mod)
♦
Addition of Two Numbers Using User Defined Class
♦
Simple Mathematic Operations (Round, Ceil, Floor, Square Root)
♦
Generation of Random Number
♦
Detect Operating System
♦
Creating Loops
♦
Alphabet Conversion
♦
Import Audio File
♦
Generation of Duplicate Image
♦
Sorting and Reversing an Array
Related Code Samples
»
System Info using Java
»
Detect Flash Player Version
»
PHP Tender System
»
PHP WebSite Content Management System
»
Lock System using VC#.NET 2005
Post Your Comment:
Members Please Login
Your Name:
*
e-mail ID:
(required for notification)
*
Image Verification:
Subscribe
Popular Coders
#
Coder Name
Hits
1.
lavanyarani
32134
Active Coders
#
Coder Name
Codes
1.
lavanyarani
13
Refined Tags
Copyright © 2012 GeekInterview.com | All Rights Reserved