ActionScript 2.0 :: Allowing Background Scaling - Content Not

Jul 15, 2004

I want to use a gradient as background for my flash movie, but I want this background to cover the whole browser's window just like Adopt Design does it (check out Adopt Design). The content of the flash movie should NOT be resizable with the browser's window though. So, I used this code:

[Code]...
in the HTML file I did set the margins to 0pix and the SWF's height and width to 100%. But when I type in the address in the browser to open the page the first time, I see the flash movie in the center with white background around it anyway, and when I resize the browser's window (even if just 1pix) everything is perfect. What's happening? check the problem in a JPG: the site (notice what changes when you resize the window, after opening)[URL]

View 4 Replies


Similar Posts:


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

Scaling Background / Whole SWF Object Without Tiling Background

May 15, 2009

I really don't know much about flash or swf files but in updating my portfolio I came across Polaroid gallery. I have managed to update the background jpeg with my own picture and remove the fade effect. However in the original program the background was tileable so when seen in a full screen browser looked fine. As my picture is not tileable I would like to know if it is possible to scale the background or the whole swf object without tiling the background.

View 1 Replies

ActionScript 2.0 :: Scaling Background Pattern?

Jan 30, 2009

I plan to have the swf fill the browser window, and this should work fine for that. When people click on a button, I want the view to "zoom in" by scaling to 200% and setting the x and y coordinates appropriately.How can I do this with the repeating pattern, because the way I have made it is a series of movieclips. Is there a better way to make it so it is just one movieclip I can control the scale and position of?

ActionScript Code:
tileWallpaper = function () {
tileWidth = 200;

[code].....

View 0 Replies

IDE :: Resizing List Without Scaling Content?

Nov 2, 2009

I have a List Component being resized at runtime based on the size of the Stage. It seems to scale the content rather than just changing the bounds of the list. Is there a way to change its size programatically without scaling the content?

View 1 Replies

ActionScript 3.0 :: Content Not Scaling On Window Resize?

Apr 10, 2010

How come my content isn't scaling when I resize the player window (see attachment)?

View 2 Replies

ActionScript 3.0 :: Scaling Loader Class Content?

May 27, 2009

I have a "master" SWF file into which I load content (other SWFs) via the Loader Class (with code below).
var contentLoader:Loader = new Loader();this.contentContainer.addChild(contentLoader);I load the content (these other SWFs) into a MovieClip container on the stage called "contentContainer". The "contentContainer" is much smaller than the "master" SWFs stage and also much smaller than the original size of the SWFs that the Loader is loading in. Also, and this is very important, the "contentContainer" itself is sized -- not scaled -- (see code) and placed on the stage depending on how large the stage is scaled (I am trying to make one of those "liquid stage" flash sites that fills the browser window with flash content regardless of window size).//this resides in a function that is called whenever the stage RESIZE Event is fired

[Code]...

View 3 Replies

ActionScript 1/2 :: Only Scaling Some Content When Going Full Screen?

Feb 1, 2010

I have an AS2 image gallery with thumbnails and fullsize images and descriptions that load from external XML-files. I have found out how to take this gallery into true full screen. But when going full screen, I want only the full size image to scale up. Descriptions and thumbnails should stay the size they have when the flash movie is in its normal display state.
Attachments: Gallery.txt.zip (998 bytes)

View 3 Replies

Professional :: Image Loaders Not Scaling Content?

Jul 19, 2010

I have a couple of Image Loaders, the images that they call are bigger than the components themselves but have turned on scaleContent to ensure that it fits and scales to size. This works fine across many platforms but i've found that on some systems it displays the imported image at it's true size rather than the actual size of the component.

View 1 Replies

ActionScript 3.0 :: Resize MovieClip Without Scaling Content?

Jun 10, 2011

Essentially I'm building an application in Flash, just for the fun of it really. Upon the initial design it was just a static size, now however I've been working on making it completely resizeable (with the original size as the minimum). I've done this on most of the screens correctly. However on the main screen I have several components. All custom built MovieClips basically, and inside these are more MovieClips, and inside those are even more movieclips.

For my question, I'm going to be using a button as my example. I created a button movieclip with a resize function to call after I change the size of it. So it works like this:
ActionScript Code:
buttonMC.width = 200;
buttonMC.height = 150;
buttonMC.resized();

Now this button is inside of another movieclip which is designed to just house a group of similar movieclips. (this structure is not changable; several hundreds of lines are code are specifically designed around it). How to get our button's width from the root timeline, we'd do this:
ActionScript Code:
trace(housingMC.buttonMC.width);

Now, when this frame gets resized, the resizing script changes the width height of the housingMC. Something like this: (not a working example)
ActionScript Code:
//resize listener {
housingMC.width += stageWidth - oldStageWidth; //width difference
housingMC.width += stageHeight - oldStageHeight; //height difference
And the housingMC changes to the correct size in the correct position of the screen.
[Code] .....

View 7 Replies

ActionScript 2.0 :: Resizing Stage And Scaling All Content?

Jan 3, 2007

I have a banner that is 468x60 pixels and I need to rezize it to 728x90 - this includes scaling all of the content over the timelines proportionally.

View 6 Replies

ActionScript 2.0 :: Scaling Background & Fixed Size Foreground?

Feb 3, 2006

Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.

View 9 Replies

ActionScript 3.0 :: UI Loader Content Scaling - Loading External SWF

Aug 18, 2009

I've devised a preloader using the ui loader and progress bar components in flash cs3. The goal being to load an external .swf into the uiloader and that has been achieved. I'm having problems with the scaling now. In my code I have set the content scaling to "true" and that isn't supposed to cause distortion of any type but it does. It squishes my external .swf in width wise.

HTML Code:
var imageURL:String = "portfolio.swf";
var imageURLRequest = new URLRequest(imageURL)
uiLoader.scaleContent = true;
uiLoader.load(imageURLRequest);
progressBar.source = uiLoader;
[Code] .....

View 1 Replies

True-to-aspect - Full-browser Scaling Image Background?

Apr 12, 2010

I have been trying to work out how the full-browser background was done here: [URL] It scales in a very elegant way: it never stretches the image, stays centered on the image and never causes ugly blank areas around the image. For me, it's become deceptively difficult to achieve! :-(

View 1 Replies

Actionscript 2.0 :: Centering And Scaling Background Movie Clip Fullscreen?

Mar 26, 2010

So I am working on a full screen website, and background_mc I want to be centered and scaled 100% to the stage. But I also do not want the image to loose it's proportions. Here is my code so far, it is only seeming to center the movieclip:

Code: Select allfscommand ("fullscreen", true);
Stage.scaleMode = "noScale";
Stage.align = "TL";

[code].....

View 1 Replies

ActionScript 2.0 :: Scaling Background Image To Size Of Browser Window

May 7, 2005

I am trying to scale a background image to the size of the browser window. For some reason it does not fill the entire stage?

Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height
} Stage.addListener(background_mc);

View 1 Replies

Actionscript 3 :: Prevent Flash From Scaling / Resizing Content In A Web Browser?

Jul 29, 2011

I have finished my flash game, but when I used web Browser such as Chrome or FireFox to run it, it enlarged my game to full size of the browser. Is there anyway( in AS3 script) that I could prevent this from happening as well as hide the symbols that their sizes are bigger than my default size defined at the document property panel?

View 1 Replies

ActionScript 3.0 :: Print The Content Of A Sprite Without The Background?

Oct 28, 2009

How can I only print the content of a sprite (here a simple text) without the background color of the document?

View 4 Replies

Flash :: Content Causing Background Re-draw In IE & FF3?

Jan 3, 2011

Whenever I include flash content on a page it causes IE & FF3+ to redraw the background.This does not happen in Google Chrome, Safari, or FF2.
 
On every page of my site there is a small flash animation that is in a hidden div.  That flash content become visible and plays on a mouse-over event.  That all works fine.  However, in the above mentioned browsers, that flash content causes the site's background to be redrawn on every page-load, causing a flicker.  Is there any way to prevent this?  A google search revealed other people having the same issue, but no resolution.

[Code]...

View 1 Replies

ActionScript 2.0 :: Swf Object/alternative Content Background?

Jan 23, 2009

I am using the SWFObject and alternative content for a flash navigation. Unfortunately, if the viewer does have Flash installed, a white box appears before the nav appears. I am using a gif as a tiling background image for the nav, therefore the swf has a transparent background. Everything is good except for the second that the white box shows up.here's a bit of CSS and XHTML, but I have looked at this as well as the flash document, but I have been able to resolve the issue, and I'm out of ideas.

View 2 Replies

Actionscript 3.0 :: Center Content And Continues Background

Apr 27, 2009

I have a project in which the client would like the contents to be centered on his browser but the background to fill the whole window... this would be simple enough if the background was a solid color... the problem I am facing is that the background has a design to it (see attached). I found a good tutorial on: [URL] ...that is the basics of what I am trying to achieve, but not quite there. The RED bars on my attachment would be the center of the content...

View 4 Replies

ActionScript 3.0 :: Flash Content Under Background Image

Dec 18, 2011

I downloaded a file for full screen re-sizable background flash. I'm new to Flash. I started to make site from there, but when I draw anything, & compile it. my drawing goes behind this background.

View 1 Replies

ActionScript 2.0 :: Change The Page / Margin Size So The Content Can Fit In The Page Without Scaling

Jun 11, 2010

I'm trying to print a mc which is bigger than the default page size. I want to change the page/margin size so the content can fit in the page without scaling. Per the API reference [URL] the page settings are readonly. How can I print something bigger than the default page size? Is it doable in AS2 or AS3?

View 2 Replies

ActionScript 3.0 :: Does Loaded Content Get Choppy While Loading In Background

Apr 27, 2010

I have some preloader (timeline-based) content and some FLV's that I want the user to see while other content is loading in the background. The preloaded content and the FLV's are very choppy while the content is loading and run fine afterward. I initially thought this might be a RAM issue, but my other apps are running fine at the same time (YouTube, etc.) so I think it's an issue within my code or Flash Player. How do the really nice preloaders (animation on timeline OR FLV's) run so smoothly while background content is loaded? For example, are they independent SWF's? internalized classes exported for Actionscript? some other option I'm not privy to? Mine, for example, are internal classes in the main library that I have exported for AS.

View 6 Replies

ActionScript 2.0 :: Fullscreen Flash Background With Centreing Content?

Mar 12, 2010

I have spent days trying to figure out how to what on paper sounds really simple in flash.All i want is to be able to have a full flash page with a background that stretches fluently across. and for the windows or content inside that page to stay in proportion to that.the background loads fullscreen whatever resolution or dimensions its in and the content shrinks itself to fit.How can i get this ?i have been using action scriptStage.scaleMode = "noBorder";Stage.align = "TL";

View 5 Replies

ActionScript 2.0 :: Scalable Background Image - Centered Content

Jan 15, 2009

I recently found a great tutorial for making a scalable background image on: [URL] which has worked a treat. But my content is now positioned top left. How can I centre it without effecting the background? The full code I'm using on the first frame is below. I can centre all the content by changing Stage.align to "T", but then the background image has a nasty white space on the left hand side when the user resizes the browser.

I'm a flash newbie, can do some basics:
//set stage for FBF
Stage.align = "TL";
Stage.scaleMode = "noScale";
//define dynamic aspect ratios
picHeight = new Object ();
picHeight = pic._height / pic._width;
[Code] .....

View 6 Replies

ActionScript 3.0 :: Full Screen Background With Content Always Centered?

Jun 14, 2009

[URL]

I have gone through it all and it works great for the tutorial but I tried replacing the background with an image and when the browser is resized to full screen it distorts the image and stretches it out of proportion. Does anyone know how I can have the background image resized to the full screen and stay in proportion?

I basically want to create the exact functionality as [URL]

View 1 Replies

ActionScript 3.0 :: Full Background And Centering Content (with Ratio)?

Feb 23, 2010

I would like to have a project where the background fits the whole window (can squeeze) and the content is automatically resized and centered; keeping its ratio.Auto-Resizing and Centering your Content But here's my problem :

My main project is 1400*900px.
My MC to handle is 1000*680px.

I load an external SWF in that MC (with addChild).This external SWF is 1000*680px too (same size than parent).I have a lot of clips in my external SWF and some of them are "out" the project zone.So when I load it in my MC; the MC is no more 1000*680 but more.I thought that what was outside didn't matter; but it seems that flash do not ignore what is out.So, when I use the code to resize/recenter the MC; it broke as it do not center as it should.I did try to use masks but it do the same.

View 1 Replies

ActionScript 3.0 :: Button / Content And Background MovieClip Keeps Looping

Mar 26, 2010

I am trying to create a website. The main timeline has graphics, movie clip buttons and a movie clip which is the background of the content. Within the background I have another movie clip which has the text and fades in. What I am trying to do here is make the movie clip button trigger the content movie clip that its within the background movie clip. I tried everything but keeps going in loops.

View 1 Replies

ActionScript 2.0 :: CS3 Scalable Background Animation With Fixed Size Content

May 21, 2009

I'm trying to create a simple splash page for a site that has a scalable background animation, with a fixed size content animation that will stay centred for different sized browser windows or if the window is resized.[code]In general am I on the right track to achieve something similar to the example I posted? Is there a better method to use?

View 1 Replies







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