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

8: Detecting Display Settings

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 resX=System.capabilities.screenResolutionX;
var resY=System.capabilities.screenResolutionY;
var winw=200;
var winH=600;
var winX=(resX/2)-(winW/2);
var winY=(resY/2)-(winH/2);
var jscode="javaScript:void(newwin=window.open('http://www.yahoo.com',"+"'newwindow','width="+winW+",height="+winH+","+"left="+winX+",top="+winY+"'));";
_root.getURL(jscode);

No comments:

Post a Comment

Total Pageviews