-
I'm having a bit of a javascript problem. I'm trying to embed my .swf file into a pop-up window. The problem is that when I customize the pop-up window <Title>, the .swf file doesnt load. If I dont customize the pop-up window, the .swf file loads but the title bar shows the directory path of the file (and that I do not want to show).
Can anyone help me embed the .swf file into the pop-up window while still being able to customzie the Titlebar. Thanks in advance. By the way, I'm working in Flash 4
-xample
-
post the script your using
-
<script language="JavaScript">
function openWin() {
myWin=open("blah.swf", "Name", "width=750, height=375, top=250, left=200, scrollbar=no");
myWin.document()
myWin.document.write("<TITLE>Titlebar Name</TITLE>");
}
script>
-and then I reference that in the <Body> tag of my HTML script.
When the myWin.document.write line of the script is there, the window pops up with Titlebar Name in the titlebar, but the .swf file won't load. Take out the myWin.document.write line and the .swf file loads, but with the directory path in the titlebar.
-
-
Why are you opening the .swf directly? If you embed it into an html file, then open that html file with javascript - you'll avoid this problem.
-
The script tag was closed </script>. It's the process that I'm concerned about
-
So, publishing in HTML fixed that titlebar problem, but the movie doesnt align in the window. It is slightly set off the top left corner. I've played around with the different HTLM publishing settings, but nothing seemed to solve this problem. So the new problem is getting the movie to fit-to-size exactly in the pop up window. Any suggestions?
-xample
-
Try the "Remove Browser Margins Extension" available at http://www.macromedia.com/exchange/flash
-
I would love to install that extension. That would solve all the problems, but I'm working in Flash 4 until this project is over, and only then will I be able to afford Flash 5. So for now I need to figure out how to eliminate those margins the hard way. I knew it wouldnt be an easy quick fix. What now?
-xample
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|