This content has been marked as final.
Show 3 replies
-
1. Re: Pop up windows
derobinson Jul 6, 2006 7:35 AM (in response to jasper24)It's usually not recommended to do that, but all you have to do is point your URL directly to the SWF and not to an HTML file.
That being said, you may be able to address some of your problems in the HTML that you won't be able to address loading the SWF directly. For starters, add this to your BODY tag to get rid of browser padding:
leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
You can also do this with CSS.
Hope that helps! -
2. Re: Pop up windows
jasper24 Jul 6, 2006 7:46 AM (in response to jasper24)I think I'm getting closer... keep in mind I'm a complete newbie.
So right now, if I open the swf of my main movie and click the appropriate button, the pop-up window opens, but I get a message "IE doesn't know how to handle this type of file", and gives me the option of downloading. Despite the fact that the pop-up SWF loaded correctly and functions.
If I bring the main swf into my index page and preview it in the browser, the pop-up window doesn't open at all. I assume I'm missing the appropriate javascipt in my index page?
This is the script I've attached to the button in the main movie:
on (release) {
getURL ("portfolio/ad.swf");
}
Help! Thanks! -
3. Re: Pop up windows
derobinson Jul 7, 2006 11:52 AM (in response to jasper24)Actually, at the moment, you have no Javascript at all. Really, in the first instance (when you are running the SWF file locally), you're viewing your Flash movie in the stand alone player. when you click your button, your OS is looking for the application needed to open a SWF file (which is usually registered as your browser). It opens this application, thus spawning a new window, but this has little to do with your code.
To get a true browser pop-up window (a new browser window spawned from another browser window), you will need to use some Javascript. One sulotion is here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=288&threadid=1150247&hi ghlight_key=y&keyword1=popup%20window
You can search the forums for "popup window" and get half a dozen different ways of doing it.
Good luck!