ActionScript 2.0 :: Making An Item In .fla Scale With Browser?
Feb 7, 2006
I am trying to make my background movie clip(bg) scale to the size of the browser window (or whatever size that might change to) while the rest of the content is at it's normal size.
on the key frame where the background clip is i have:
Code:
private function initStagelistener(){
var bg = this;
_stageListener.onResize = function() {
[Code]....
View 2 Replies
Similar Posts:
Jul 18, 2009
Fairly new to this sort of thing. I am making a page where the background needs to scale to the browser. Background is a mc. Here is the code:
Stage.scaleMode = "noScale";
Stage.align = "C";
sizeListener = new Object();
[Code]....
Now what i've noticed is that when it first loads into the browser it does not scale. When I manipulate the browser by pulling up on the bottom of the browser the background distorts and the top of the background is hidden. When I slide the left side of the browser to the right the background again becomes distorted and slightly hidden on the right edge of the browser.
By the way it seems like it ignores the actionscript when it first loads. Then when I first try and do a resize it follows the above actionscript once . Then it ignores it for any future resizes.
View 2 Replies
Aug 25, 2010
how I can have my swf fill the entire browser (as in publish settings 100% w & h etc) but not stretch/distort the text and images in the swf.
There is a site [URL] that does this. It fills the whole screen yet when you resize, the objects do not become distorted.
I may have the wrong approach with publish settings width & height 100%??
View 2 Replies
Feb 19, 2010
I want my flash content to scale when I scale my browser window.
View 5 Replies
Jan 21, 2010
when i edit an objects z value in flash, the "scaling" is not centered, i want to emulate the same effect as center scaling x and y but using Z, how fo i do this?
View 1 Replies
Aug 6, 2010
I have some movie clips that when moused over, become visible. When clicked the clips are clicked on they tween to center-stage and zoom to fill the extent of my stage. One the zoom completes, I'd like the mouse over effect and function to no longer be active. I've been trying this by just making the mc invisible at scaleX>1. This does not do the trick...
if (allthings.NEZOOM.scaleX>1{
allthings.NEZOOM.alpha=0
}
The function that is running the MOUSE_OVER is called NEOVER and looks like this
function NEOVER(e:MouseEvent):void{
TweenLite.to(allview.allthings.NEZOOM, .5, {autoAlpha:.5,overwrite:true});
TweenLite.to(allview.allthings.NETXT, .5, {autoAlpha:.85,overwrite:true});}
Is there a way I could make NEOVER inactive after once I click on the NEZOOM movielip? The click event looks like this
[Code] .....
View 8 Replies
Feb 16, 2002
I need to scale an SWF in a browser in such a way that the MOVIE fills up the screen (100%w&h) but does not stretch the content. I know this is possible for projector, but is it possible for a browser?
View 7 Replies
Oct 8, 2010
I'm loading png files on movieClips attached on the scene dynamically (reading an xml file). then i'm making a tween (with actionscript) to scale the container clip on RollOver.
the png file pixelate when the clip is scaled(to 110%).
View 1 Replies
Aug 11, 2009
I uploaded a swf file with dreamweaver as a stand alone window and it works fine. How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller? I would like to get the swf file to scale along with the browser window. I posted this in dreamweaver but was told this is an action script issue.
View 5 Replies
Jul 17, 2010
I've created a website in Flash and have posted it to the net. I want it to scale as the user resizes the window, but having little formal training in Flash I'm not entirely sure how to go about it.
View 4 Replies
Jun 6, 2005
it should be a basic task but i cant figure out how to keep a swf from scaling to the size of the browser window. Im making a web site and i want to keep the swf in the centre while showing the entire swf ( ive got over hanging images i want to show), if i can do that and have it embedded in html would be best but anything helps. Ive tried the fscommand but dosent seem to effect within a browser.
View 1 Replies
Sep 3, 2009
I am making a Full Screen flash site and I need my BG to scale proportionately. Currently I am using:
Code:
_root.attachMovie("bg3","bg3",_root.getNextHighestDepth());
bg3._x = Stage.width/2;
bg3._y = Stage.height/2;[code]...
View 1 Replies
Sep 10, 2009
if i was to make a flash website is there a way that i could have it scale the width to fit the browser, and scale the height so that it keeps the same aspect ratio and doesn't stretch the contents out of proportion?
View 3 Replies
Jan 23, 2010
My swf size is approximately 1000x700. If the browser size is smaller than this it needs to scale down but if it is larger I don't want it to scale. Just like this [url]...
I've tried publishing the Flash settings at Scaleefault(Show All) which scales it but I need to stop the scaling upwards at 1000x700.
I'd have thought that I could say in the html if (width<1024){scale;} and if(height<700){scale;}. But it's not working. Should it all be done in the html?
View 3 Replies
Oct 30, 2010
I'm using an embed flash player in a web page and I want to scale it to browser window.hen I put "height: 100%" in the flash parameters, I get a blank page.This is the code of the page :
SlideShowPro({
target: "slideshow",
xmlFilePath: "galeries/images.php?album=1",
[code].....
View 1 Replies
Jun 3, 2011
I am wondering how would I scale an image on browser resize with minimum and maximum width and height parameters?
I know how to use the Event.RESIZE function to make my image proportional with the browser using stage.stageWidth/Height, but I am trying to figure out a way to have a movieclip or image scale up or down to a certain dimension such as on browser resize the image max would be 640x480 and the minimum being 320x240.
View 1 Replies
Jun 9, 2011
I have a swf file which loads the YouTube API player at 640px by 400px:
function onPlayerReady(event:Event):void {
trace("player ready:", Object(event).data);
player = loader.content;
player.cueVideoById( t***Path , "0" , "medium");
player.setSize(640 , 360 );
[Code]...
View 1 Replies
Mar 23, 2008
I need to achieve the image scaling done here (not copying the site, just need that image scaling technique)[url]...
i've got the listeners in place, and have no problem getting images to fit the browser windows. the problem is stopping the distortion, while also making sure at least 1 dimension fits the browser's dimensions (ie no borders appearing along one direction). i don't mind the browser 'cropping' the image.
View 9 Replies
Jul 25, 2009
I'm looking for a way to have the movie play at set dimensions, if the screen is big enough to play it, and scale down if the screen is smaller or the browser is resized. An example of this is here [url]...
As you can see, it's not full screen but set width and height, but when the browser is shrunk it scales it's content to fit within the browser.
View 7 Replies
May 18, 2010
resize an MC on browser resize (or if detected a small monitor resolution).
This is how things should be work:
- MC (my_ssp) should be positioned always in the center of the stage
- on browser resize, MC move to keep the center of the stage
- when stage height is < of 750 px (max MC height), the MC start resizing proportionally with the stage.
I attach the code:
Code:
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;
[Code].....
View 2 Replies
Mar 16, 2009
What I'm wanting to do is load an image into my browser dynamically at full screen. And then when the browser window is scaled the picture scales proportionately with it. (I've seen it on loads of sites, but for some reason I just can't fathom it out (which is really bugging me). I'm using the gaia framework (which is amazing) to do this by the way (not sure if that makes a difference of not?). This is what I've got so far...
[Code]...
View 8 Replies
Feb 23, 2010
I am having a issue scaling the swf in the browser. The properties are set in the html tab correctly I think. I published in flash and it scales the movie only on the first and second frame(while the preloader is playing). then it jumps back to the original size of the movie even when the browser window is smaller. My settings are
Demensions: percent. 100
Scale: default (Show all).
here is my html code for reference.
Code: Select all<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>people page</title>
[Code].....
View 8 Replies
May 30, 2007
I am trying to achieve an effect seen as on this website. [URL]
I want to have a background image that resizes to the browser window (my other elements retaining their size) - but stays in scale. I have been using the code provided at gotoandlearn which tiles the image. Here is the code used there.
import flash.display.BitmapData;
GreyBar._xscale = Stage.width;
var tile:BitmapData = BitmapData.loadBitmap("tile");
[Code]....
View 5 Replies
Oct 5, 2010
What I want to create is a movie clip, that I can drag, but only on axis, such as up and down, but not left to right. For example, only on an X axis, but not on a Y axis.The code i'm currently using to make the items draggable is:
pc.onPress=function(){
startDrag("pc",true,50,50,550,350);
removeMovieClip("cnt");
[code]....
"pc" is the instance name of the movie clip I want to drag. "cnt" is a line that I've got drawn between the various draggable points I've created.
View 3 Replies
Apr 7, 2009
I made a drop down menu based on xml file and some simple summation after each click of the item. This drop down menu code is based on the xml driven menu. What I need is how to make every item can only be clicked once, so once clicked, it should not be able to be clicked any more.
View 2 Replies
Jul 25, 2008
Does anyone know how they are scaling these images to the size of the browser window but keeping all of the graphics the same scale?
Check out the portfolio section of this site to see what I mean.
[URL]
View 1 Replies
Jul 24, 2010
What's the best practice to scale images in full browser sites? I am new to Flash and have a pretty good understanding of how most things work in Flash. My newest goal is getting Flash to scale 100% on all browsers. But when I do, my pictures become pixelated and I'm sure videos would do this as well. So my question is - what's the best practice or actionscript to keep this from happening? Sites like [URL] that have utilized their abilities to scale their images on any browser are great examples. How can I achieve this?
View 1 Replies
May 18, 2010
I'm working with actionscript 3 and have a trouble. I need to write player where users will see text on the front of the movie. The text is text field of type "Dynamic text". The problem is that I need to make this text object transparent for mouse move and clicks.
I tried:
.mouseEnabled=false;
.selectable=false;
when I click on it - it does not pass clicks through it.
View 1 Replies
Jul 28, 2009
How can I publish a flash movie so that it resizes automatically when the browser is resized? What is the html or flash code for that?
I am not useing Flash or Flex but FlashDevelop so I beleve I have to do it in code to make it work.
View 2 Replies
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. I thought I had a pretty good grasp on the code for that, but when I put it in, the mc doesn't scale at all, in fact it just disappears! Could anyone take a look and let me know if you see what's wrong?
[Code]...
View 3 Replies