getURL Question in Flash: By Patrick S

I am trying to make a .swf file load into a separate browser window using this method and I can’t get it to work.

Example:

Uni__Dock_Video.on (press) {
getURL(javascript:openNewWindo(‘rollOver02.swf’,‘unipop’,‘height=400,
width=400,toolbar=no,scrollbars=yes’));
}

I have a button named, “Uni__Dock_Video” in a Flash file.

I am assigning this code into a blank keyframe on a separate layer from the before-mentioned button

I have a file named, “rollover02.swf” that plays fine. This code is pointing to that file, “rollover02.swf” and it is in the folder with the rest of my files.

When I hit Ctrl+Enter in the file that has all this code, the .swf file that results works fine except that the new browser window that should show up (when I click on the button, “Uni__Dock_Video”), playing, “rollover02.swf” doesn’t show up.

Hence, a getURL Question in Flash.

if i was u i would put somthing like this on the button as action instead. (Actually i would change test.swf to test.htm and embed test.swf in test.htm.)

on(press) {
	getURL("javascript:window.open('test.swf','test','height=400,width=400,toolbar=no,scrollbars=yes')");
}

I belive this should work, otherwise great tutorials in kirupa site for things like this for example:

http://www.kirupa.com/developer/mx/centered_popup.htm

But if u want to do it your way then u have to add some java into your html file. For more info:

http://www.tutorialoutpost.com/count/118

But use kirupa tutorial style way, thats always the best. ;D

Cheers
MZA

and i have no idea why the forum posts height=4 00 instead of height=400 :smiley: