Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Antialiasing image tweening

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
Hi there guys!...it's been a while :)

I have a png exported from photoshop and imported in flash. I broke appart this image in flash and made it a graphic with 99% alpha. Then i made a motion tween of this graphic i made...you can see it here:

My problem is that an Anti aliasing effect is coming up in my tween...you can see it here (in the end of the animation it can be seen easily):

How can i fix this? ...it's really bothering me...what am i doing wrong?


Regards,
Dragos.
 
Dragos,

Are you using the PNG file or a JPG file as indicated in your link picture.jpg?

There's always a better way. The fun is trying to find it!
 
picture.jpg is a printscreen of the flash movie...i tryied to catch that instance of the motion when that antialiasing effect can be seen better.



Regards,
Dragos.


 
I'm not familiar with .png stuff, but have you tried to add the following on the first frame of this movie...

_quality = "BEST";
 
On my machine it's barely noticable - in fact, I probaby wouldn't have noticed it unless you told me. However, I'm sure that on slower systems it will be more noticable.

A possible solution... it appears from the quality of the image that you're increasing the image size beyond it's original size during the tweening process. (Or the original image is very poor in quality.) Assuming that the latter is the case, try doing it "backward" by creating the image in it's final "display" size and then reduce that image to the size needed at the start of the tween. Does that make any sense to you?

In other words, if your original image size is 300x300 and your tween starts as 10x10 and ends at 388x380, recreate the image so it's 388x380. You don't need to change the starting size since nobody can see it anyway.

There's always a better way. The fun is trying to find it!
 
tviman i understand exactly what you're saying...this is the exact way i thought everything fromthe begining. The original png is the final "dispalay" of that tween...but as you noticed even so the antialiasing effect is still there.

Now it's gone with this on my first frame: _quality="BEST" ... but the size of the movie has tripled...damn

There got to be another solution.


Regards,
Dragos.


 
Dragos - there's a little problem here... the PNG image in your link is 289x282 (pixels) but the image in your SWF is 388x382 pixels! That's a 100 pixels larger in each direction! No wonder you had such an anti-aliasing problem.

If you recreate the image and make it 388x382 you shouldn't have to do the "best" quality thing and you'll keep your file size down.

There's always a better way. The fun is trying to find it!
 
tvimna i have just downloaded the .fla that i posted in my previous reply...and the png file is 287x280 px...smaler than the original with 2px each direction...that's why because i have broke that png appart...

Regards,
Dragos.


 
Then why is the image larger on your SWF? Check this: In your PUBLISH settings under the HTML tab, do you have it set to PERCENT? If so, that's the problem. The PERCENT setting tells Flash to fill the users screen - so if you've designed your movie on an 800x600 stage and you view it on a screen that's 1024x768, Flash will expand the movie to fit the screen - hence the anti-aliasing, and picture quality loss, will be more noticable.

There's always a better way. The fun is trying to find it!
 
Do not break it apart. Leave text blocks as text blocks and images bitmap instances. This should help. And non-breaking anything will decrease the size of a final *.swf.
 
..but _quality="BEST" worked like a charm Thanx a lot bith you guys!

Take it easy, oldnewbie! Seems to me that he did! I was trying to deal with his concern of file bloat and why his final image size was a full 1/3 larger than the original image size - a fact that was causing his imake to lose quality BIG TIME.

There's always a better way. The fun is trying to find it!
 
There's always a better way. Have fun trying to find it!

Just pulling Dragos' leg! I've met him long before you came around...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top