Log in

View Full Version : Changing size of dynamic movieclips



roow
07-14-2010, 02:29 PM
hey guys, I searched around at the forums but couldn't find something so I created this topic. I know how to change the size of dynamic movieclips, but I dont know how to do it nice. Because now i get ugly pictures, it looked like I increased the size of the picture with paint or something:P the dynamic movieclips has a picture inside of it

So i want to do it like this:
http://www.greensock.com/transformmanageras3/

As you can see here, the picture changes perfectly, but how can I do that?
Maybe to make it a vector? or are there easier ways to ?

Many thanks in advance for your time

roow
07-15-2010, 04:32 PM
No one ?

djr33
07-16-2010, 02:20 AM
Pixel based images cannot be enlarged more than 100% without losing quality. It is exactly the same as enlarging it with paint. Flash doesn't have any special ways to fix this.
One simple option is that you only allow it to expand to 100% (otherwise flash adds a border) and you start with a very large image, maybe 1000x1000px. That will take a long time to download, but it will not lose quality in most browser windows.
You can make an image smaller without losing quality, but not bigger.

Vector based graphics are an unrelated system: they use math to create shapes so that they are 100% quality at any size. However, even vectors lose detail as you zoom in because at some point you'll only see primitive shapes that make up the image. But this is definitely the type of image you need if you need to change the size of an image without ever losing quality. It's not possible to create a vector image another way, though, since pixels can't be converted except by tracing them. I've seen some automated tools that guess but the results aren't perfect, or can even be bad.


By the way, pixels and vector graphics really aren't that different: pixels are like little vector squares that, if zoomed in enough, become visible. Of course in general the two formats work in very different ways, but at a technical level they're very similar...