PDA

View Full Version : Helping using a GetURL with Javascript in Projector File


edoky145
07-25-2007, 07:45 PM
Hello all,

I am trying to open a browser window from flash projector using the following actionscript

on (release) {
getURL("javascript:var NewWindow=window.open('converse.htm', 'Converse', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,width=419,hei ght=365,left=523,top=225');NewWindow.focus();")
}

I think i have 2 problems.

1. I get the following error message "Safari can’t run the script “var NewWindow=window.open('converse.htm', 'Converse', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,width=419,hei ght=365,left=523,top=225');NewWindow.focus();” because Safari doesn’t allow JavaScript to be used in this way."

or

2. I get the security warning message that so and so file is trying to access the following local file.

Is there a way to do this? Any help would be greatly appreciated. I have attached the file here.

http://www.edleedesign.com/my_project.zip

Thanks all.

_Aerospace_Eng_
07-25-2007, 09:52 PM
I'm pretty sure there is no way to do this because its not a web page, its an application. You may have to develop an apollo application. More info here: http://labs.adobe.com/wiki/index.php/Apollo