Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : Scroll bar required


Steiner
6/1/2004 11:01:12 PM
Hello

I have been offered the following code to create a sized browser window from a
button link - but it does not support a scroll bar or nav buttons. Can someone
please let me know what code is missing?

on (press) {
param = "www.yahoo.com";
sUrl = "http://"+param;
wdth = "300";
hdth = "200";
pName="new_name2";
resx = System.capabilities.screenResolutionX;
resy = System.capabilities.screenResolutionY;
lft = resx/2-wdth/2;
tp = resy/2-hdth/2;

getURL("javascript:window.open('"+sUrl+"','"+pName+"','width="+wdth+",height="+h
dth+",top="+tp+",left="+lft+"');void(0);");
}


Steiner
6/2/2004 4:49:44 PM
urami_
6/2/2004 5:45:40 PM

[quoted text, click to view]

Sample how to add more parameters to it :

on (release) {
param = "www.yahoo.com";
sUrl = "http://"+param;
wdth = "300";
hdth = "200";
pName = "new_name2";
resx = System.capabilities.screenResolutionX;
resy = System.capabilities.screenResolutionY;
lft = resx/2-wdth/2;
tp = resy/2-hdth/2;

getURL("javascript:window.open('"+sUrl+"','"+pName+"','width="+wdth+",height="+hdth+",top="+tp+",left="+lft+",directories=no,location=no,menubar=no,resizable=yes,status=no,toolbar=yes,scrollbars=yes');void(0);");
}



--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button