Pop-up window

Ok, I got everything to work but i can get my .swf file to fit the pop up window. it is the exact size as the window.
please help!

did you get rid of the margins and all that good stuff?

on what? the pop up window? I got rid of all the good stuff

Could you post a link to show us?

here is the link to one of the sections. Click on pictures.
http://www.rawguru.com/gurumov.html

here is the script i used for everthing

for my button
[AS]on (release) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “http://www.rawguru.com/picturemov.html”;
target_winName = “kirupa”;
width = 250;
height = 200;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}[/AS]
for the frame
[AS]Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL(“java****script:var myWin; if(!myWin || myWin.closed){myWin = window.open(’”+url+"’,’"+winName+"’,’"+“width=”+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top=’+((screen.height/2)-("+h/2+"))+’,left=’+((screen.width/2)-("+w/2+"))+’"+"’)}else{myWin.focus();};void(0);");
};[/AS]
and the html file

<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">

<TITLE>picturemov</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003--><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="350 HEIGHT="300" id="picturemov" ALIGN="">
 <PARAM NAME=movie VALUE="picturemov.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="picturemov.swf" quality=high bgcolor=#FFFFFF  WIDTH="350" HEIGHT="300" NAME="picturemov" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

</OBJECT>
</BODY>
</HTML>

[EDIT by kax]Please use the proper tags, [AS][/AS] and [PHP][/PHP], when posting code.[/EDIT]

What are the width and height of your swf? It looks like it’s a lot bigger than 250x200.

my swf is 350 by 300 this is how it looks when i plugged in those numbers
http://www.rawguru.com/gurumov.html

i dont get why doesnt my swf touch the side of the pop up

I looked at the HTML coding of that page that opens up in the pop up and I noticed that you didn’t remove the margins. In your HTML change your body tag to this.

<BODY bgcolor="#FFFFFF" topmargin="0" leftmargin="0">

i wanted to load this swf on top of my page when people clicked on pictures and it loaded on top but none of the buttons worked because the section was loaded into the main movie.
is there another way to view this picture gallery when a person clicks on a button.

o ok
thanks

I did that and it’s still the same thing

Take a screen shot of it and show me what you’re talking about. This is what I see.

thats what i see too

when i view my swf by itself it looks like it’s 350X300 but not in the pop up. i want it to fix exactly. in the button action do i change this something else

target_winName = “kirupa”;

Ok now I know what you’re talking about, but I’m not sure if this is a the problem or not, but take a look at the html code for that pop up page. This is what you have.


 WIDTH="350 HEIGHT="300" id="picturemov" ALIGN="">

There’s a quotation mark missing after 350. I think that’s what’s screwing up the sizes.

finally. it FITS. i would have never seen that. Thanks soo much! You’re a pro. Now i can go to sleep peacefully. gnight
Happy flashin’
Alex

You’re welcome. :stuck_out_tongue: