Publishing my file & Popup window

Hi, I was hoping to get a little help here since I’m kindof new to Flash MX and just flash in itself. My problem has to do with publishing my file and getting it aligned correctly in the browser window.

My index page to my website has a little link that opens up a 640px by 385px browser window that cannot be scaled. I’ve been trying to fit my movie into that window but somehow I just cannot.

I’ve tried publishing it in different settings but I don’t know which ones to use. I’ve published my flash project as a .swf and .html file on various options but to no avail.

When it loads up in the 640px by 385px popwindow, the best I got was the movie centered with a border around it, which was not what i was looking for. All I need is to get my flash movie which is also 640px by 385px to fit exactly into the 640px by 385px popup window, if anyone can let me know how to achieve this, I’d really appreciate it, thanks alot.

http://www.kirupaforum.com/showthread.php?s=&threadid=5889

The search button does wonders :wink:

Uh, Okay, so I kindof answered my own problem. I went into someone else’s page and found out they had to set the BODY leftmargin=“0” topmargin=“0” marginheight=“0” marginwidth=“0”
in their html file in order to properly align their movie to their custom sized popup window.

That’s great and all so I edited my main page html file and it worked fine now. A new problem that has arised though is if I have to manually edit the html everytime i republish my file or if there was a way to do this in the publish settings in Flash? Anyone know?

Nope, if you republish over your old file you will have to re-enter the code.

Possible solutions:

  1. Save your fixed file into another html file with a different name, but links to the same movie. That way when you publish, the html file that gets outputted does not overwrite your modified margins file :wink:

  2. Save a .txt file with the body tag code you want in it, then when you publish your html file you can open it up then just copy and paste your new body tag into your new document instead of typing it all in.