Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 3.0 :: Stage Size = Window Size?


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.


View 6 Replies (Posted: 06-28-2009, 07:02 PM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 3.0 :: Stage Size And Window Size
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.

Posted: June 28th, 2009

View 10 Replies!   View Related
ActionScript 3.0 :: Get An Object To Increase In Size The Lower It Goes Down The Stage And Decrease In Size The High It Moves Up The Stage?
I'm trying to get an object to increase in size the lower it goes down the stage, and decrease in size the high it moves up the stage.

It only needs to increase or decrease by a small amount. Basically, it's for a game character. To ad realism to his movements, it would be nice to have this feature.

This is where i'm up to so far:

Code:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code]....

I think I need something like:

if (object moves up)
decrease
else if (object moves down)
increase

Posted: 12-29-2009, 05:09 PM

View 6 Replies!   View Related
Professional :: Build A Flash That Auto-adjust Its Size To The Browser Window Size?
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.

[Code]...

Posted: Jun 8, 2010 1:12 PM

View 9 Replies!   View Related
ActionScript 3.0 :: Build A Flash That Auto-adjust Its Size To Browser Window Size?
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]...

Posted: 06-08-2010, 07:48 PM

View 0 Replies!   View Related
ActionScript 2.0 :: Making The Document Size Dynamic With The Window Size?
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.

Posted: August 7th, 2008

View 3 Replies!   View Related
ActionScript 2.0 :: Window Size The Same Size Of The Pic When Viewed?
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.

Posted: February 9th, 2004

View 2 Replies!   View Related
ActionScript 3.0 :: Resizing .swf Window Causes Stage Size And Origin?
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

Posted: Feb 14, 2011 3:50 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Access The Size Of An Swf Window As Opposed To The Stage Within The Swf?
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?

Posted: March 24th, 2009

View 4 Replies!   View Related
ActionScript 2.0 :: Changing Stage Size To Match Photo 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?

Posted: 03-30-2010, 04:19 PM

View 6 Replies!   View Related
Window Size - User To Be Able To Expand The Browser Window ?
i'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?

Posted: 03-30-2009, 07:02 PM

View 9 Replies!   View Related
IDE :: Do Not Want To Change The Swf Window Size?
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.

Posted: February 4th, 2009

View 1 Replies!   View Related
ActionScript 3.0 :: SWF 100% Of Window Size?
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.

Posted: September 15th, 2010

View 2 Replies!   View Related
ActionScript 2.0 :: Browser Window Size - Put A Movieclip With Tools At The Bottom Of The Window In The Center With Tools Icons
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?

Posted: 01-24-2010, 10:36 AM

View 0 Replies!   View Related
ActionScript 2.0 :: Specify The Size Of The New Window When It Opens?
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 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.

Posted: 05-21-2009, 03:54 PM

View 9 Replies!   View Related
CS3 Open A New Fixed-size Window?
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]

Posted: 04-07-2010, 03:45 PM

View 1 Replies!   View Related
Open Link In New Window, Specified Size?
Pretty 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...

Posted: 07-07-2010, 04:44 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Customize Size Of New Window?
I have a button which when clicked opens a new window. The code is a frame action in the timeline. Short of putting some javaScript in the page that opens, I am unable to set the width and height of the new window. Here's my code

Actionscript Code:
import flash.external.*;var newWindow:String;street_btn.onPress = function () {newWindow = String (ExternalInterface.call ("openWindow", "http://www.unseenproductions.net/images/street/index.html", "win","height=1000,width=700,toolbar=no,scrollbars=no"));};

I've tried defining width+height immediately following the link in the string, but no matter where I put it the window size is unaffected.

Posted: 12-09-2011, 04:39 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Defining Pop Up Window Size?
How do I define the window size of the opening window if I have something like this:

function ClickHandler(event:MouseEvent):void{ var req:URLRequest = new URLRequest("something.html"); navigateToURL(req, "_blank");}

Posted: Aug 5, 2009 7:00 AM

View 7 Replies!   View Related
Assign A Specific Window Size?
I applied the following action script to a button in a flash movie, the action script reads(address changed to protect the innocent):

on (release) {
getURL("http://www.webaddress.com/Product/Video.html", "_blank");
}

[code].....

Posted: Aug 18, 2009 1:27 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Make A Pop-up Window With A Set Size?
I want to make a pop-up window which pop up when a button is pushed. And I need to set the size of the pop up window to 900 x 700... I found a tutorial on the net on how to do it but it dosen't work,

function jspopupWindow(event:MouseEvent):void {
var desiredURL:URLRequest = new URLRequest("javascript:NewWindow=window.open('page.html','newWin','wi

[code].....

Posted: Dec 9, 2009 1:00 PM

View 5 Replies!   View Related
Flash :: Get Browser Window Size?
Can 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?

Posted: May 16 11 at 14:25

View 2 Replies!   View Related
As3 :: Obtain The Size Of The Browser Window?
Can 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.

Posted: May 16 11 at 14:25

View 2 Replies!   View Related
ActionScript 3.0 :: Scale A MC With Window Size?
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.

Posted: 07-10-2010, 01:17 PM

View 1 Replies!   View Related
ActionScript 3.0 :: Control The Size Of A Window?
im trying to control the size of a window i tried multiple things and searched with google but only found old AS2 stuff

ActionScript Code:
var request:URLRequest = new URLRequest(".com/swf/dice.swf");
navigateToURL(request);

Posted: 12-07-2010, 11:58 PM

View 5 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved