ActionScript 2.0 :: Fullscren Background That Stays In Proportion When Scaled?
May 14, 2008
i am building a website that has a fullscreen background image that resizes with the window when it is scaled and the content stays in the center, i have most of the site built but when i scale the window the background image distorts and doesn't stay in proportion...I need a code that keeps the background image from distorting if you scale or resize the browser window.
Here is an example of what I'm talking about- [URL] go to the company section. I used this tutorial for reference in building the site- [URL]
View 3 Replies
Similar Posts:
Feb 11, 2011
I need to get the propotion on a text and NOT the textfield that the text is in. I've have trying to use a bitmap and then get the highest and lowest pixel (Y) on the text and also the moast left and right pixel (X) and then take the difference in X/difference Y and then get my propotion. Unfortunately i won't get the same propotion as if I'm looking och a text written in eg word.
Dose anyone now why? Can I found the propotion in any other way?
View 3 Replies
Dec 7, 2009
We have a Flex application which doesn't currently use the Flex framework as an RSL. We're considering switching, but we're not sure what proportion of users will already have the framework cached.There's an added complication in that we're using the data visualisation components too, and we may have a choice as to which version of the framework we use.
View 2 Replies
Jul 10, 2009
I have a few movie clips which all have specific registration points set I need to scale them down in proportion according to the registration point. If am looking at the stage, hold down the shift key and resize the movieclip it works exactly how I would like it to.
However, I need to do this dynamically using AS3. I have been scaling the movie clips etc but I cannot figure out how to emulate holding down the shift key in AS3, so that the movie clips are re-sized in proportion according to the registration point.
View 1 Replies
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
Apr 14, 2010
We are experiences a phenomena that flash clients connecting to a live (pre recoreded)stream served from FMS (we use 3.5.2), have their buffer grow out of proportionit is alsoccompanied mostly with a complete video freeze, until the browser crashes.(you can expect a crash after having more then 4000 seconds of video buffer active in memory)The more we switch streams via a playlist,the more this seems to happen,Thus, streaming long video feeds keeps the system stable, but when injectingfeeds into a main stream and switching back increases the probability
View 7 Replies
Feb 9, 2011
I need a video which has been embedded into Flash to stretch, regardless of aspect ratio.This video will then reveal some content which I don't want stretching at all.I've tried using the "exactFit" scaleMode property and tried to find a way of that only affecting the video and not everything in the swf, but I failed. I've also tried using Stage.width/height and applying it to the dimensions of the video but t
View 2 Replies
Aug 22, 2006
This goes out to Scotty or any other guru floating around out here. I need the image_mc movieclip in this .fla to scale to fit browser, however i need the image to scale in proportion. I would also need a listener of sorts that will NOT allow the image_mc movieclip to scale below the stage size of 1024 x 768.
[URL]
View 4 Replies
Mar 31, 2010
I'm building a game of which the interface is one of the first items to load on screen.Sound button, pause and all the bits .During the game - all manor of things are dynamically added and removed to the stage. Therefore my interface goes behind my game scene.How do I ensure the movieclip always stays on top? Can I override the addChild of my Document Class and every time a new child is added, I restack the interface to the top?
View 3 Replies
Jul 15, 2010
I'm trying to create in Flex a Tile view that shows some images that a user has. The images don't have the same size, some are small and some are big.
What I'm trying to do is to use a List and create an ItemRenderer that has an Image property which displays the user images (the images are passed to the source property of the Image Object), I want the big images to scale down to the size of the tile so I set the 'scaleContnet' property of the Image Object to true, but this causes the small images to scale up to the size of the tile, this is not the behavior I want.
all the images are Embeded into Class objects and are passed as arguments to the ItemRenderer, how can I know in the ItemRenderer if I need to set the 'scaleContnet' property of the Image Object to true (for big images) or false (for small images)?
View 2 Replies
May 24, 2011
I'm building in flash a house. Now I want when I click on a door it stays open.
I'm using an button for the effect.
I think I need some code to keep te button in the down state after I clicked it
Here's my Actionscript 3
import flash.ui.Mouse;
import flash.events.MouseEvent;
// SOUNDS
[Code]....
View 1 Replies
Aug 31, 2009
Loading in an FLV. Partly works but the video shows up around half the size of the original. I've poked around endlessly with the Adobe Media Encoder and I've checked and double-checked the size of the orginal video before I encode. why its being scaled down like this?
[Code]....
View 2 Replies
Nov 8, 2010
I am currently using Flex SDK 3 for an enterprise application. We have enabled scaling in the application so that it fits the window. This works great, except for one problem. Text inside of components can get cut off depending on how big/small the application gets scaled. Specifically, I am talking about the Button component and the TabBar component. When text inside a button gets cut off, it actually displays a "..." instead of the missing characters. Which is funny, because often times the missing characters would have taken up less space. The text in the tabs, on the otherhand, just gets cut off arbitrarily.
View 0 Replies
Jan 11, 2006
is their a scale function or class so that when i strech a movieclip (while editing in flash and while running the swf) that the clips specific contents do not stretch to the clip legnth but they "stick" to the clip edge? like:
Code:
Xmovieclip._x = _parent._width - Xmovieclip._width;
but Xmovieclip doesnt scale when its parent is scaled.
View 2 Replies
Mar 6, 2009
I have a movie which is 1250 by 750. That is the largest it is ever going to be however I scale it down when viewed on smaller screen. The vector stuff and text scales fine, but the jpegs and pngs look very pixelated. Is there a scalemode I can set for these images that allow them to scale more cleanly?
View 1 Replies
Apr 9, 2009
've been building some website in pure flash with as2, where index.html is only a 100%x100% swf movie without any marginsi didn't expect there was supposed to be a gallery but oh well. our client decided that he wants to have some gallery in his flash website. this of course wouldn't be a problem if the swf weren't scaled but it unfortunately is so everytime it loads an image it is, of course, sacled up/down which produces a really ugly pixelated image (because nobody would want to have his gallery images scaled up 2 times)if i knew there was going to be a gallery, i would export it into html with "match movie" dimensions and dynamically reposition all the objects in the swf but i didn't. and i don't have time to rebuild the damn site againso i'm asking, is there any option for a loaded image that it would not get scaled up/down while the swf(browser window) is? or a variable that tells at how much % is the movie scaled in the browser?(so i could re-scale the images inside flash) i know there is probably not but i'm really desperate
View 1 Replies
Jul 6, 2009
for some reason my site will not scroll in firefox or IE. i've got it set at 100%x100% with no scale. I want it to be able to scroll down to show the rest of the site but instead it just gets cut off. i've tried setting the overflow to scroll but all that does is show the scroll bars it does not make them functional.
View 1 Replies
Mar 27, 2008
I have scaled down some JPG's in flash and they look fine but when I publish to a SWF they look pixelated. I've read other threads and done what is suggested i.e. Smoothing on or off, JPG's instead of PNG's and quality at 100% with no success. I know that Flash isn't a resolution based application and bitmaps are but the images look fine in the Flash IDE.
View 6 Replies
Sep 22, 2009
I've imported 29 bitmaps into my library (gifs, each one 1728x1152, size ranges from 4-14kb, in each case the vast majority of the image is transparent). I add each one to the stage in the following manner:
var img1Data = new img1(1728,1152);
var img1Map = new Bitmap(img1Data);
containerMC.addChild(img1Map); // MovieClip to which all of the bitmaps are added
[code]......
View 12 Replies
Feb 25, 2010
I've been developing a web based pure ActionScript-3 (no MXML involved) videogame using FlashDevelop, and have had no real surprises so far. I've recently tried moving my project over to the trial (but fully functional) of Intellij-Idea and have found that while the .swf produced by Intellij still functions, it has somehow been scaled up so that all elements are twice the size. This is without me having made any code changes at all.
I am aware of stage.scaleMode, but am not using it in my code.I want to stress that I am not talking about any attributes of the HTML wrapper which normally presents the .swf, as this behaviour is evident even when I load the bare .swf into my browser.The only variables I can think of here are the parameters passed to the Adobe flex compiler - but I've looked through the available parameters and haven't seen anything likely.
View 3 Replies
Oct 20, 2010
Google says that[code]...
is the way to test for the mouse being over a DisplayObject. This works if my movie is displayed at 100% scale. But if maximise my browser window so the Flash movie changes scale, it all goes to pieces.
View 1 Replies
Apr 6, 2011
I have a s:Group with few fixed size components in it, these are lets suppose 200x300, 300x150 etc Now if i resize s:Group with resizeMode=Scale, (scale down). and try to read the scaled down size of these child components but they still has the same old height and width.
how can i get width and height after scaling down the parent group?
View 2 Replies
Nov 16, 2009
I'm trying to scale down some vectors but when i do they become pixelated. So I tried putting then in a container and scaling down the container, but pixelation still occurs.can anyone tell me why this is happening and a possible work around?Here is the function from my class:
private function addItems():void
{
addChild(itemsContainer);
[code].......
View 3 Replies
Mar 2, 2012
How do I flip or reverse horizontally a bitmap? I found online that people recommend that you do scaleX = -1 but my bitmap is scaled to 0.7 and therefore when I do *= -1 it doesn't always reverse the image, instead I get a moonwalk effect.
View 6 Replies
Mar 31, 2009
good morning, does anyone have an idea of how i can get the buttons to stay in the over state after its clicked. so the user can tell which tab he is on...i have search for tutorials and i could find is AS2 and i need AS3?
View 2 Replies
Nov 16, 2009
I'm trying to scale down some vectors that have a z position set (other than zero) and they are becoming pixelated. So flash is obviously bitmapping the vectors.
Does anyone know of a work around to stop the pixelation?
Here is the function from my class:
private function addItems():void
{
addChild(itemsContainer);
// make the items.
[Code].....
View 1 Replies
Mar 16, 2006
i'm trying to get an effect in flash for the web where my swf in my html page is sitting centrally, but still has elements coming in at the edge of the page as parts of the site, refer to the source of the following site The source html defies my first assumption that the butterflies on the intro page were in a seperate swf. But it also states that the swf is set to display with 100% width & height which is confusing meAlso take a look at the main part of the site, it has elements coming in from the edge of the page. Its like some parts of the swf scale but others dont, anyone know whats going on there? i'm really curious and would like to build something similar!
View 13 Replies
Mar 6, 2009
I have a movie which is 1250 by 750. That is the largest it is ever going to be however I need to scale it down when viewed on smaller screen. The vector stuff and text scales fine, but the jpegs and pngs look very pixelated. Is there a scalemode I can set for these images that allow them to scale more cleanly?
View 2 Replies
Sep 1, 2009
I have a test site on: [URL] with a problem that the sound doesn't stop when I removeChild... The playing movie with the music is to stay only on HOME.
My code on the first frame of the label "HOME":
var Xpos:Number=243;
var Ypos:Number=88;
[Code]....
I think I am supposed to add an EventListener but can't figure out where or how...
View 3 Replies
Apr 28, 2004
I made a movie clip that has this code in it
[code]...
The resize works fine but the x and y dont work. The box just stays in its place and does not move.
View 1 Replies