ActionScript 2.0 :: Keeping Videos And Images Aspect Ratios?

Jul 13, 2009

I have been watching too many peoples asking about various aspect levels for images and videos. Here is a simple demo to show your image/video with different aspect ratio levels. I hope the aspect ratio list is very tiny like, 3:2, 4:3, 16:9, 1.85:1, 2.39:1. Here is sample code:

Code:
function setAspectRatios() {
var widthR:Number = 2.39;
var hightR:Number = 1;

[Code].....

View 1 Replies


Similar Posts:


Professional :: Handle Different Aspect Ratios?

Mar 7, 2010

I am trying to create a Flash based website that runs full screen. It will have a series of still photos or possibly, a video as a background with a few menu buttons on top of them. What I don't understand is how to compensate for the various monitor aspect ratios. If I make it wide screen, a square monitor will show blank bars at the top and bottom. You can see an example of what I'm trying to do at [URL] Also, what is the optimal size to make the Flash video? I am running Flash MX 2004 (Version 7)

View 1 Replies

Media Server :: FMS Video Playlist With Different Aspect Ratios?

Jan 31, 2011

I have an application, what playing server side playlists. The problem is: in the player (FLVPlayback) the videos with different aspect ratios displaying with the aspect ratio of the first video.

View 2 Replies

ActionScript 3.0 :: A Good Equation To Keep Aspect Ratios On Resize?

Jan 17, 2009

I have a simple silly question that I've seen posted here a million times but now I can't seem to come across. Whats a good equation to keep aspect ratios on resize?

View 4 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 2.0 :: Fullscreen Resizing Keeping Images Centered. Solution=Demonoid Invite?

Jul 25, 2009

Hate to drop some bribe on my first post and all but I need answers fast and if any of you have been waiting for as long as I did for a demonoid acct you should be able to figure this out real fast Anyone with some decent flash/as2 skills should be able to figure this out real quick. First one to send back a working file gets the invite code.Ok long story short I purchased a fullscreen xml gallery from FlashDen that is supposed to resize. Here is the link to the demo...Well problem is it only resizes the images based on their width and not their height. (Panorama would show fine but a tall portrait would just go off the page) You will notice in that demo how the resizing is fixed to the side of the painting and not the bottom.

Well, to me this seams useless because I really need every user to be able to see the full pictures no matter what screen resolution they are at and no matter how they adjust their browser window.Believe me when I come posting on threads it means I have spend many many hours trying to figure it out myself...In this case I have spent 30 hours trying to solve this in the last two days....Now I am over the deadline I gave to my client/family member and am still at square one basically.Also note I have figured out how to make it so that it fixes to the bottom and thus shows the tall images in full but when I do this it is no longer centered in the page.

I am really tired and worn out but would love to work with someone's advice to make this a reality.Attached is everything you would need. Please note that by downloading this attachment you are agreeing to only using these files to your new friend Sean and would never think about using this for your own project.Attachment is too big...~3Mb so I had to put it on a server.. Grab it here.

if(heightRatio<widthRatio){
eval(getResizeClip)._width = widthRatio*bgWidth;
eval(getResizeClip)._height = widthRatio*bgHeight;

[code]....

View 12 Replies

ActionScript 2.0 :: Math, Ratios Between +/-'s?

Apr 24, 2003

here's where all you math genius' get to help me out. I know that this principal is not difficult and was taught sometime during my highschool years.I need a math formula which reduces the ratio of any x:y to the smallest quanity possible. Basicaly so that the smaller of the two numbers is 1 and the other number is whatever it would be, compared to 1... but, I need it to work for both posative and negative numbers.(I'm the ultimate Math newb.. bear with me)

so. I have x=20, y=20 is 1:1
-20, y=-10 is -2:-1
x=10, y=-5 is 2:-1
ect.

so what is the formula for that?

View 14 Replies

Professional :: Embedding Videos And Images?

Jul 26, 2010

How can i embed images and videos in swf through actionscript in flash? I am reading an xml through actionscript (3.0) and loading the content But is it possible to embed them and when a compile it , i get swf with content embedded in it (this possibly eliminates the need of giving the content separately with swf )?

View 2 Replies

ActionScript 3.0 :: Embedding Videos And Images?

Jul 26, 2010

I am using flash for developing a project(flash cs4 professional) with actionscript 3.0. I am reading an xml file from which i am getting the path of the videos and images to be loaded.When delivering the swf file, i also need to give the images and videos along with swf file.Is there any way through which i can embed the images and videos in compiled swf file and hence preventing the content to be given with swf file?

View 5 Replies

Professional :: News Scroller With Images/videos?

Sep 4, 2010

I am trying to create a news scroller such as the one on espn.com where you have a scrolling news component that can contain images and or videos and links to news stories stored in the database.

View 2 Replies

ActionScript 3.0 :: Proper Resize Images And Videos At Runtime Without Losing Quality?

Dec 9, 2009

I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion. The problem is that my film still looks "pixeled". I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
 
This is the website: [URL:]. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.

View 2 Replies

Flex :: Charts - AreaChart Gradient Fill Not Applying Ratios Correctly

Sep 27, 2011

When doing a gradient fill on an area chart, the gradient ratios are used only between the min and max of the chart. The area below the min is then filled with the last color in the gradient.

To make sure that it was using the ratios only between the min and max I inserted a zero (0) into the chart and the gradient expanded to the full height. I also checked the gradient values by creating a with the gradient fill.

How do i get the ratios to be effective through the entire fill not just between the min and max?

View 1 Replies

Media Server :: Create Videos In A Playlist That Can Limit The Views To 10 Videos Per User?

Nov 1, 2011

Is there a way to create videos in a playlist that i can limit the views to 10 videos per user?

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

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

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

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

ActionScript 2.0 :: Retain Aspect Ratio Of Background Image?

Jan 4, 2010

I want to load it always to fill the whole screen but to retain the aspect ratio. So far I am able to stretch it to 100% of the screen but the aspect ratio is not preserved. The instance name of the mc in which I load the background image is "back".

Here is an example of what I need: [URL] Try to resize browser window to see how the background image preserves its ratio.

PHP Code:

function loadFunc(What, Where) {
var LoadingObject = new MovieClipLoader();
var NewObject = new Object();

[Code].....

View 8 Replies

Professional :: Liquid Layout - Aspect Ratio Of Background?

Apr 13, 2011

I am working on a new site with a liquid layout and I havent been able to find a way to keep the aspect ratio correct with the different sizes.

[Code]...

the image size im working with is 990x600 for a 1024 display.I would like the image to be centered and never to have empty area, so if it needs to it would strech past the sides.

View 3 Replies

ActionScript 2.0 :: Fullscreen Video With Correct Aspect Ratio?

Jan 9, 2010

I have a video gallery and some of my videos are in 4:3 ratio and some in 16:9 ratio. I have also a fullscreen function on my video player. The problem is on a screen with 16:9 ratio which most of us have, my 4:3 video's is stretched across the screen. They don't maintain their pixel aspect ratio.

View 1 Replies

ActionScript 3.0 :: Getting Pixel Aspect Ratio As 1:1 When Use Capabilities Class

Feb 25, 2011

Every Time I am getting Pixel Aspect Ratio as 1:1 when i use Capabilities class. How can I get the actual ratio when it is Non-square pixel?

View 1 Replies







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