ActionScript 1/2 :: How To Get Stage Scaling

Nov 28, 2011

I have developed the entire module with 800x600 Resolution.But Now I got an issue that i need to reduce the content area (Shrink the contents instead of changing the resolution). Because some one had developed the custom player that will affect some of the margins of the content.Is there any AS2 script is avail for scaling the entire stage to 80 % of its original size for the entire module...

View 2 Replies


Similar Posts:


ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

Mar 11, 2008

I've search through all the threads with "scaling" and "resizing" and can't find the solution.

Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.

I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.

View 2 Replies

Actionscript 3 :: Centering Objects On Stage And Auto-Scaling With Stage Resize

Oct 19, 2011

I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.

View 1 Replies

ActionScript 2.0 :: Scaling Stage To Fit Different Monitors?

Feb 23, 2009

I have a flash project that I published to an .exe so it can run on the desktop. I also used the code:

Quote:

fscommand("fullscreen", true);

This is to make it launch in fullscreen. However the stage dimensions are 1100 * 800px and when you lunch this on certain computers with lower res monitors, some of the stage area is cut off. I found that you can always right click and select the "show all" option and it will scale down to fit the monitors screen. How can I make this do that automatically without having to right click and selecting the "show all" button.

View 5 Replies

ActionScript 3.0 :: Scaling Stage In Fullscreen?

Nov 19, 2009

I'm having a little trouble getting my swf file to fully scale in fullscreen mode. It doesn't look like the stage is scaling and my picture gets cut off. Attached is an image and the code also. It goes full screen at its native resolution fine but gets cut off when i try to scale.

import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

[code].....

View 2 Replies

ActionScript 2.0 :: Scaling And Projection On Stage?

Mar 18, 2010

i have a following problem with displaying a scaled and moved image. cliffs:

1. create movieclip

2. draw a square inside, with a starting point (top left corner) in (75000, 75000)

3. move the movie clip so that the square is visible on stage. its important that the movieclip for each iteration is the same.we reapeat this procedure, each time doubling the x/y of starting point, and its width and height. each time we also scale down the movie clip (so its two times smaller than the previos one). we position the movie clip.basic math suggest that all squares should appear one over another. this is what i get:zoomed:

Code:
container square2 x/y: (-47900,-47900)| zoom: 2| w/h: 500| 64%| x/y: (75000,75000)| stage x/y: (99.95,99.95)| stage w/h: 320
container square3 x/y: (-47900,-47900)| zoom: 3| w/h: 1000| 32%| x/y: (150000,150000)| stage x/y: (98.8,98.8)| stage w/h: 320[code]....

View 1 Replies

ActionScript 3.0 :: Scaling X And Y Size Of Stage When Published

Apr 26, 2011

How do you do this in AS 3.0?I did it in AS 2.0 with the following code:this.onLoad = function () { this._xscale = 133.33; this._yscale = 166.70;can get it working for AS 3.0.

View 2 Replies

ActionScript 2.0 :: Resizing Stage And Scaling All Content?

Jan 3, 2007

I have a banner that is 468x60 pixels and I need to rezize it to 728x90 - this includes scaling all of the content over the timelines proportionally.

View 6 Replies

ActionScript 2.0 :: Stage Resize And Scaling Movieclips?

Jun 30, 2007

how do I code stage resize with scaling movieclips? I can do stage resize and position/scale movieclips relative to stage size..but i don't how to have a scalable movieclip retain its scale relative to stage size. how do I code this? for example, i have a movieclip originally 50px wide, and the stage 100px wide..when i click the mc, it scales up to 80px wide. and when I resize the stage to 50px,(50% of stage size) i want the mc to scale to 40px too(50% of mc size).. and when I click it again to restore to it's original size, i want it to scale to 25px(50% of original size). then finally when i scale the stage back to 100px, the mc again is 50px wide.

View 2 Replies

IDE :: Proportional Scaling MovieClips Relative To Stage?

Jan 30, 2009

how to proportionally scale multiple movieClips relative to the stage size.

I understand movieclip placement relative to the stage, and I have been using a code to scale MovieClips as a fullscreen background (also proportionally)

But

I can not figure out for the life of me how to scale other movieclips in relation
to the stage size.

for example I have a background_mc that proportionally scales with the stage
to fill without distortion.

HOW do I then place another MC say center aligned (I know how to do that) that will scale with the background without distortion?

Ideally I would like to place several MC's on my stage all scaling in proportion with the stage yet independently.

I have not been able to find any documentation on this. lots of tutorials on backgrounds and color fills and the like but nothing on proportional scaling of independent mc's

this is the code I use for my background_mc (can it be modified or should it be thrown out the window to achieve independent scaling?)

Code:

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

[Code]....

View 7 Replies

ActionScript 3.0 :: External SWF Scaling To Objects Outside Of Stage?

Dec 24, 2009

I have an swf in which objects go outside the boundaries of the stage (but are properly masked). Whenever I externally load this swf into a container it scales down to fit in the objects located off stage. EX:I have tried removing the objects outside the boundaries and the stage does not shrink the image. The container is the same dimensions as the external swf.

Code:
function open_puzzle(openSWF:String)
{
//Load SWF
container = new MovieClip();

[code]....

View 1 Replies

ActionScript 3.0 :: Proportional Scaling External Image To Stage

May 6, 2010

I know but basically I want to place some images on the stage and I want every image, whether big or small, portrait or landscape, to be scaled to about a quarter of the stage size.
 
I have tried coding this myself and even tried many suggestions found on the web, but they all seem to do the same thing. The code either sizes every image to be equal in width and varying height, or scale every image to be equal in height with varying width.
 
Say you have some images all the same size, but some in landscape orientation and some in portrait orientation. Most of the code I found for "proportional scaling" would scale the landscape images okay, but make the portrait images the same height as the others, so they looked alot smaller. Or the reverse was true.
 
example:image.width = stage.stageWidth;image.height = stage.stageHeight;
( image.scaleX < image.scaleY ) ? image.scaleY = image.scaleX : image.scaleX = image.scaleY;
 
This makes all the images fit on the stage all right, but they all have the same width. reversing the equality amkes all teh heights the same.
 
If two images did not have the same width before they are scaled down, they should not have the smae width afterwards in my opinion.
 
Sometimes I get some code that seems to work, then I change the stage size to check it and all the images did not scale to 1/4 of the stage new size when the FLA was run.

View 4 Replies

ActionScript 3.0 :: Proportional Scaling MovieClips Relative To Stage

Jan 30, 2009

I need some assistance on how to proportionally scale multiple movieClips relative to the stage size. I understand movieclip placement relative to the stage, and I have been using a code to scale MovieClips as a fullscreen background (also proportionally) But I can not figure out for the life of me how to scale other movieclips in relation to the stage size. for example I have a background_mc that proportionally scales with the stage to fill without distortion.

HOW do I then place another MC say center aligned (I know how to do that) that will scale with the background without distortion? Ideally I would like to place several MC's on my stage all scaling in proportion with the stage yet independently. I have not been able to find any documentation on this. lots of tutorials on backgrounds and color fills and the like but nothing on proportional scaling of independent mc's this is the code I use for my background_mc (can it be modified or should it be thrown out the window to achieve independent scaling?)

[Code]....

View 2 Replies

ActionScript 3.0 :: Scaling MovieClip Size - Width Of Stage

Jun 21, 2011

Is there any performance difference? I am scaling a 2000 - 4000 wide movieclip, within a 600 wide stage. Does it matter which way I scale it in terms of CPU usage;
myMovieClip.scaleX *= 2;
or
myMovieClip.width *= 2;
The movieclip will be scaled multiple times and to varying sizes.

View 5 Replies

ActionScript 3.0 :: Stage To Prevent Scaling Of Movieclips On Fullscreen?

Mar 3, 2011

in flash AS1,2 you just input this code Stage.scaleMode="noScale";

on a frame of the main stage to prevent scaling of movieclips on fullscreen.I tried the same thing in AS3 and its not working for me. so my question is how would i apply this in AS3?

View 8 Replies

Flex :: Sprite Scaling Children Even Though Stage.scaleMode = "noScale" And Stage.align = "TL"?

Aug 6, 2010

I am creating an AIR nativeWindow. I am adding two children, an HTMLLoader and a Sprite. The child Sprite has two children, a TextField and a Sprite that will be used to draw. I have set stage.scaleMode = "noScale" and stage.align = "TL", which the HTMLLoader seems to respect. However, the child Sprite scales its children whenever I set a height.

public function BaseWindow(){
var winInit:NativeWindowInitOptions = new NativeWindowInitOptions();
winInit.type = NativeWindowType.NORMAL;[code]..........

How do I prevent the distractor Sprite from scaling its children?

View 1 Replies

ActionScript 3.0 :: User Resizing And Scaling Movie Clips On Stage

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage! The drag and drop is not an issue...however im not quite sure how to do all the rest... is there a way or a tutorial to do this?

View 1 Replies

ActionScript 2.0 :: User Resizing And Scaling Movie Clips On Stage?

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!

The drag and drop is not an issue...however im not quite sure how to do all the rest.

View 3 Replies

ActionScript 3.0 :: Outside Stage And Objects Proportional Scaling To 100% With Resizing Capabilities?

Feb 23, 2011

i am looking for class or something to proportional outside scaling of stage and all included objects (internal or external).I know SWFfit and LiquidStage. I have got many problems with integrating SFWfit to my code (resizing is not affected to included objects). LiquidStage seems to be ok but it`s not freeware . I am looking for free possibilities to do it.I am trying to connect that with GAIA framework.

View 3 Replies

ActionScript 2.0 :: Scaling The Stage With The Browser Window But Images Distorted?

Oct 30, 2009

I'm using the code below to scale my main movie with the browser window.What happens is that the images in the movie are baldy distorted ..Can I preserve the images to scale or at least can I scale them with a different scale?I'm using CS3 ,AS2 and Flash Player 9

Code:
// ***Stage aligned top left
Stage.align = "TL";
// *** stage scaling with the browser window.
Stage.scaleMode = "Scale";

[code]....

View 9 Replies

ActionScript 3.0 :: User Resizing And Scaling Movie Clips On Stage?

Jun 25, 2010

'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!

The drag and drop is not an issue...however im not quite sure how to do all the rest..

View 1 Replies

ActionScript 3.0 :: Scaling Bunch Of Point Objects Relative To Center Stage

Jan 8, 2012

All though I can scale down the size of my objects and can shift them to their correct positions when scaling. I cannot shift them to the correct relative positions, relative to the screen centre.

Code:
level=1; //starting scale level
public function scaleOut(level:int) // scale to a level 1-4{
for (var r = 0; r < Main.ballArray.length; ++r){
// scale radius
Main.ballArray[r].bRadius *= (oldLevel / level);
[Code] .....

View 8 Replies

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

May 20, 2010

i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
 
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))

[code]....

View 4 Replies

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

Apr 10, 2009

I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?

View 2 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part

Apr 18, 2004

really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 14 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part?

Apr 18, 2004

What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 13 Replies

IDE :: Scaling Swf In Browser

Nov 24, 2010

i want to show swf with zoom out 50% by default when user opens the page.URL...

View 3 Replies

Scaling And 100% Showing Too Much Of Document?

Apr 20, 2010

I want to know what is going on with my flash document where more of the document is showing than the document size. despite the little white box showing the size, if i set scaling to 100% it starts reaching past the boundaries. how can I get my flash doc to scale without viewing what is essentially outside of the frame?I am experimenting with getting my flash website to scale. I have tried a few things like SCALE="default" in the html and such. I want to try and keep the aspect and scale, but have a minimum size. For this I have been trying swffit.

View 2 Replies

FLV Distors On Browser Scaling

Aug 23, 2010

I am making a site using a liquid layout in Flash and have added an FLV with playback component swf. When I test the file it scales fine in the browser until you try rescale/minimise/enlarge etc. It then squashes.Url...Try rescaling the browser and you'll see the issue occuring. This only happens with the FLV playback component added. It is a linked file by the by and not embedded.

View 1 Replies







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