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


Similar Posts:


ActionScript 3.0 :: Resizing And Constraining Proportions?

Oct 12, 2011

I'm doing liquid layouts, and resizing my images while constraining proportions. Here is the code I'm using:

Code:
image.y = (stage.stageHeight/2) - (image.height/2)
resizeMe(image, stage.stageWidth, stage.stageHeight);
//The resizing function

[Code].....

I want it to resize and totally centre itself in the middle of the screen. HOWEVER. I also want to nudge it down 100px, and THEN resize it. I'm having no luck with this though I can move it down 100 px, but then it resizes and positions itself as though it was still in the centre.

View 6 Replies

ActionScript 3.0 :: Auto Resize Flash - Keeps The Proportions Even If You Are Resizing The Browser ?

Oct 19, 2009

Im trying to make a website in AS3 with a dynamic background-video that fills all the page in my browser and keeps the proportions even if you are resizing the browser like this:[url].....its almost working but i dont know what to do to force to keep the proportions of my movieClip and at the same, to fill 100% of my page .This is my code...I have a movieClip with the instance name: "bg".

import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;[code]......

View 1 Replies

ActionScript 3.0 :: Create A Background Like The Attached Image Full Screen?

Sep 9, 2009

I am trying to create a background like the attached image (full screen).I don't like these colors, but do like the effect.

View 9 Replies

ActionScript 2.0 :: Remove Each Attached/duplicated Movie Clip On The Screen?

Jan 20, 2010

How do you remove each attached/duplicated movie clip on the screen?

Is there an easy script for this?

View 2 Replies

Flex :: Forcing Screen Updates For A ProgressBar Attached To An URLLoader Or Slowing It Down

Oct 11, 2010

I have a ProgressBar in MANUAL mode responding an URLLoader's progress events that seems to get drawn far less frequently than I would like. If I debug the app, I can see many events firing from the URLLoader yet it seems that the ProgressBar is being re-drawn at some random and slow rate.

Now if this was my own code (URLLoader is a black box), I would pause once in a while to let the UI update, say via loop with a timer. I presume that the URLLoader itself is blocking the main thread from processing drawing code. Adding validateNow() and invalidateDisplayList() does not seem to help much.

private function onLoadProgress(resource: TResource, evt: ProgressEvent): void
{
_progressDialog.prbCurrentItem.setProgress(evt.bytesLoaded, evt.bytesTotal);
_progressDialog.prbCurrentItem.validateNow();
_progressDialog.prbCurrentItem.invalidateDisplayList();
}

Now there are many TResources (just a class that can manage its data) being loaded in sequence, but the URLLoader is so greedy that it does not let the UI get updated more than a few times when loading & processing (parsing into XML objects) 50 or so 10KB files. So just counting which files loaded visually does not work either; I'm lucky to get 2-3 screen updates the entire time.

Loading a 700MB file looks much better, but again the progress bar updates are random and slow.

Additionally, I'd like to know if there is any way to influence or even control the rate at which ProgressEvents are fired by the URLLoader class. I have not been able to find at what rate it normally dispatches progress events either; is it at a fixed percentage per file or every x frames or milliseconds?

As these are local files, would I be better off not using the URLLoader class and instead switching to FileStream?

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

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

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

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

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

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

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 2.0 :: MC Resize And Constrain Proportions?

Sep 28, 2005

does anyone have an equation for resizing mc and constraining the prooprtions also.. through AS

View 6 Replies

ActionScript 2.0 :: How To Constraint Image Proportions

Nov 23, 2005

Im developing a full browser flash website for a photographer and I should make the pictures really big. Now my problem is that when you see the website in a smaller resolution than the one im using, images get too big. What i need is a function that resizes the image box according to the stage size, but I dont know how to constraint the image proportions. For instance I would make something that would do imageMc._width=Stage.width*0.8 so I could have the image with 80% of the screen size.... but how to make it proportional with height?url...

View 2 Replies

ActionScript 3.0 :: Tweening Size Without Locked Proportions?

Jul 19, 2009

My problem is that I want to scale my symbol in ONE specific direction. Up, down, left OR right. Flash automaticaly scales a symbol equaly to both sides, changes the x/y values of the opposite edge from the symbol, but I don`t want this.

I mean, I want to scale my symbols just like shapes. If I scale to the right, the left side stays on the same X/Y values.

I can`t do this on flash IDE nor in actionscript. I would like to know if there are any solution to both cases

I want this because in my movie clip I have a mask (a symbol made from a square) and I need it to scale upwards. But doing this by code makes it enlarge downwards equally screwing up my animation.

View 3 Replies

ActionScript 2.0 :: Fitting Images And Maybe Preserving Proportions

Aug 9, 2005

At the moment I am using _root.image.loadMovie(photo.jpg);to load a jpeg into a movieclip which results in the picture being loaded at its full size. Whats the best way to get it to fit to the "container" movieclips size.Also is there a way to get it to preserve its proportions so it doesn't stretch?

View 9 Replies

ActionScript 3.0 :: Resize Containers Content But Constrain Proportions

Apr 13, 2011

I am developing an AS3 website (client's request) but have run into a little trouble. My template.swf contains a fixed Header/ Footer and is resized to fit the browser window. The middle content is resized when the browser is resized using:

[Code]

View 3 Replies

Actionscript 3.0 :: Resize An Image But To Keep The Proportions Between Width And Height?

Mar 25, 2010

How can I resize an image, but to keep the proportions between width and height?

View 2 Replies

Actionscript 3.0 :: Proportions Work Fine But Movie Doesn't Start?

Mar 18, 2011

I have an flv loaded externally. I've added it to a movieclip and want it to fill the stage as my background and scale proportionally. The proportions work fine and the movie seems to scale fine. My problem is the movie doesn't start right away. It shows blank until I resize the browser then it shows up fine.Here is the code:

Code: Select allimport flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;[code].............

View 1 Replies

Flash :: Restrict/reset The Scale Proportions Only In Special Case That The StageWidth/Height Are Smaller Than The Movieclip?

Feb 1, 2010

I'm trying to make a movieclip scale proportionally only if the item is being resize smaller than the current.Obviously I can use the ScaleX/Y values like so:

if (cont.scaleX < cont.scaleY ) { cont.scaleY = cont.scaleX; } else { cont.scaleX = cont.scaleY; }

I need to restrict/reset the scale proportions only in special case that the stageWidth/Height are smaller than the movieclip.

View 1 Replies

Actionscript 3 :: Resizing A Sprite Without Resizing Its BitmapFill (or Its Contents For That Matter)?

Nov 1, 2010

I am not simply trying to contain things and have the container resize without the contents resizing. I would just use a simple MovieClip for that.. My main focus is on the use of BitmapFill. I'm trying to make a repeating background image for a container; thus far I'm able to draw my BitmapFill sprite to the size I want. (Which is the stage's height) but when the stage is resized, I want to re-size my container but have my containers BitmapFill crop or add more as the window is resized bigger or smaller. Allow me to illustrate what I mean:

I've got a simple rectangle sprite that fills with a bitmap from the library and a simple resize handler function that detects when the window has been resized.what I would like to do is have my rectangle resize to the height of the stage.stageHeight maintaining its bitmap fill, but not resizing the bitmap fill or any children within the sprite.

From what I've read, this is a little tricky because the sprite resizes in relation to what it contains.. or.. something like that.. I really don't know any more.. I saw one example where a person extended the sprite class but I don't know why or how..

in my library there is an image called 'pattern' and my code looks like this:

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true);

[code]....

View 2 Replies

ActionScript 3.0 :: Smooth Resizing As Opposed Going In And Resizing Every File Manually?

Sep 11, 2009

I'm loading a few pngs/jpgs externally so they can be swapped out occasionally, and the issue I'm running into is when they are shrunk they become fairly choppy. Is there a way to have flash re-render them, or do something to smooth the resizing as opposed to going in and resizing every file manually myself?

View 1 Replies

ActionScript 3.0 :: Resizing A Sprite Without Resizing Its Auto-fill?

Nov 2, 2010

I've got a little problem with BitmapFill, I'm trying to use a sprite as a container for various things and i would like it to have a filled pattern background. my problem is that i want it to resize the sprite to the height of the window but not have the background fill resize, and add more / crop as the window size is changed. to illustrate what i mean, please view the diagram attached to this post .

I have an image in my library called 'pattern' and my code is as follows:

ActionScript Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

[Code].....

View 2 Replies

Actionscript 3 :: Menu Bar Always Anchor The Bottom Of The Screen In Normal And Full Screen Mode

Dec 11, 2011

i am a beginner in action script / flex framework and i am facing a problem: i would like to have like a menu bar always anchor the bottom of the screen in normal and full screen mode... i try to set my component with bottom = "1" (so it should alway be at 1 pixel from the bottom of the stage ... But .. NO :)

[Code]....

View 1 Replies

ActionScript 2.0 :: Detecting Screen Width - Menu To Fit To The Entire Screen Regardless Of The Users Resolution

Oct 13, 2003

The problem that I'm facing is in regards to the width of a sliding menu that I've created. The menu slides based on mouse x position and width of the movie. I would like the menu to fit to the entire screen regardless of the users resolution. I wanted to know if there's a way to detect a users screen width and then adjust the variable for screen width within my actionscript .fla if necessary.

View 10 Replies







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