Locking The Window Size
hey all, looking to lock the window size, of the htm pages that hold the swfs. i know there is a way to do it an i have it at home. only thing is im not at home. does anyone have the script that locks the browser window size. or know where i can get this.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 10-14-2005, 05:31 PM
View Complete Forum Thread with Replies
Sponsored Links:
Locking Window Size On .swf And .exe
I'm a super shiny newb at this so I apologize for the simple queston but I figure this is the place for it.
I am trying to lock the window size of a published .exe or .swf
I've looked up the question here and it seems locking with JavaScript is the answer if publishing for HTML but that is not my aim.
I need to be able to publish .exe for CDs or hand off a .swf for someone else to post and I need them to be as unalterable as possible.
I'm using MX 2004 if that makes a difference.
Thank you in advance. I've only been doing Flash for 2 weeks and I already like you people.
View Replies !
View Related
Locking Window Size....
Hello,
I'm still beavering away on my first flash site.
Very simple question(s). - How do I specify the size of window that my flash site appears in (in explorer) - and also - how do I stop people from resizing the window (most flash sites i've seen appear inside a window which cannot be enlarged)?
Any help appreciated.
Thanks.
View Replies !
View Related
Locking Screen Size + More. More More :)
Hello everyone. As my first post here, I'd like to really thank everyone who gives the new people a hand, and not hoarding all the information to themselves. Thanks!
On to the questions:
1). when I exported my flash to a .EXE file, by default, the 'Loop' option is checked under the CONTROL menu. How can I change this so that the movie does not loop automatically when the user runs the program?
2. Secondly, I would like to be able to lock the window size. Currently when playing the movie, the user is able to resize the window and see 'outside' of the movie... ie: the white background (whereas all they should be seeing is a black background).
3. When my movie is running, the default window size that opens is too small, and the user has to drag the bottom part of the window downwards (to extend the window larger) in order to see the whole movie. When the movie opens in it's default window size, the user cannot see the text on the bottom of the screen. However, when they make the movie fullscreen, everything is normal. Ideas?
Once again, I really thank you for all your help! You're the greatest!
[Edited by hca_god on 01-20-2002 at 11:45 PM]
View Replies !
View Related
Locking Stage At Certain Size
Hello,
currently designing this site here:
http://www.theplayground.net.au/cc3
The trouble is that when you resize the window to 800 x 600 or smaller, the navagation runs over the logo (top left - christopherchris) and the contact details run over the centered images.
Im using this code to keep the background image to the size of the browser and to keep the logo and contact details anchored:
function initScale() {
screenInitWidth = 1200;
screenInitHeight = 800;
_root.screenInitWidth = 1200;
_root.screenInitHeight = 800;
bgImage_mc._x = screenInitWidth/2;
bgImage_mc._y = screenInitHeight/2;
bgImage_mc.initWidth = bgImage_mc._width;
bgImage_mc.ratio = bgImage_mc._height/bgImage_mc._width;
var stuff = new Object();
stuff.onResize = function() {
stretchIt();
};
function stretchIt() {
if (zoomedIn == false) {
//image
screenRatio = Stage.height/Stage.width;
if (bgImage_mc.ratio>screenRatio) {
bgImage_mc._width = Stage.width+1;
bgImage_mc._height = bgImage_mc._width*bgImage_mc.ratio+1;
} else {
bgImage_mc._height = Stage.height+1;
bgImage_mc._width = bgImage_mc._height/bgImage_mc.ratio+1;
}
}
//anchored elements
main._x = Math.round(0-((Stage.width-screenInitWidth)/2)+60);
main._y = Math.round(0-((Stage.height-screenInitHeight)/2)+30);
contact_mc._x = Math.round(0-((Stage.width-screenInitWidth)/2)+60);
contact_mc._y = Math.round(Stage.height-((Stage.height-screenInitHeight)/2)-115);
}
Stage.addListener(stuff);
stretchIt();
Stage.scaleMode = "noScale";
}
Has anyone got an idea on how I can add a script to this code to prevent the stated problem from happening?
Any ideas really welcome!
If you need more info, let me know!
Thanks in advance
B
View Replies !
View Related
Locking Window
Hey all. Just one question. How do I lock the .swf window so that a user cannot resize it and see things that they aren't supposed to see?
Thanks in advance!
View Replies !
View Related
Locking Window Sizes
How might I go about making it so that when my Flash window pops up, its size is unalterable?
Also could this be applied so that on my HTML page, the embedded Flash presentation is of a fixed size?
Thanks!
View Replies !
View Related
Locking/resizing Window
How can i get my flash site to open in a window that is exactly the same size, can't be resized and does this in both netscape and internet explorer? I can lock the window off at 800x600 which is the size of my movie, but this is unpredictable because the person viewing it may/maynot have the Address/navigation bars up.
Any advice?
is there an extension for dreamweaver? Where can i get it?
Thanks in advance
View Replies !
View Related
Window Size...
OK, here is the deal, I want to post a flash animation on the net but my host requires banners...I found that I can get out of having to have the banners if I link directly to the swf. However, when I do this, the size of the swf is controlled by the size of the browser window, can anyone tell me how to give the window a set size. Im not sure if that is strictly flash actionscripting or some javascript. Any help would be greatly appreciated.
Thanks,
Danny
View Replies !
View Related
Window Size
I have a prob when i make a FLASH Moive when i start anything i go right 2 the border`s of the stage but when i preview my movie it`s not @ the edge of the stage but a little in from the edge`s... i dont know if u will B able 2 understand what im saying but hopefull some 1 out there might =)
Thanx again pep`s 4 taken the time 2 read this post.
View Replies !
View Related
WINDOW SIZE?
i'm building a website and i have the index as the first page of course and when you click the enter button i want a new window to pop up leaving the index on the original page....i got that part correct....but i want the new window that pops up to be the size of the flash movie automatically....it opens now half open viewing half the page, and the user has to expand the page to view it. how can i size my new window to be the size of the flash movie??
View Replies !
View Related
Size A Pop Up Window?
Hi all
I’m launching an swf in a pop up browser with no toolbar etc. the problem that I’m having is that the file path is showing at the top of the browser (the title bar I think), I just want the name – no path. I have also put the swf into a html page and named it – that works fine but it won’t let the swf resize at different screen resolutions.
Any help would be great!
mbt
View Replies !
View Related
Window Size
I am having trouble with people clicking on the maximize button and then when my movie goes to the next (scene or movie - I tried both) it goes back to the original size. Is there some scripting that I can do to keep this from happening?
View Replies !
View Related
Window Size
Is it possible to launch a projector full screen then have a button that loads a swf file with a specific size. Say 400x300 and have it keep that size not scaling to a % of the main movie?
Thanks,
Jax
View Replies !
View Related
Window Size
I wondered how I can make a flash movie fit into a popup window (let's say about 550x400 pixels)
like done in this example
http://www.brokensaints.com
any ideas?
thx in advance
View Replies !
View Related
Window Size
When you are loading the a URL in a new window is there a way to make a specific size window such as in Javascript? If so could i get the actionscript for that please.
View Replies !
View Related
Set Window Size
heyhey,
when i link to a url in a new window (window=_blank), how can i control the size of the new window? (eg. make it 300 x 300, without the possibility to resize it, a set steady windowsize, so to speak :-)
greetz
View Replies !
View Related
Window Size
what size should i make my window i thought about going to scale of the computers sizes like in scale with 8/6. Well anyway i want a signle page site that will fit into the browser window without any real adjusting. whats the best window resolution to use. 740/400 maybe i dont know
View Replies !
View Related
Window Size
why, when in the application flash, does the flash file window auto fit to the size of the movie, but in html it doenst? is there an html code to do that?
View Replies !
View Related
WIndow Size
can someone inform me on how to change the size of the browser window so the viewer of the website cannot change it?
I have searched for script in google but cannot find anything :S
cheer's
View Replies !
View Related
Help With Window Size
im building my home page in flash MX and would like to have the site come up as a non-expandable window and not in a html page like it does at the mo!
i have a intro page which comes up in my internet explorer, but when i click the enter button my site comes up in internet explorer as well, but i would like it to come up in its own window which would be 800 x 600, which is what the file is,
any help would be great!
View Replies !
View Related
Window Size..
so as simple a question as this may be, here goes....
i do i keep the browser window the same size as my site i.e. my site is designed to be 600 x 400 but when it opens in the browser ithe window opens to 1024 x 768 or what ever the screen size is..
any insight would be appreciated...
View Replies !
View Related
Window Size
I want to lock this page size to 800x600. I have seen this done before many times. Can any one help? This is just a sample of my html page.
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>WordBox</TITLE>
</HEAD>
<BODY bgcolor="#333333">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--Aerodynamic testing of ground vehicle require a moving floor under the model to correctly simulate real-world conditions. The rolling road moves a composite belt under the model. The 16 ton structure utilizes a 300 HP motor to drive four steel rollers. One roller provides belt tension while another is hydraulically positioned to steer the belt. The top surface is a series of steel castings which are water cooled to eliminate friction heat effects. The castings also have a series of vertical holes linked to a powerful suction motor to keep the belt flat during operation. Another unique aspect of the road is that it is capable of yawing up to eight degrees to simulate cornering or crosswinds.
--><OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="800" HEIGHT="600" id="WordBox" ALIGN="">
<PARAM NAME=movie VALUE="WordBox.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333333> <EMBED src="WordBox.swf" quality=high bgcolor=#333333 WIDTH="800" HEIGHT="600" NAME="WordBox" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</BODY>
</HTML>
View Replies !
View Related
Window Size
Hi folks !!!
I am having problem with the document size to be set while designing the flash-based site. The thing what I need to know is the standard size for 1024*768 resolution monitor. I've seen many flash_based sites that fit properly in defferent size, be it 800 *600 or 1024*768. But I am having the problem with the size to be set. All I wanna know how to do so ..... Please let me know if any one knows about it.
Thanks !
Ishwor
Kathmandu, Nepal
View Replies !
View Related
Window Size
Hello all you Flashers out there. I am a very newbie to Flash but so far I love it. I have a simple question that I am sure has been asked several times. Ok so I make a link from a button in flash. I want it to get URL. But I want the new URL window to be a certin size say 400 x 400 pixels how do I do this? any help would be very much appreciated.
--nathan
View Replies !
View Related
Specify Window Size ? - - Please Help
hi,
i have a novice scripting question. if you can, please help!
using this command, how can i specify window properties (i.e. size, scrolling, etc) that I would normally do with simple javascript?
on (press) {
getURL("http://www.whateversite.php", "_blank")
thanks
View Replies !
View Related
Window Size><?
Hello...
I was wondering if anyone can tell me where to get some help with changing properties for a popup window in dreamweaver.
Thing is. I gotta button in my flash movie that calls a php page with another flash movie embedded inside the page. Now what i want with this to happen.
My flash movie is 800x600 and it opens in a new window. I want this properties to be set to open the new window 800x600 in center of the page.
Any Help... Or should i just link it to the SWF file which will open the flash player.... But then again... not everyone has got that... mmmmmm
Cheers
View Replies !
View Related
Get Window Size
Hi all, I've been searching for about an hour and I can't seem to find a way to pass the browser window size to flash.
I'm building a full-screen site, and I want to animate something moving from one edge to the other edge of the window.
Stage.width is always the same as the stage size in my fla.
am I missing something?
Thanks
Patrick
View Replies !
View Related
[FMX] Pop Up Window Size.
I wanna know how I can do an HTML script such as this one:
Code:
<a href="URL" onclick="window.open(this.href,'','scrollbars=yes,resizable=yes,width=400,height=300'); return false"
In flash for an html pop up window.
I don't want the html page to pop up as a full window when open after the button is clicks in flash.
Hope that makes sense.
View Replies !
View Related
Window Size
Hi there,
I am wondering how I might adjust a movie, so that it opens at a chosen size. And then, on loading another swf file, how to choose the size for that window...
Thanks for any advice you can give.
View Replies !
View Related
Window Size
Hi, when i publish my Flash MX website, and i open the index.html file, there's always a scroll bar on the right of my screen. The movie fits perfect on the screen but i can't get rid of the scrollbar.
Can anyone tell me how to do this??
Thanks in advance
View Replies !
View Related
Go To URL Window Size
Using Flash MX - in opening a new window (go to url) can I have it open a window exactly the size of the fliash file - or the dreamweaver file if I put it in one?
Thanks for the feedback everyone!
Sara
View Replies !
View Related
Go To URL Window Size
Using Flash MX - in opening a new window (go to url) can I have it open a window exactly the size of the fliash file - or the dreamweaver file if I put it in one?
Thanks for the feedback everyone!
Sara
View Replies !
View Related
Window Size Like The Swf
Hello to all!
I just created a full flash web site and i want,when browsing it,to open in a new window as the size of swf,the real size of flash document,to fit exactly in a window.How can i do this?
View Replies !
View Related
Go To URL Window Size
Using Flash MX - in opening a new window (go to url) can I have it open a window exactly the size of the fliash file - or the dreamweaver file if I put it in one?
Thanks for the feedback everyone!
Sara
View Replies !
View Related
Window Size
Can any one tell the java script code that can stop resizing and scrollbars, or if you can't tell me what it is can you tell me where to find it.
Thanks
View Replies !
View Related
Fix Window Size
hi,
is it possible to define already the first page of a website?
f.eks. you have an empty browser window, enter the domain and by showing the site the window is resizing?
cheers
View Replies !
View Related
Pop Up Window Size
I've searched and found several post about pop ups but i don't see any that ask about setting the size or in this case not setting it.
in the tut http://kirupa.com/developer/mx/centered_popup.htm you have to input the images size. Is there anyway where you don't have to do that and let the script do that by just loading the image and fitting itself around the image?
thanks
View Replies !
View Related
The Size Of My Pop Up Window?
hello everyone!
I want to get this functioon to load my new window inan specific size can anyone help?
here is my code what do I need to add and where?
function released()
{
getURL(this._parent.linkURL, "_blank");
}
I want the new window to be w:550by H:450 centered.
this.parent refers to an XMl file that controls my movie shall i give the size of my screen in the XML file or in the flash file?
here is the code for the XML
<icons>
<icon image="icon_g1.png" tooltip="Ireland: Millenium offices" link = "http://www.rockq.com/mill_info.swf"/>
</icons>
thank you all
lunita
View Replies !
View Related
|