window sizes

liunx

Guest
I've got a flash file and I want it to load when people access my site. The flash file is 800x400 and I want the index page to automatically open up a smaller browser window that is 800x600 and then close itself leaving just the smaller popup.<br />
<br />
Also.. in flash I want to have a button going to a URL that is 712x570 but I don't know how give an action that tells the browser to open up a window without scroller bars, buttons and an address line. all of this AND at the resolution..<br />
<br />
Sorry for ALL the requests.<br />
Cheers.<br />
James.<!--content-->you need to use popups in java script and window.close in the script to close the other window<!--content-->Yeah i know but could someone direct me to an example of a script that can do that. I don't know how to write javascripts or do window.close fucntions or anything like that. <br />
<br />
cheers.<!--content-->http://forums.webdeveloper.com/showthread.php?s=&threadid=16179&highlight=window.close<br />
<br />
<br />
<br />
go here<!--content-->heres how to open a new window without scrollbars etc<br />
<br />
<script><br />
function openLog()<br />
{<br />
NewWindow=window.open('XXXXXX.htm', 'Log', <br />
'width=400,height=400');<br />
}<br />
</script><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:openLog()">See Web Log / Updates</a><br />
<br />
to have a close link<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:window.close('this')">Close</a><!--content-->should be javascript:OpenLog()<!--content-->Works a treat, thanks.<!--content-->no problem m8 anytime<!--content-->Originally posted by 96turnerri <br />
<script><br />
function openLog()<br />
{<br />
NewWindow=window.open('XXXXXX.htm', 'Log', <br />
'width=400,height=400');<br />
}<br />
</script><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:openLog()">See Web Log / Updates</a>That script has numerous errors/problems:<br />
<br />
1: You did not define your scripting language, try a tag like this: <script type="text/javascript"><br />
<br />
2: You used JavaScript in the href attribute. What happens when your users don't hae javascript enabled?<br />
<br />
This way would be much better:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"somepage.htm" onclick="window.open(this.href,'child','width=400,height=300'); return false;">link</a><!--content-->that is also another valid way, but i use my first stated method my site is a java enabled site<!--content-->huh??? :confused:<!--content-->doesnt matter<!--content-->Whatever... :rolleyes:<!--content-->oh ok you cant get into my site without java so the coding doesnt matter if they dont have java enabled.<!--content-->anyoe know what I could do to get a flash button to link to a window of my own proportions or a pop-up window.<br />
<br />
Basically I need a window that is 712x570 that has no address bars, buttons or scrollers to open when I click on a button in flash.<br />
<br />
I know no actionscript and my scripting knowledge is incredibly basic.<br />
<br />
Any help?<!--content-->Ok for flash:<br />
<br />
1-Open your flash file for your button<br />
2-Highlight you button you want to use for the pop up<br />
3-Press F9 to on the action panel, or right click and choose action<br />
4-Go into Expert mode, by clicking on the pull down menu in the top right corner that looks like 3 lines with dots beside them. And past this code exactly as it is:<br />
<br />
<br />
on (release) {<br />
getURL ("javascript:NewWindow=window.open('http://WEBSITE','newWin','width=712,height=570,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");<br />
}<br />
<br />
<br />
If you go back to normal mode the code need to be in 1 straight line, with no breaks. Where it says 'WEBSITE' put the location of the site you want to go to, but make sure to keep the http:// in front. Publush your movie, and that is it. <br />
<br />
No need to put any JavaScript tag in the html page or nothing, just that. If you want you can just use the swf file directly.<!--content-->ty p2bc i was after something simalar saves me starting a new thread nice one m8, thanks for looking at that site i did 4 richieno9 giving ur opinion cheers<br />
<br />
Rich<!--content-->tried.. couldn't go to normal mode.. Got this up instead.<br />
<br />
Scene=Scene 1, Layer=buttons, Frame=1: Line 2: String literal was not properly terminated<br />
getURL ("java script:NewWindow=window.open('http:// WEBSITE','newWin','width=712,height=570,left=0,top<br />
<br />
Scene=Scene 1, Layer=buttons, Frame=1: Line 3: Left side of assignment operator must be variable or property.<br />
=0,toolbar=No,location=No,scrollbars=No,status=No,<br />
<br />
Scene=Scene 1, Layer=buttons, Frame=1: Line 4: String literal was not properly terminated<br />
resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");<br />
<br />
Scene=Scene 1, Layer=buttons, Frame=1: Line 5: ')' or ',' expected<br />
}<!--content-->and then I re-read your post and put it all on one line. Oops.<!--content-->oh wait.. that doesn't work either.. For some reason when I click the link the whole line gets entered as a URL and it cant seperate the URL from the rest of the code.<!--content-->That is fine. <br />
<br />
Look at the picture.<br />
<!-- m --><a class="postlink" href="http://www.birkemusik.dk/test/flash.jpg">http://www.birkemusik.dk/test/flash.jpg</a><!-- m --> <br />
<br />
Where the word website is highlighted up at the top is where you edit the site.<!--content-->
 
Back
Top