all groups > flash actionscript > september 2007 >
You're in the

flash actionscript

group:

open new window using javascript in flash


open new window using javascript in flash braulio!
9/2/2007 9:30:52 PM
flash actionscript:
what is wrong with the following? I keep getting the 3 errors below. I have
checked and rechecked but can't find my mistrake.

on (release) {
getURL("javascript:newWindow=

window.open('http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress
..html','popper1',
'width=425,height=300,scrollbars,resizable');
newWindow.focus(); void(0);");
}

Errors are below:

**Error** Symbol=contact, layer=Layer 1, frame=1:Line 2: String literal was
not properly terminated
getURL("javascript:newWindow=

**Error** Symbol=contact, layer=Layer 1, frame=1:Line 3: ')' or ',' expected

window.open('http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress
..html','popper1',

**Error** Symbol=contact, layer=Layer 1, frame=1:Line 5: String literal was
not properly terminated
newWindow.focus(); void(0);");

Total ActionScript Errors: 3 Reported Errors: 3
Re: open new window using javascript in flash kglad
9/2/2007 9:39:53 PM
use attach code to display code.

Re: open new window using javascript in flash braulio!
9/2/2007 10:35:46 PM
i am now down to only 1 error. How the script looks and the only error
generated are below.

on (release) {
getURL("javascript:newWindow=

window.open('http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress
..html','popper1',
'width=425,height=300,scrollbars,resizable');
newWindow.focus(); void(0);");
}

error below:
**Error** Symbol=contact, layer=Layer 1, frame=1:Line 5: String literal was
not properly terminated
newWindow.focus(); void(0);");


Re: open new window using javascript in flash braulio!
9/2/2007 10:42:18 PM
Re: open new window using javascript in flash SpaceGirl
9/2/2007 11:03:58 PM
[quoted text, click to view]


make, to uncomplicate things, move the window opener into a function
that's inside the page that's hosting the Flash.

--

x theSpaceGirl (miranda)

http://www.northleithmill.com

-.-

Re: open new window using javascript in flash kglad
9/3/2007 5:13:10 AM
AddThis Social Bookmark Button