Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-08-2005, 10:36 PM   #1
badasspuppy
Member
 
badasspuppy's Avatar
 
Join Date: Aug 2004
Posts: 62
Default Smooth images in Flash 8

Macromedia took away the "BEST" quality setting that made rotated and scaled images smooth.

I found a workaround and made a simple to use function so the rest of you guys don't spend as much time as I did banging your heads against the wall for this:

smoothImageLoad function

Hope it comes in handy
badasspuppy is offline   Reply With Quote
Old 10-11-2005, 02:54 PM   #2
Grant B
Actionscript Struggler
 
Grant B's Avatar
 
Join Date: Sep 2005
Posts: 92
Default

Good job. Interesting stuff. I need to check it out and learn how it's done.

Thumbs up!
Grant B is offline   Reply With Quote
Old 10-11-2005, 07:08 PM   #3
madgett
is my last name...
 
Join Date: May 2004
Posts: 964
Default

Not sure why your images are doing that, I haven't had this issue with Flash 8 even when loading in progressive jpgs. What images are you using? Also, I'd like to experiment more with this would you mind zipping up an example? Thanks, and smart workaround
madgett is offline   Reply With Quote
Old 10-11-2005, 10:40 PM   #4
badasspuppy
Member
 
badasspuppy's Avatar
 
Join Date: Aug 2004
Posts: 62
Default

this happens when you scale or rotate an image after loading. Check out the link, I have an example there that compares the result of a normal loadMovie against my function.

If you don't touch the image's scale and rotation after you load it you don't need this.
badasspuppy is offline   Reply With Quote
Old 10-12-2005, 01:13 AM   #5
madgett
is my last name...
 
Join Date: May 2004
Posts: 964
Default

I took a look and did reproduce the problem, before I was using larger square images with darker backgrounds and didn't see any pixelation, I threw in the small bot image from the site and yep saw it happening. In the Flash Docs: (BitmapData class) This class lets you separate bitmap rendering operations from the Flash Player internal display updating routines. Apparently they did this because it's more efficient and less on the taxing of the CPU. You can also use the _quality property of the MovieClip class along with this and specifiy "LOW", "MEDIUM", "HIGH", and "BEST" on a per-movieclip basis. <- I've been wanting and efficient way of doing that for a long time . Thanks badasspuppy for this good stuff!
madgett is offline   Reply With Quote
Old 10-12-2005, 09:00 AM   #6
Headshotz
TEAM INTERNET
 
Headshotz's Avatar
 
Join Date: Jul 2005
Location: Batcave
Posts: 2,759
Send a message via MSN to Headshotz
Default

All good
__________________
The author of windows file copy dialogue visits some friends:
"I'm just outside of town so I should be there in about 15 minutes"
"Actually it's looking more like 6 days"
"No, wait, 30 seconds"
Headshotz is offline   Reply With Quote
Old 09-15-2007, 02:34 PM   #7
randomlines
Registered User
 
Join Date: Sep 2007
Posts: 4
Red face great work!

this works beautifully and it's something that's hassled me for ages.
i recently had some trouble with it however: on my machine it works fine. but online it shows images as only white!
i can't understand it because i've used it online before for another site on the same server. and it works both in flash and in a browser when the file is on my local machine. whats more the images i'm accessing are absolute urls so they're always the same locations as well...
any ideas?
randomlines is offline   Reply With Quote
Old 09-15-2007, 02:56 PM   #8
randomlines
Registered User
 
Join Date: Sep 2007
Posts: 4
Default

found my problem... cross domain security issues...
do you know a work around to this?
randomlines is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.