Actionscript 3 :: Flash Movie Being Scaled Without Asking?
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.
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.
I have a quicktime video at 620x480 that I would like to keep sharp and clean with no pixelation or video grain. Unfortunately, the client would like the rest of the movie to scale to 100% (the movie is a flash projector file and is not browser based). I'm aware of full browser flash option when the stage is set to "noScale", but is it possible to have a clip that loads into a scaled projector at fixed resolution? So far my approach is this:small flash projector file to "embed" flash player. This would be at 100% scale mode. Then I would have the video clip load into the main projector clip (as a .swf). The external clip (video) would be set to "noScale" mode. Would this adhere or would the noScale be overruled by the projector scale mode?
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.
I'm working on an Adobe Flash Builder 4.5 iPad application. I have only a humble 13" MacBook to work with. I am being aggravated by the problem of debugging my application in the Flashbuilder's iPad simulator. The FB simulator screen is almost the same physical size as a real iPad, which is too big to fit on a 13" MacBook. Is there some setting in Flash Builder 4.5 that would scale the iPad simulator to fit the available screen real estate?
I have a video inside of another movieclip. When I go full screen, I scale up the outer movieclip to fit the screen. So that OuterMovieClip.width is equal to screenWidth etc. How do I maintain the aspect ratio on my video so it does not get distorted? Whats the proper math for that?
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)?
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?
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.
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:
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?
'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
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.
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
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?
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);
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.
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.
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!
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?
the loader class isnt loading images to their correct scales.they are always stoo short in width. is there a work around for this? it may be a common issue. im using AS3 for this.
Is there an easy way to prevent particular elements in a percentage-scaled SWF from scaling? I want to make a liquid Flash interface in which only the content scales with the browser window, and the navigation elements remain a constant size.
I'm currently working on a new gallery for my artwork, and I got it working just the way I like it, except for one major problem!see, I want the images to scale up slowly while music is playing, it's a really beautiful effect...but I keep getting a pixellated moire pattern that is pretty much ruining the artwork. I've searched for an answer to this, but no avail( the closest I came is something about bicubic sampling. for me at all?[URL]
I'm trying to draw a rectangle with as2 the to strech it's wirdth. It seems to work but something strange is happening while the rectangle is streched it is slwloy lmoving across the scene .
I have a 3D animation done with swift3D and imported in flash. If i don;t scale it, works fine... but if i do (to fit the page - full screen), the framerate drops like a brick.