ActionScript 3.0 :: Flash Builder Screen Resizing - Setting Dimensions Of SWF?

Feb 5, 2011

I'm new to Flash builder and I'm having this weird screen resizing issue. I'm setting up my .swf of dimensions..

Code:
[SWF(width="760", height="600", frameRate="32", backgroundColor="#000000")]
And I'm using...
Code:
stage.scaleMode = StageScaleMode.NO_SCALE;

But for some reason, which I don't get is that when I do no_scale, the .swf window resized to 760x620, and I have these 20 pixels at the top, which are less than zero in Y, if I leave that line out, my graphics on the screen (isometric tiles) look distorted but the screen stays at 600 px in height.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Fixed Movieclip Not To Change Dimensions If The User Starts Playing With The Dimensions Of His Screen

Jan 31, 2012

What do I have to write to keep the movieclip not to change dimensions if the user starts playing with the dimensions of his screen ? I remember it was a line of as3 written at the beginning.

View 3 Replies

ActionScript 3.0 :: Resizing Browser Dimensions?

Dec 4, 2011

I'm about 99% done with a site I'm working on and the client just hit me with a low blow.The designs that I got from their designer were a certain dimension, so I built the site with the assets based on those dimensions and now that I'm nearing the end of the project, the client seen the site on their 13 inch macbook and freaked out "everything looks too big!" is what they said. Is there a way to resize assets based on browser size without having to go in and do too much modifying? I tried looking this up, but I got a bunch of Event.RESIZE responses which I don't think I'm looking for that.

View 3 Replies

Setting Pop Up Window Dimensions?

Nov 24, 2009

I have a bttn in my swf (which is embedded into my html page) and i want to be able to control the parameters of the pop up window the bttn generates. I have found a code generator at- this generator works when i input all my parameters and URL and test it, but when i place the code it provides onto the bttn in flash it fails to produce the same result me

on (release) {getURL ("javascript:NewWindow=window.open('https://secure.bellerockgaming.com/webchat/go_Max_New.asp?siteID=14&qu eueID=29&folder=BRE','Live

[code]....

View 1 Replies

Resizing Stage Dimensions : Make An Image Fade To The Next Scene Without A Whiteout Or Blackout??

Apr 13, 2009

how I could re-size my stage?As well as, I would like to know how I could pan my moving animation horizontally/vertically? And is it possible to make an image fade to the next scene without a whiteout or blackout? How can I do this?

View 4 Replies

Resizing Flash Swf's To Fit Screen Sizes?

Jun 19, 2009

I would like to know how to resize flash to fit in browser/monitor sizes. This site http:[url]....is a perfect example. Notice how it opens with no scroll and fits to a window that matches your screen size.

View 1 Replies

Flash :: Flex - Setting Up Dynamic Images And Event Handlers For Each In Builder

Aug 26, 2010

How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would show the "classDescription" for the particular class that is clicked. My problem is figuring out how to retrieve the proper set of data and adding the images properly to the panel.

View 1 Replies

Actionscript 3 :: Setting The Default Browser To Open Flex Apps In Flash Builder On Mac?

Sep 13, 2011

I just got my MacBook and am trying out the Flash BUilder on said platform. I've installed Firefox and Google Chrome on my MacBook but I can't seem to find a way to set which browser would launch my Flex apps whenever I hit the Run button inside Flash Builder. As far as I know, I can locate the Browser property on the Project Properties on my Windows copy of Flash Builder but I couldn't over here at my Mac. Any thoughts?

View 1 Replies

ActionScript 2.0 :: Resizing - Create A Movie Clip Dynamically Whose Position And Dimensions Are Changed In Each Frame As Loaded From Xml

Mar 22, 2010

i'm new to action script 2.0 and i want to create a movie clip dynamically whose position and dimensions are changed in each frame as loaded from xml;

[Code]...

the position and dimension are changed but the problem is the last dimensions are not removed and it get bigger n bigger

View 1 Replies

ActionScript 3.0 :: Setting External SWF Dimensions To Root Stage Size?

May 15, 2009

I am loading the SWF just fine, but I want the SWF to fit the root stage exactly. What happens instead is that the external SWF seems to include white space from around itself.

For example, the author-set width of the Tanks game (an example file I was using) is 550px, but when I set the width of loadEvent.currentTarget.content.width to 550px, the game is resized to maybe 350px width. I have to set the value of loadEvent.currentTarget.content.width to something like 640 in order to get the game itself to make full use of those 550 pixels.

Code:
package {
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;

[Code].....

I have CS4 with AS3. I hard-coded values for cWidth and cHeight instead of getting them from flashvars because I am just testing in the IDE right now. Normally I would get those vars from flashvars.

View 1 Replies

As3 :: Flash - Resizing SWF File To Fit Any Screen Resolution And NOT In Browser?

Nov 24, 2011

Just want to find out something... I have a .swf video file which I open with the normal Adobe Flash player 10. What happens is that when I open that file in a smaller screen resolution there's some parts missing (cuts it off around the edges).

How can I resize the content to fit in any screen resolution?

View 1 Replies

Flex :: Flash - Resizing Objects When Entering Full Screen Mode?

Dec 7, 2010

Consider the following Flex code:

private function fullScreenHandler(evt:FullScreenEvent):void {
if (evt.fullScreen) {
viewstack.selectedIndex = 2;

[Code].....

I have a viewstack with two containing canvases. Canvas 1 is used when in normal mode and canvas 2 which is used when in full screen mode.

To properly resize the objectInViewStack2 I need to know how large the screen is when in full screen mode.

View 1 Replies

Flash 10 :: While In Full Screen, Main Stage Resizing When Loading An External Swf

Nov 10, 2010

My main swf is 960x600 and loads full screen. it is a projector or swf, local. I have the code on frame 1 to ensure full screen and show all:

stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.displayState = StageDisplayState.FULL_SCREEN;

Then I load an external swf into a mc, and it goes full screen as expected. BUT the main swf that loaded that external one, at the time of load, suddenly gets scaled back down to its normal size: 960x600, on the top left corner of the Player Window (or the full screen), so somehow at 0,0. Whn I unload the external swf, I can put the code stage.scaleMode = StageScaleMode.SHOW_ALL; to get it back to where it was. But unfortunately I have some buttons from the Main swf that are supposed to be on top of the loaded one, and should stay where they are. But now they all move because of this scaling down.

the mc that is being used as a container for the loaded external swf is an empty mc located at 0,0. The external swf has the same size as the main one: 960x600

I searched and tried things but could not get it to stay in show-all mode when loading this external swf...

View 0 Replies

Detecting Screen Dimensions For Mobile?

Dec 13, 2011

For mobile Flex / Flash Builder, is it better to detect screen dimensions using systemManager.screen.* or Stage.* - and why?

View 1 Replies

ActionScript 2.0 :: How To Make Contents Scaled At Screen Dimensions

Feb 17, 2009

I am Developing a flash site, I made it full screen and centered the content my flash contains a jpg photo with a certain size. My question is I want my site to be full screen and fit the window dimensions and the content will be scaled depending on the screen dimensions without the content being bad quality whatever the screen resolution (1042*786 or 800*600) or any dimensions. I want to make my site looks the same for all screens. I reached to make the flash full screen with no margin but with no scale means that it will be fixed at certain dimensions i choose it inside the swf dimensions. I want to know how to make my content full screen and scalled at any screen dimensions. How to make this without the quality is affected and if there is a certain dimensions that the flash must be of.

View 8 Replies

Flash :: Flex - What Are Possible Non-code-related Reasons For A Blank Screen In Builder 4.6 Design View?

Dec 13, 2011

I was editing a very basic mobile Flex project, and after I debugged the master (application) mxml file, Design View stopped working (blank screen displayed, no Design View errors) for all files. Creating new projects, either mobile or else, or testing old, working projects, doesn't work either. Out of the related issues I've found info on, most concern earlier versions of the IDE, and deal with either Design View errors (got none), use of certain functions or custom components (I get the error even on a new project), or are solved by changing styles back-and-forth (tried already, to no avail).

I can't drag and drop components to the design area, either (a "prohibited" symbol appears and nothing happens when I drop); so I'm pretty sure it's not code-related or a bug, but probably something stupid, like a configuration issue, so I definitely need someone to take a fresh look at it.

View 1 Replies

Flex :: Resizing A Spark Group By Setting Width And Height?

Apr 28, 2011

I have been given the seemingly simply task of resizing a Group container by setting width and height explicitly in response to user interaction. However, changing these values have no effect on the size of the container at all. Changing scaleX and/or scaleY will change the size of the container just fine, but this is not the behavior I am after.I have tried overriding updateDisplayList() to set a specific width and height, but this has not yielded the desired results.

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="ns.adobe.com/mxml/2009" ;
xmlns:s="library://ns.adobe.com/flex/spark"

[code]......

View 2 Replies

Professional :: Off Screen Content, And Resizing Swf?

Aug 2, 2011

I am having a slight issue, i have created a flash file 800 x 600,But i need to split it into half... i already have animations on both halfs which overflow to the off screen,Is there a way of cutting the content in half via width (400x600)? (im uploading the content into a system which requires it in 2 halfs and also if i have any content off screen is messes up...)

View 4 Replies

ActionScript 2.0 :: Resizing MC Fit Screen In Proportions (fla Attached)?

Jul 28, 2010

I'm working on my portfolio site and would like to resize the background only like this site [URL]For resizing a flash movie, I tried this script

Quote:

Stage.align = "TL";
Stage.scaleMode = "noScale";
//size bg_mc to match stage size

[code]....

It succeeds resizing but is NOT in proportion

1. editing the script thus the picture resizes with contrain proportions?

2. I'd also like to have it centerized during resize.

View 5 Replies

Resizing SWF Object - User Screen Resolution

Mar 14, 2011

I'm working on a flash site, but I want the site to resize to the user's screen resolution...I'm new at actionscript and flash, but what is the most efficient way to accomplish this?

View 3 Replies

Flex :: Resizing Components For Wide Screen?

Apr 1, 2011

I am using % values for height and width properties of my components, so they would look some what similar in different screen resolutions. But when the aspect ratio changes or on Wide Screen monitors, my components are looking very badly as in not consistent and somewhat stretched.

View 2 Replies

ActionScript 2.0 :: Resizing Mc In Full Screen Browser In Proportion?

Feb 27, 2009

I'm using the code below to resize a mc so that it fits a full screen browser even when its resized. Its working fine but...

How do you make the mc (bga) resize in proportion. At the moment it squashes & stretches

// ***Stage aligned top left
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.

[Code]....

View 2 Replies

Actionscript 3 :: Finding An Original Rectangle's Dimensions From Rotation And Bounding Box Dimensions?

Jan 25, 2010

In AS3, I have a Sprite that has a Z axis rotation applied.How do I calculate that Sprite's dimensions (it's original size) from Sprite.rotationZ and Sprite.getRect(...)?

View 2 Replies

ActionScript 2.0 :: Keep Stage Objects Aligned To The Side While Resizing Screen?

Apr 19, 2006

I posted this in the Flash MX2004 forum, but I hope I have better luck here.[URL] In that website, how do they keep some of the movieclip items locked on the edge of the screen? When you resize your screen, the items on the edges are the ones that moves correspondingly. And the fillers are near the middle part. Someone mentioned about adding a listener and act to a onResize command?

View 3 Replies

ActionScript 3.0 :: Loader Disappearing - Set The Dimensions Of The Loader So The External Swf Doesn't 'spill Over', The Result Is A Blank Screen?

Mar 26, 2010

I have the following code which simply loads an external swf, puts it in the right place and should all be hunky dory.This works:

Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest=new URLRequest("foobar.swf");[code].....

to set the dimensions of the loader so the external swf doesn't 'spill over', the result is a blank screen. No matter how high I set those dimensions it just doesn't display anything.

View 4 Replies

ActionScript 2.0 :: Prevent Auto-resizing Of Font When Browser Made Full-screen?

Jun 23, 2010

How do you prevent all of your text automatically changing the font size when a browser is made full screen? I have a number of fixed field sizes I want my text to stay within but when the browser is expanded to full screen it changes the fonts so the text no longer fits in the text boxes and it forces scrolling.

View 2 Replies

ActionScript 1/2 :: Setting An Object To The Corner Of The Screen

May 4, 2009

I have a button control set up to switch my program from windowed mode to fullscreen, and back again.
 
This is just 2 buttons that alternate frames in a movieclip.
 
I was wondering if there was a way to keep the movieclip locked to the upper right corner of the program when the user switches between windowed and fullscreen modes.
 
The code for the buttons; if needed, is:
 
//Fullscreen button
on (press) { fscommand("FullScreen","True"); }on (release) { gotoAndStop(2); }
//Window button
on (press) { fscommand("FullScreen","False"); }on (release) { gotoAndStop(1); }

View 1 Replies

ActionScript 3.0 :: Setting StageDisplayState To Full Screen?

Oct 27, 2011

I keep gettting the above error  when setting my StageDisplayState to full screen. I can't seem to figure out why. All the locations in my index.html to allow full screen are set to full (at least that i can find in the index.template.html file)  e.g.

<param name="allowFullScreen" value="true" /> 
From what I have read, it seems I should be able to fix it with
Security.allowDomain();

However not sure what to inject into the allowDomain() method as it is a local file. This also make me think, I should not need this.

View 3 Replies

ActionScript 2.0 :: Screen Resolution - Setting If / Else Statement For FSCommand

Jan 29, 2008

If this is possible to detect if a user's display resolution is less than 1024 x 768 as a flash projector file is launched - then depending on the result I want to select one of the following commands to ensure that no cropping occurs of my final file:
fscommand("allowscale", "false");
fscommand("allowscale", "true");

View 5 Replies

ActionScript 2.0 :: Setting Up The Tiles On The Screen - AttachMovie Not Working

Jun 22, 2011

I'm trying to build a little tile editor for a game I'm about to make, but in setting up the tiles on the screen something goes wrong. Here's the code:

[Code]...

the trace just spits a whole bunch of 'undefined's at me. I double checked the variables once again just to be sure, and they're all right.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved