Click to See Complete Forum and Search --> : FLASH - set window size, surpress toolbar, menubar, and scrollbar


Larry Minutella
06-05-2003, 09:14 AM
I have created a link in a FLASH document. I need to set the parameters for the link so that:

1. the window opens to a specific size
2. the toolbar, menubar, and scrollbar are surpressed.

Thanks!

Khalid Ali
06-05-2003, 09:19 AM
Something along these line will work


1. use geturl function and call javascript from flash which will open new window. Like as:

geturl("javascript:openNewWindow('cat_enquiry.asp','thewin',
'height=400,width=400,toolbar=no,scrollbars=yes')")
2. Define function in the JavaScript code area which will open the window.

<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>

Larry Minutella
06-05-2003, 09:34 AM
In the FLASH interface wizzard I added this code:

javascriptpenNewWindow('projects_qvs.htm','untitled','height=400,width=400,toolbar=no,scrollbars=no' )

In the HTM page that houses the FLASH swf file I place this code after </head>.

<script language="JavaScript">
function openNewWindow(projects_qvs.htm, untitled, 'height=400,width=400,toolbar=no,scrollbars=no) {
newWindow=window.open(projects_qvs.htm, untitled, height=400,width=400,toolbar=no,scrollbars=no); }
</script>

The result is a blank browser window with the code in the address bar?????

-Larry

Khalid Ali
06-05-2003, 09:46 AM
Cripes..the forum actually screws up some text..
the correct text is

javascript:openNewWindow

Larry Minutella
06-05-2003, 09:49 AM
I see... I should of caught that!!!! Let me give it a try. Thanks!

Larry Minutella
06-05-2003, 10:01 AM
The same result happens except the browser window is white - with no error message.

Should I send over the FLASH and HTM files?

Earl
06-05-2003, 10:32 AM
This is the script I use for my flash sites;

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htm

Khalid Ali
06-05-2003, 10:41 AM
Originally posted by Larry Minutella
The same result happens except the browser window is white - with no error message.

Should I send over the FLASH and HTM files?

Well you should follow the tutorial in falsh how to create a button...because the code snippet I posted above does work.
I have used it for few yrs...

This is not a place for a full fledge tutorial on how to create motion or add events to a button in flash.