ActionScript 2.0 :: Proportional Scaling Mc In Liquid Layout?

Mar 12, 2011

I am using the following code to fill the browser window with an image and scale it up or down....works great. I would like to proportionately scale a mc but not have it initially fill the screen. It would start centered in the window at a initial size but then scale up as the browser window opens but not scale back down below it's original starting size.

this is the code for the full screen:

port1Height = new Object ();
port1Height = port1._height / port1._width;
port1Width = new Object ();
port1Width = port1._width / port1._height;

[code]....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Scaling A Mc In A Liquid Flash Layout

Jan 18, 2010

I am sure this is an easy one but I can't figure it out: I have a movieclip (tester) that I am locating on the stage via the following code:

[Code]....

What I want to have happen is have it start in the defined location but when you drag the browser window open the "tester" movieclip scales up in size but stays centered on those cooridinates - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control ( by percentage) how big the movie clip grows as the window opens.

View 0 Replies

ActionScript 3.0 :: Liquid Layout Site Not Scaling Correctly

Mar 24, 2011

I have made a liquid layout flash site in AS3 but it doesn't rescale correctly in any browsers above 1440x900. I know most people don't have screens bigger than this but it should be scaling to the entire window regardless of the screen size. Can anyone take a look at my code which has resize handlers but still no joy. [code]...

View 0 Replies

ActionScript 3.0 :: Flash Liquid Layout Site Not Scaling Correctly?

Mar 24, 2011

I have made a liquid layout flash site in AS3 but it doesn't rescale correctly in any browsers above 1440x900. I know most people don't have screens bigger than this but it should be scaling to the entire window regardless of the screen size, small or large. Can anyone take a look at my code which has resize handlers but I still have no joy. This is the website but I am not allowed yet by this site to add the entire url! [URL]

package {
import flash.events.MouseEvent;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code].....

View 1 Replies

ActionScript 3.0 :: Liquid Layout Site Not Scaling Correctly In Large Browsers?

Mar 23, 2011

I have built a liquid layout Flash site using AS3 but it isn't  scaling correctly once I go above 1280x1024. I am currently using a Mac  screen with dimensions of 2560x1440 and it looks terrible. The menu  pushes to the top and the bg and page info stays central but with no scale.[URL]..
 
The HTML is 100% w+h so it's obviously something  within the AS3 code. This is causing me nightmares so if someone could  take a look at the code pasted and see if there is a way to resolve

[Code]...

View 11 Replies

ActionScript 3.0 :: Proportional Image Scaling ?

Nov 17, 2010

I have been following the instructions posted here on how to achieve proportional image scaling: http:[url].....I want to have one image background for one frame, and then another image background on another frame... so when the viewer goes to different parts of the site the scalable background image changes.I copy and pasted the AS3 code into the actions section for the frame:

//set stage for FBF
//set stage for FBF
stage.align = "TL";[code].....

It gave me a duplicate function error.So I changed all the variables 'pic' to something else... for example,'pic1'.Still didn't work. Then I changed 'sizeListener' to 'sizeListener1', still didn't work.Then I changed'scaleProportional' to'scaleProportional1' and it kind of worked, but keeps giving me the error that 'scaleProportional1' but still keeps giving me errors.how I can implement multiple instances of this scalable background script on multiple pictures without conflicts?

View 2 Replies

How To Do A Liquid Layout

May 11, 2010

I'm just learning how to do a liquid layout,I found one tutorial which gave me this basic script:[code]It does what the tutorial says, but there's an error in the output. It doesn't work when I give the 2nd function another name or when I combine both functions. Is there a way to fix this script, or is there a better way to approach this?

View 2 Replies

ActionScript 3.0 :: Tween MovieClips - Proportional Scaling X And Y

Jan 28, 2011

I'm currently using the Tween-class to tween my movieclips (just the basics as x-position, etc.). But I'm struggling to tween scaleX and scaleY as the tween does not seem to take care of the centerpoint of the movieclip. I want the movieclip to scale proportional and not just from left to right.

View 3 Replies

ActionScript 3.0 :: MovieClip With 5 Images - Proportional Scaling

Jan 19, 2010

I have a Movieclip containing five images in a row. I have seven images inside a mc next to eachother like a T (Five across and three down) with one image being the center image. The images are under a mask an then the images tween on the X and Y but obviously only the masked part of the image is visible. The mask is 1280x649 and I was wondering how to proportionally scale only the masked area to full screen. I have the following code which works perfectly on a single image inside a mc but how do I do now?

Code:
stage.align = "TL";
stage.scaleMode = "noScale";
var picHeight = pic.height / pic.width;
var picWidth = pic.width / pic.height;
[Code] .....

View 7 Replies

ActionScript 3.0 :: Proportional Image Scaling - Transition?

Jan 27, 2012

I have the following code from FW to scale my background image while keeping proportion, however how do I change/fade into other pictures using Pic as my MC?

Code:
//set stage for FBF
//set stage for FBF
stage.align = "TL";

[code].....

View 9 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 :: Proportional Scaling Makes MC Disappear

Feb 11, 2010

I'm creating a simple liquid flash site layout with one MC that does not scale and remains at a constant position, and one mc that should stretch to fit either the height or width (whichever's larger) of the stage, but scale proportionally. [code]...

View 3 Replies

IDE :: What Are The Downsides To The Liquid Layout

Jun 20, 2007

This is for the more advanced developers or to anyone who knows:

what are the downsides to the liquid layout? because i use'em, i love'em, and i can't understand why everyone doesn't use'em.

View 11 Replies

IDE :: Making A Liquid Layout?

Dec 10, 2009

I am making a liquid layout in flash using as3,it worked pretty well with the following code, for the movie clips that are going to be on stage from the very beginning.

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
setStage();[code]....

But when I try to load a movie clip by clicking a button and using the ddEventListener , it dose load, but doesn't float here is the code that I think have some problem:

demon_mc.addEventListener(MouseEvent.CLICK, getSlider);
function getSlider(event:MouseEvent):void
{[code]....

as you can see I have defined the variables Width adn Height inside the function as well and I am using WIDTH/2 to define the x position,Well it laods in the exact position but won't float as I minimize the stage

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

Flash :: Specify Liquid Layout With Swfobject?

Nov 14, 2010

swfobject.embedSWF("flash/main.swf", "myContent", "100%", "100%"...

It turns out the above doesn't work,how can I instruct to swfobject that I want the swf to be as wide/high as possible?

View 1 Replies

ActionScript 3.0 :: Liquid Layout Inside Of MC

Jan 22, 2009

I have all of my content inside of a movie clip placed on my stage and through timeline AS 3 I have a simple scripting that aligns and sizes that MC (and all of its contents) to keep proportion with the stage and to fill it at all times I am having 2 issues

after the preloader, and intro play the content for the gallery pages (it is a photo website) clips the buttons down at the bottom (all dependent on browser size at the time) however once the window is resized, it Snaps into a proportion that I like. the second issue is more than likely related. the mc that I am using as the background (ecru texture) does not fit to fill once the screen has been resized I have minimized the noticeability by changing the background color to come close to my texture but I would like to know why these issues are happening. here is the development page [URL] this is my main timeline code

[Code]...

View 2 Replies

Actionscript 3.0 :: Animation With A Liquid Layout?

Jul 29, 2009

I'm doing this site (swf is attached) and as you can see the header, footer and the menus are liquid, the width changes depending of the size of the window.My problem is: How can I animate that 3 components if they are liquid ? After the loading of the website I'd like to animate the bars growing up from the right to the left, how can I do that if I don't know the widths ?

View 6 Replies

ActionScript 2.0 :: A Liquid Layout Which Also Can Be Scrolled

Feb 10, 2008

I am trying to create a flash site that utilizes a liquid layout, but also allows for vertical scrolling, something which I am not sure if it is possible. The code for the liquid layout that I am using is this one [URL]Currently, such code creates this layout [URL] Obviously one of the key features of a liquid layout is that takes up as much or little browser real estate as you give it. However, I have found that when I create a liquid layout using this code for a flash site that is vertically longer than the browser window (such as vertically long body of text) the code does not allow you to scroll down. The liquid layout causes there to be no scroll bars in the browser.

I hope I have described my problem clearly. My question is; Is there code that would allow for the flash site to be liquid only horizontally, while VERTICALLY the flash site would be able to be scrolled.

View 1 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 :: Liquid Layout Rearranging Thumbnails

Jul 12, 2010

I'm trying to arrange thumbnails / movie clips within a liquid GUI layout where on resizing the browser window, the thumbs shift / rearrange to fit the new size.I have followed the tutorial on URL...and its been great but doesn't explain how to rearrange elements. URL...

View 2 Replies

ActionScript 3.0 :: Liquid Layout For Externally Loaded Swf?

Jun 29, 2010

1. my easing background (the background which moved as my mouse movement)2. my externally loaded swf contentfor detail this my workstage pic

View 1 Replies

ActionScript 2.0 :: Find Flash Liquid Layout?

Feb 21, 2009

Where to find a tutorial for flash liquid layouts?

I want to place my footer, navbar in a exact part of the screen for whatever resolution the user has.

View 1 Replies

ActionScript 3.0 :: Position In A Different Way After Resizing And Liquid Layout

Mar 10, 2011

I've made a liquid layout with 100% Height and 100% Width to get the page to display in every monitor resolution and it's working fine. The only problem is with four movie clips that I want to position in a different way after resizing ( I want the logo to be always on the top left, the nav bar on the top right and so on?.)

[Code]....

View 3 Replies

ActionScript 2.0 :: Sliding Menu With Liquid Layout?

Apr 30, 2011

I made (in fact assemble) an sliding menu wich works fine, the thing is i realized i need liquid layout in my site i cant make it work with this particular menu, i found nformation an i could make a flas movie with liquid layout but with simple mc.

movieclip: menu_mc (this is its instance name)
code in keyframe:
/// begin sliding code

[code]....

View 5 Replies

ActionScript 3.0 :: Liquid Layout Browser Resize?

Feb 16, 2011

I have created a liquid layout site in AS3 and am having an issue with the stage resize. Although the elements flow with the browser on resize I notice if you drag the browser's window to the right a white border appears. Now obviously not everyone would do this but it's more of a concern for anyone viewing the site on a large resolution screen. The site is currently 1200x800 in it's original dimensions and I want it to retain it's size in larger browsers.

View 1 Replies

ActionScript 3.0 :: External SWF Position In Liquid Layout?

Jan 6, 2011

I am making a liquid flash site with a video player which loads within the central movieclip. When the site loads everything sits in place perfectly, however if the browser is rescaled in anyway the external swf pushes up to the top of the screen and stays there permanently. This is the link to the site:http:[url]...... It's not the liquid layout code for the mc as this rescales fine, just the external swf doesn't. This is the code I am using to load the external swf also:

var Xpos:Number = 0.5;
var Ypos:Number = 0.5;
var swf:MovieClip;[code].....

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

Problem: Scrolling Thumbnail Panel In Liquid Layout?

May 7, 2009

I'm trying to create a scrolling thumbnail panel using an xml file. It works fine when i run it initially. But when I resize the stage the scroll feature gets all screwed up. I've attached my code below.

Code: Select allimport gs.TweenLite;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT

[code]....

View 2 Replies







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