Blogroll

This blog is created for education about engineering students.All the engineering students are get free downloadable books here. not only books and also different software also available here

5. Detecting the Player Version


5. Detecting the Player Version


Procedure:
step 1: Open flash 8
step 2: Select flash document
step 3: select 1st layer, 1st frame on that document and write source code on Actions Frame
step 4: To check output press ctrl+enter(test movie)

Source code:

var playerparts=_root.$version.split(" ");
var playeros=playerparts[0];
trace("the player operating system="+playeros);
var playerversion=playerparts[1].split(",");
trace("the player version="+playerversion);
var playermajor=Number(playerversion[0]);
trace("the playermajor version="+playermajor);
var playerminor=Number(playerversion[1]);
trace("the playerminor version="+playerminor);
var playerbuild=Number(playerversion[2]);
trace("the playerbuild="+playerbuild);
var playerpatch=Number(playerversion[3]);
trace("the playerpatch="+playerpatch);

No comments:

Post a Comment

Total Pageviews