-
i tried stipping out the code and rewriting it the way that me222 has been saying, i'm hoping that i have just been missing something small, if it doesn't work now i don' know what to do.
-
The Definition of...
I hate to say this, but still doesn't work. No full screen anymore though : )
-
it should work now(fingers crossed)
-
The Definition of...
Aiight, it works. So what did you do?
-
the button inside flash needs to have
on (release) {
getURL ("javascriptpenNewWindow('http://blah.html,'thewin','height=400,width=400,toolbar=n o,scrollbars=no') ");
}
and then the javascript inside the <head> tags of the window that holds the swf
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
voila
-
the button inside flash needs to have
on (release) {
getURL ("javascript:openNewWindow('http://blah.html,'thewin','height=400,width=400,toolbar=n o,scrollbars=no') ");
}
and then the javascript inside the <head> tags of the window that holds the swf
script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
script>
voila
-
What works for me
I'm a little late to this thread but I thought I would put my 2 cents in.
This is the script that I wrote to get around this MS blunder:
function popit(url,w,h) {
if((navigator.userAgent.indexOf("Mac",0) > -1) && (navigator.userAgent.indexOf("MSIE",0) > -1)) {
w = w - 16;
h = h - 16;
}
eval("PopWin=window.open('" + url + "', 'MainPopWin', 'width=" + w + ",height=" + h + ",resizable=0,screenX=40,screenY=40,left=40,top=40 ');");
}
I like this script because it will work with whatever size window I want to pop-up, and doesn't require an intermediate page or additional javascript code. I haven't tested it widely but has worked for all the versions of IE and NS (on Mac and Win) that I have tried it with.
Mac
-
SImple Alternative
Just set the swf in the page you are displaying to be 100% by 100%. This isn't a problem for most swfs and should display fine regardless of browser. If you have a swf that has to be the exact pixels of the stage you will have to use a more complex version as talked about earlier in this thread.
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
|