ActionScript 2.0 :: Resize Image Without Artifact?
Sep 12, 2010
I'm not a coder, but I recently had someone build me a Flash site ( I think using AS2). Part of the site includes scaling up a background image to the browser size, but I'm seeing terrible artifacts when this is done.
Take a look at the home page of this link to see what I mean[url]...
I was wondering if someone could tell me if it is at all possible to scale up an image like this in Flash WITHOUT the resulting artifacts?
I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.
I've done two Flash animations, and both, when I use the Simulate Download function, show what appears to be a digital artifact in the upper left hand corner. It looks like a series of small squares or rectangles briefly fluttering from left to right.As far as I can tell, this doesn't show up in the actual .swf. Has anyone else seen this? Is it a sign that I've done something wrong, or should I just ignore it?
Some images I load dynamically are too big so I would like to scale them to fit the stage.
[Code]...
this returns 0. Why does it return 0 when the image loaded is obviously much larger then 0 pixels. How do I change the width and height of imgCont to a specified dimension.
i am building an editor which allows you to resize images and to do this (once an image is selected) I add a visible border to the image that allows you to resize the image. so i want to have a function something like,
[Code]....
and i have to call this redrawborder function inside the MOUSE_MOVE listener that controls the resizing (so that i am constantly removing and redrawing the border). constantly removing and redrawing the frame seems very inefficient. is there some property or better why to do this? i want to have, displayobj.scaleChildren = false or something like that
what i m trying to do is load a image form xml and resize it to fixed height and then to centre the image on stage...however the following code is not resizing the image and neither is it centering the image...i used trace commands to check its width but i get the output as undefined also on load the images r coming rotated 90 degree.
here's my code
Code: var slidexml:XML = new XML(); slidexml.ignoreWhite = true; var currentIndex:Number = 0;
I'm trying to do a proportional resize of an image. I know the image's original dimensions (which vary from image to image) and then I know its intended height in pixels. How do I scale it down to fit the new height whilst keeping it in proportion? Is there a simple equation to do this?
i had a xml wich is dynamically genrate the values, and i use those value to show as a image in flash as2.now the values are n numbers, if it is beyound the screen i want to resize the whole image in to best fit on my screen.
i am trying to build a resize with stage image gallery. It is working except for when you first open the swf the image has it's original size, and it only adjusts to the stage when the stage resizes.s the script:
I'm trying to create a touch application through gestureworks, specifically by adapting this tutorial - [URL] I'm trying to scale an image down when the app loads with no luck.
I know in php there is a tag to resize a image simply: $width = 120; $height = 80; if ($width && ($size[0] < $size[1])) { $width = ($height / $size[1]) * $size[0]; } else { $height = ($width / $size[0]) * $size[1]; } However, how to do this in FLASH?
I have a constant doubt. I never know why the resize image always look ugly. Today I found an example that don't look ugly and only gets better when resize. How they do that?
Can any one know a function that is doing resize and it is doing it right, because I have made a function but it I make my image small like 70x50 from 950x500 it is distorting it.
I want to do this but in ActionScript 3.0 with an Image.URL...Basically, I am writing an app for the Blackberry Tablet and I want to know how I can allow the user to resize an Image with their mouse. Since the Image object is part of the qnx engine, specific to the blackberry, assume a MovieClip.
I'm new to AS and trying to learn new stuff by going through Kirupa's tuts and old threads, I came across this image resize from Best of Kirupa.url..At the moment all loading images as well as frame are resizing with top left corner always in fixed position. I've been trying to amend the existing AS, so both frame and images always stay and do the resizing at horizontal centre of the movie?
I'm doing a mini app in AS2 where the user can upload an image into Flash and be able to crop, scale, and rotate and image, and after they're done, save the edited image to the server.I know I have to load an image into the BitmapData, after that I'm lost.
I'm doing a mini app in AS2 where the user can upload an image into Flash and be able to crop, scale, and rotate and image, and after they're done, save the edited image to the server.I know I have to load an image into the BitmapData, after that I'm lost.
i am trying to have flash read an image and resize it if it doesnt fit..it works fine when the image gets scaled down.but when the imaged gets scaled up the imaged gets rotated (which is what i am trying to get fixed)i have attached the fla file (but w/o it linking to an image or an image attached) or you can just look at the code.[code]
I have been looking for a way to create an effect like this in Actionscript 2.0.Like thisThe application above is in AS3 and I am trying to create that effect in AS2!anyone knows how we can achieve that so the users can re-size the images via handles around the images inside the flash? or maybe re-size a movie clip with handles like that?
I am trying to center an image in the middle of the stage and scale it proportionally to the correct aspect ratio based on its loader's size when the image is loading.
In my main app runner I do:
private var rec:Rectangle = new Rectangle(); private var img:BitmapDisplay = new BitmapDisplay(); stage.addEventListener(Event.RESIZE, setRect); img.imageURL = "some/path/to/image.jpg"; addChild(img);
I'm trying to build an Air application where a user can drop in an image. That image needs to resize if it's bigger than 1024px 1024px.
What's the best practice for resizing an image in Air development? And what's the best practice if I want to send this to codeigniter amf server in Air 2.0, bytearray format?
I have this document in flash where I want an image to pan with mouse movement. When I test the movie it runs ok with any problem. But when I resize the window the position of the big image, it goes all wrong. I'm going crazy with this. Any help? I'll leave the link here so you can see the .fla document.
[URL]
And here is the code (Actionscript 2.0)
var boundX:Number = bigPic._x+activator._x*(bigPic._width/activator._width); var diffX:Number = bigPic._width-activator._width; var easeSpeed:Number = 7;
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.
I have a custom component which is an HBox & I'm trying to resize a child which happens to be an image. This is image is inside a VBox which is also a child of the HBox. I have a number of these images so In UpdateDisplayList I call:myimageArray[0-5].setActualSize(50,50);but the image is never resized it just stays a large default size. The images source is a url path and I'm wondering if that is what is causing the problem?