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 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]...
When I create a little .swf file with actionscript it will run correctly in whatever stage size I choose for the document. However, I want the display to update when I change the window size that the .swf is running in as it is running. It does some resizing as I drag the corner of the .swf window, but not correctly. I actually put the statement: graphics.drawRect(0,0,stage.stageWidth, stage.stageHeight);into the code, and it is not drawing the origin at the corner of the window (among other problems). Is this a bug in Flash, and/or is there some way around this When I put the window back to its original size, it displays correctly, and this is happening for all stage sizes and aspect ratio
how to access the size of an swf window as opposed to the stage within the swf.
I am creating an swf that is a projector file (so I'm publishing it as an exe). It won't be launched in a browser. I need to know what the size of the window displaying the swf is when it is opened.
I have set the exe to open in full screen automatically, but as far as I know, the stage height and width are equivalent to whatever is on the stage. But I am loading images from local folders so there is no initial size set.
So in short, how do you access the window size as opposed to stage size?
I'm working on a slideshow where I'm calling in photos from an xml file. How do I tell AS to resize the stage according to photo dimensions? Would I need to list the dimensions in the xml file? If so, how would I pull that into the fla file with AS?
I 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.
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?
I 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 have an image inside a MC called "hPic" and i want this MC to scale with the window when it's resized vertically, but it has to keep the same dimensions/aspect of the MC when it's scaled, not just stretch it vertically or the image will be distorted - so the proportions have to be constrained.
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.
I 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.
(searching this forum doesn't seem to work for me any more I get no result)how do I lock the window size with AS? the obvious thing is html, but its suppose to be a hand out.I have an exe, which loads in swfs as a cheap cover for those without the plugin.
So ive been asked to build a page for a real state company and the guy told me it should be similar to these [URL] Ive been trying a couple of weeks so far, but i dont seem to find a way to do somthing similar, i mean, i want to have the welcome screen as those two:
- the gradient background - flash occupies whole screen no matter what size it is - gradient expands sideways infinately - no matter what height my explorer window is, gradient is always in the same position relative to top, and if i keep expanding downwards the background keeps last colour of the gradient. - the brand logo looks as if it had top, left and right anchors, and it also limitates the minimum width of the explorer window
i though of addind a 3000 x 3000px square with the gradient and centering it, but i know there has to be a professional way of achieving that.