ActionScript 2.0 :: Lock Ratio When Scaling?

Sep 5, 2009

way to lock the width and height ratio? I'm trying to set the width of the mc equal to the stage but have the height keep in relation to the original ratio also. So the wider I open my stage the taller the mc gets also.

sizeXListener = new Object();
sizeXListener.onResize = resizerX;
Stage.addListener(sizeXListener);

[Code]....

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Lock Aspect Ratio Of Resizeable Box?

Sep 21, 2011

I have made a resizeable box that you can resize using handles on all four cornersI have tl (top left handle), tr (top right handle), bl (bottom left handle) and br (bottom right handle)Its rather difficult to explain. See the picture attached, the blue arrows are where the mouse could move and the green arrows are where the boxes should goor now let's concentrate on moving the tl handle so that when it is moved left or downwards it gets smaller, towards the br handle

I've have tried this:
tl.y = tl.x
tl.x = tl.y

[code].....

View 7 Replies

ActionScript 2.0 :: Lock The Aspect Ratio Of A Dynamically Loaded Image

Oct 5, 2005

lock the aspect ratio of a dynamically loaded image when i resize my browser.

View 3 Replies

ActionScript 3.0 :: Scaling In Aspect Ratio Without Cropping?

Jun 8, 2010

I want to know how can i make something like if any one scale browser my site will scale in aspect ratio without cropping

something like jimcarrey website [URL]

View 2 Replies

ActionScript 2.0 :: Scaling, Keeping Aspect Ratio

Feb 4, 2008

I have this video background, and I want its aspect ratio to be kept intact when the window is resized. Also I want the screen fiiled, if the aspect ratio would make the video smaller than the window it won't resize, it would just center.

[URL]

I have that code, it gives you an idea of what I want. however its buggy and flickers.

View 3 Replies

ActionScript 2.0 :: Scaling Images With Aspect Ratio Below 100%?

Dec 23, 2010

I need to scale images so that they always fit within my browser but also retain their aspect ratio. All other examples I have seen at some point either the width or height is cropped off by the edge of the browser. I need my images to always stay inside but also I do not want them to ever scale above 100% i.e. no enlargement. owever the images don't stay within 100% scale and also get cropped off.else as much as I can.The code I have is like this

Code:
if(mainTL.allImages._width > Stage.width){
mainTL.allImages._width = Stage.width;

[code].....

View 2 Replies

Actionscript 3 :: Keep Ratio In Full Screen - Extract Ratio From A Movie (mp4) Flash Player?

Sep 2, 2010

This is what i'm trying to do , get the Ratio 4:3 9:16 etc from an mp4 movie (h264) so when ill open it in fullscreen using a flash player / action script 3 it will still keep the ratio.

View 2 Replies

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.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

Actionscript 3 :: Fit A Swf Into A Box Keeping The Same Ratio?

Jan 17, 2012

I have an as3 app that loads SWF's with various movie clips inside with a size of 1280 width and 720 height. I would like to fit these SWFs into a content box of height 885 width by 500 height. The SWF must keep a ratio of 1.77. This would be easy if as3 recognised the SWF being 1280 height by 720 width. It doesn't however, and takes the size of the movie clips inside the swf which varies (as long as it's within the original size boundaries). how I can make the SWF's fit into the content box even if the movie clip sizes and therefore the original SWF sizes vary?

View 1 Replies

Set Up A Project To Correct Aspect Ratio?

Jan 23, 2012

I want to produce a small movie using flash that i can pass onto someone else for inclusion in a presentation
 
They have asked for the final movie to be a quicktime .mov using the H.264 codec and that the aspect ratio should be 16:9
 
So my question is, how do i set up a flash project to ensure the final outputted movie will be in the correct aspect ratio? do i need to know the correct pixel dimensions?

View 6 Replies

ActionScript :: Ratio And Frequency - Even Dispersion

Sep 2, 2011

I have the following:
package {
import flash.display.MovieClip;
public class Ratio extends MovieClip {
private var counter:Number;
private var frequency:Number;
private var ratio:String;
[Code] .....

This outputs something like:
0: true
1: true
2: false
3: false

But what I would actually like is:
0: true
1: false
2: true
3: false
i.e. more even dispersion (alternation)...is there a way to do this?

View 1 Replies

ActionScript 2.0 :: Resizing And Maintain Ratio?

Jan 17, 2008

I want to build a gallery that is full screen all the time and make it scaleable. The gallery is easy but I want image to maintain ratio but once reaching a 800 by 600 stop scaling .

View 9 Replies

ActionScript 2.0 :: Detect Flv Aspect Ratio?

Feb 9, 2009

i'd like to use one flv player .swf to play both 16:9 and 4:3 videos without stretching the 4:3. how to detect the aspect ratio of the flv file being loaded?

View 0 Replies

IDE :: Bitmap Aspect Ratio Question?

Sep 3, 2009

I found a thread in actionscript.com that resizes a bg image beautifully (without any pixelation whatsoever), except that there is a minor glitch in the script that doesn't load properly. What does the solution mean: "try waiting until after the image is loaded. call your setBackground(); function from the onLoadInit"

Here is the script:

import flash.display.*;
// this tells Flash NOT to allow the assets to be scaled
Stage.scaleMode = "noScale";
Stage.align = "TL";

[code]....

View 2 Replies

IDE :: Aspect Ratio Of Flash Website?

Jan 29, 2012

I have developed a couple of websites before in Flash, the problem is, the resolution of the site is good on my platform. i.e. 1024 x 800. However, when I get to view the site in 1366 x 788 the whole site looks sad. Badly oriented and sometimes I have to scroll through my page up and down - you know what I mean.

how to solve the problem so that my site looks good, centre oriented, doesn't matter at which resolution the user is viewing it.

View 3 Replies

Create A Vertical Slider Bar That Will Return A Ratio Between 0 And 1?

Apr 2, 2009

I am new to Flash and trying to create a vertical slider bar that will return a ratio between 0 and 1, change color while doing so, and display the resulting ratio on the side of the slider as you drag. Everything works except for the dynamic text box displaying the "ratio." I want the text box to be invisible until you drag, then display at about 70% alpha when you drag, and go back to invisible when you release (because of the 70% alpha I have decided not to use the "visible" property).

I have attempted to use the _alpha command to accomplish the above, but the actionscript appears to ignore and just display the text box at 100% alpha. I have put the dynamic textbox in a movie clip, but still can't make it work. Could I accomplish this with a rollover button covering the entire slider?

I have posted the .fla file here for your review; can anyone let me know where I'm going wrong?[URL]..

View 2 Replies

ActionScript 2.0 :: Keep Width / Height Ratio When Resizing?

Oct 14, 2009

I have my object which is supposed to re size keeping the original ratio of width/height.. I am using a listener since the stage is set to "noScale".

My object is resizing but I don't know how I can make it keep the original ratio?

View 2 Replies

ActionScript 3.0 :: HD Full Screen Aspect Ratio

Mar 5, 2011

I have set my stage at 1920 x 1440 with a background bitmap that matches that size. The aspect ratio of my stage/bitmap is 4:3. When I run my Flash website on a legacy 4:3 monitor set at 1024x768, the top and bottom portions of the stage image are truncated. The remaining part of the displayed picture has an exact aspect ratio of 16:9.

[Code]...

View 2 Replies

Flex :: The Same Ratio Width/height Of Application?

Feb 21, 2011

How can I make an application with the same ratio width/height? I have an application with width = 800 height = 600. Its width = 1.33*height and when I change the width to 1024 I want the height to change to 768 automatically.

View 1 Replies

AS3 :: Maintain Aspect Ratio In Flash Video?

May 9, 2011

I have created a flash video player using as3 (videoObject) but when I play the video the video is streched how to tell flash using as3 to maintain aspect ratio.

View 2 Replies

ActionScript 2.0 :: Convert Swf File Into DVD With 4:3 Aspect Ratio

Nov 16, 2009

I have 30 seconds spot that I need to convert it into DVD with 4:3 aspect ratio. Does Flash has ability to do it or do I have to burn it using third party software and on the third party software does it has the option to make the aspect ratio to 4:3? I think is 720X480 in pixel right? It has to be NTSC format.

View 9 Replies

ActionScript 3.0 :: Receiving Aspect Ratio From Video?

Jul 2, 2010

how to make a video player and I was wondering if there is a way for me to receive the aspect ratio of a loaded flv or get native dimensions of the video so I know how to scale my video properly according to the loaded flv.

View 1 Replies

ActionScript 2.0 :: Loading Pictures - Possible To Keep Aspect Ratio?

Oct 7, 2006

Is it possible to keep the aspect ratio of a picture loaded with loadMovie, or is there another way to accomplish the same?

View 4 Replies

ActionScript 2.0 :: Maintain Image Aspect Ratio?

Sep 8, 2008

i try to charge a XML images inside a movieclip, but i need this movie clip maintain the aspect ratio. This movie clip gonna change with the size of the explorer, but when this change my image is going stretch. I used this code doesn't work but i try:

Code:
stageListener.onResize = function() {
MC._x = Math.round((Stage.width/2)-(MC._width/2));
MC._y = 153;

[code]....

View 2 Replies

F8 Caps Lock Detection

Dec 16, 2009

I am designing a webpage with a password (yes, I know it can be hacked)I want to be able have an alert appear in the textbox "mess" when the Caps Lock key is activated. (not just being held down). I have already tried this and it comes out as staying on until you leave the page or mess changes.[code]What can I put to make the "CAPS LOCK IS ON" go away when the capslock is off?

View 1 Replies







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