PDA

View Full Version : flash and javascript problem



SoloDesignz
September 28th, 2003, 05:07 PM
Im trying to access javascript from flash, some reason this isnt working.... can anyone help me out? thanks alot


<SCRIPT language=javascript>
<!-- winBRopen BEGIN
function winBRopen(theURL, Name, popW, popH, scroll, resize) { // V 1.0
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',t op='+winUp+',scrollbars='+scroll+',resizable='+res ize+''
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}
// winBRopen END -->
</SCRIPT>


that "about is really "j a v a s c r i p t :" wont let me type that in w/o spaces

getURL("javascript:winBRopen('http://asdsadsa.com','Solo Temp','800','600','yes','no')");

eyeinfinitude
September 28th, 2003, 05:11 PM
Where did you place the javascript? Hopefully you placed it in the html of the page you're tryint to launch this pop-up.

SoloDesignz
September 28th, 2003, 05:27 PM
yeah i placed it in the page of the .swf file that is launching it

lostinbeta
September 29th, 2003, 01:13 AM
Could possible be the 'Solo Temp' line. Window names are only allowed to be 1 word that consists of the characters 0-9 and A-Z and a-z. You can also use an underscore which you can use to make 2 words, such as 'Solo_Temp'.