ActionScript 3.0 :: Controlling Window Size In Flash?
Aug 27, 2011how do you make a window go full screen in flash?
View 11 Replieshow do you make a window go full screen in flash?
View 11 RepliesI am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.
[Code]...
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.
I have found this solution [url].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip...
I need it to stay exactly at the same position whatever the size of the movie-clip. [code]...
Im looking to make the flash file dynamic so that when someone changes the window size the flash file expands with it and some of the items contained move also.
View 3 Repliesi've made a flash movie in res 600 * 300, now i want to keep this res don't want the user to be able to expand the browser window or change the res or anything how do i do this?
View 9 RepliesCan I get the obtain the size of the browser window in AS3?The best method I've found is to get the size with Javascript and send it to Flash as a FlashVar. One limitation of this method is that it doesn't give the current size if the window is resized.Is there a pure Flash way to do this?
View 2 RepliesI am working on an infinitely scrolling image field that reacts to the user's mouse similar to the one in this tutorial:[URL].. The only difference is that my content is much wider than the flash window whereas the one in this tutorial is exactly the size of the Flash window.
[Code]...
I need to know the available screen space in my current AIR app, but when I use stage.nativeWindow.width and stage.nativeWindow.height, I get the size of the window including the title bar. I'd like to know the "inner size", so excluding the title bar. How do I do this?
View 1 RepliesI am having trouble finding a post which can tell me how to limit the size of a popup window. I have a swf with buttons in it which I need to open the popups in windows sized width=706,height=500.[code]...
View 3 Repliesis possible to dynamically change the dimensions of my flash stage depending on the size of the browser window ?
Very important, I don't want to stretch any element. Just make the background bigger.
is possible to dynamically change the dimensions of my flash stage depending on the size of the browser window ?
Very important, I don't want to stretch any element. Just make the background bigger.
i have a list of pics, inside the swf file, what i want is when i press the button of any pic, to open new window "JavaScript" i think, but i want the window size the same size of the pic when viewed.
View 2 RepliesI want to make the stage and contents to resize in ratio to the window size, Like the file I have provided, When you make the window bigger or smaller the contents change with it. How did they do that? [URL]
View 1 RepliesI'm wondering how to configure the size of the flash player window directly in actionscript code. I've searched on google but i can't find a solution.
View 1 RepliesI have seen many websites having full browser window, I have tried doing that with a plain color, it worked with horizontal but didn't worked on the vertical manner. What size should I keep for the flash document so that it is fitted in the browser sizes.
View 1 RepliesHow can I create a fixed size popup window from Flash? When click on the image, it pops up a small window without those browser tool bars.
View 1 RepliesI have a Flash file embedded into HTML - the objects inside are place based on the browser's screen size.Most of the time I don't want a scroll bar, as things are correctly placed, but once the browser window gets too small it'd be nice to have it.So, the main question: can I have a Javascript code listening for the browser window, then adding a scroll bar if it's smaller than a certain number?
View 1 RepliesIn my game people shoot at 4 different moving images and get points. Simple right? Well one of the images is a question mark that people can shoot and when they do, I need flash to pause the game timer, pop up a new window, display the multiple choice question in the window and wait for the user to answer. I would also like to be able to customize the size and location of the pop up window!
Then if the question is answered correctly close window award 10 points and continue the game. If the question is answered incorrectly, say wrong and then display the end game results screen. Right now I have it to where it opens a pop up in a web browser and askes the question there. The question is randomly chosen from a file called random.html. But I do not want the game to operate that way. I want the game to open the pop up within flash.
I can only do so much with flash. I am having issues with linking to a video. Here is my question: please refer to [URL] and click on the video link. I have 3 videos that I want people to view when they click on the links:
- SI TU T'EN VAS (2001)
- GWADA (2004)
- JODIA (2008)
I need the links to be able to open a popup window in flash with 320X240 in size.
1- I imported each video in flash (separatly) using the 30rates/frames, progressive dowload from webserver. (the usual).
2- I allready uploaded the videos (.swf and .flv) on the server (godaddy.com)
3- In my main file, I created a button for each one of the links above using the invisible button with their own instances. they are each on a different layer.
I want to put a movieclip with tools at the bottom of the window in the center with tools icons, it should have fixed posiiton so that user can scroll the main window having it always on prompt. I think I need the browser window size properties to do somenthing as this. Is there a way to get them?
View 0 RepliesEvery time i compile or run, the flex builder opens a browser showing the output... is there anyway we can destory the older window when newer ones open... i mean a setting in flex.
View 2 RepliesI'm trying to get my main class to resize to the browser window size. I'm listening on the stage to Event.RESIZE, updating my width/height to match the stageWidth/stageHeight, and drawing a rectangle to show me how big it is. When I resize, it flashes between a small and big size every other time the event fires. The width and height are correct in both cases, but in the "small" case, everything is in a small box.
[Code]...
I'm rendering a xps file using flash (no MX or Spark), and I'm running into a sort of 'contradiction' that I'm unable to solve. [Note, that I'm trying to work only in core flash (e.g. Sprite, Shape, etc.), I've already solved (sort of) this issue using Spark.]
The pages of the xps file specify an explicit size. However, the content described (especially paths) in the xps file can sometimes extend outside of this area.
The problem is, I want the parent Sprite to have the size specified by the xps file, for example so scroll bars match the page size (not the sprite size), but in some cases the Sprite is much larger than this.
I've tried recursively going down and scaling everything UP, and then at the end scaling the parent container DOWN. Unfortunately, this causes translation problems with paths, and I assume it can also cause problems with bitmaps, etc.
Without using MX or Spark, is there anything I can do to control the size of the parent Sprite, other than scaling all the children independently?
I've got the following file reference listener on a file to upload art for display on a flash movie. However, I want this to display only at a certain size. I tried the "easy way", but this ends up sizing down my whole movie. Where should I insert the code to get the uploaded file to show on my flash movie only to a certain height and width? "chip_clip" is the empty movie clip this is being uploaded to:
var file:FileReference = new FileReference();
file.addEventListener(Event.SELECT, fileSelect);
file.addEventListener(Event.COMPLETE, fileComplete);
[Code].....
I have a main swf file. In this file, you can click on a link, which stops a background swf from playing and also loads an external swf into a blank movie clip. All works well except for two problems:
1. The external swf is not loading where it should be, but off kilter. I think this is registration issue, haven't figured out the particulars.
2. More importantly... upon resizing the external swf "disappears" into the ether. I understand it might not really be gone, just somewhere I can't see it. Very twilight zone.
Code:
import com.greensock.TweenLite;
import fl.motion.easing.*;
import flash.events.MouseEvent;
[Code]....
i mean..i dont want my user to maximize or minimize the file..like u ppl must have seen the softwares setups..their window file size cannot be changed.
View 1 RepliesI want my SWF file to fill the window. I set the height and width to 100% and the scale param to "noscale". It looks great except that when I resize the window vertically, the contents of the SWF file center vertically so theres a gap between the content and the top of the window.
View 2 RepliesI currently have a website that has a photo gallery. The home page has a link to the actual photo gallery. I'm using the (getURL) to open the photo gallery in a new window, however the new window opens up to the same size as the home page. I would like to shrink down the window size of the photo gallery so the user can still see some of the home page behind the new window.
I know javascript can take care of this problem, but I was wondering if there is a way to do it with Flash? I just need to specify the size of the new window when it opens.
I can't seem to find any info on how to do this. Here is an example of what I am trying to do: [URL]
View 1 RepliesPretty simple- just trying to have a link in my .swf open in a new window, with a specified size.
I have done this before but can't seem to remember/find a tutorial... well besides one on kirupa that didn't seem to work for me.
I believe the method I used before involved putting some code on the page you were linking to...