Image quality in flash

When we load an image online - the image is skewed or
stretched and its quality is bad. The type of image is gif because
we need transparancy. Pls help for a better quality of the image
inspite of changing its size.

import flash.display.*;
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip("bmc",
target.getNextHighestDepth());
var listener:Object = new Object();
listener.tmc = target;
listener.onLoadInit = function(mc:MovieClip) {
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width-50,
mc._height-50, true, 0x000000);
this.tmc.attachBitmap(bitmap,
this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
translate;
createEmptyMovieClip("myMC", getNextHighestDepth());
loadBitmapSmoothed("one.gif", myMC);
stop();
In the above coding if i reduce the width and height the
image is cut into pieces
:(

Similar Messages

  • Image quality in Flash animations

    I notice when I run animations in the flash player, the image quality because very pixelated and blocky when I enlarge the animation.
    I need my website to scale to different screen resolutions, so this can be a problem. Is there any way to make images smoother when the flash file is enlarged beyond it's native resolution?
    I really need to know since my website has to scale to a LOT of resolutions.

    Dont think there is any concrete solution for this,
    Try using bitmap smoothing, it might help till some level.
    Another workaround would be, use large size images and scale them down to your current native resolution (size). This might help if you find an intermediate resolution and use imageof that resolution.
    http://www.darshanrane.com

  • How to export a fireworks file to flash while retaining image quality?

    I created a banner for our website using fireworks cs3. Part of the banner has aimation (basically a slide show of 6 photos). I've tried to export the files by saving the frams to files, but when I do this, the image quality really gets bad. When I try to change the export settings and change the dither, everything but the last frame looks better and the last frame looks like a yellow color is splattered all over it....I've tried just saving the file as an .swf file but when I do so, the file doesn't work when I insert it into my web page, it doesn't work.  Is there a better way to do this?  Can I export as something else then import into flash and still retain my image quality?  Thanks for any input and help!

    How are you inserting the file?
    Flash objects need to be placed in an object tag...as described here: http://kb2.adobe.com/cps/415/tn_4150.html

  • Flash in Premiere Elements Image Quality issue

    Hello,
    I've decided now that I am going to create animated films in Flash and then edit them in Premiere Elements. the problem is, is that when I export it from Flash to Premiere Elements the Image quality is detiereoreted (i.e fuzzy, blurry, out of focus, general ugly to look at). I first realised that I couldnt use an swf file in Premiere and isntead I should use an AVI. So I did. Problem is I'm still having the same problem. the Image quality is still terrible and doesn't equal up to the origonal image quality. And then tried Uncompressing it and all that did is make the video clip jump over about 80 frames and still the image quality is terrible. Is their one little thing that I'm doing wrong or Am I altogether not getting this right.
    Programs I'm using:
    Macromedia Flash MX 2004
    Adobe Premiere Elements 3.0
    Adobe Premiere Elements 7.0 (currently not working)

    The MS DV CODEC should be installed on your system already. Whether Flash can Export to it could still be an issue. I'll have to check my version of Flash (think that it's Studio 8, but I've had it around from version 2) to see what all of the options are.
    I've been handed many Flash animations that were Exported as .MOV with the Animation CODEC, and these have edited fine.
    Other than the huge file sizes, AVI [Uncompressed] should work fine too. You might have resource issues, but that would depend on your system, more than on your NLE. I've used these with no issues many times.
    Another likely candidate would be the free Lagarith Lossless CODEC. I use it for intermediate transfer and it edits fine in PrPro. I would assume that it would be the same in PrE, but cannot verify this.
    On Monday, I'll be on my workstation with Flash and will tell you the exact version, plus the Export options available.
    Good luck,
    Hunt

  • Cms for flash gallery with image quality control

    Halo.
    I'm looking for a non-commercial solution / tutorial (AS3, MySQL, PHP, XML) that would point me in the right directon to control the quality of uploaded images.
    Do you know any?
    Regards.

    What is the definition of image quality in this context?

  • How can I lower the image quality on a streaming online video

    Hi,
    I have an old iMac G3 with 500 Mhz Power PC and 1 gig of RAM  and running Tiger OS 10.4.11
    I am trying to watch online streaming news through http://www.rentadrone.org but it is, of course, jerky playback.
    My issue is that adobe flash will not let me change the quality of the video to low because the option is grayed out.
    I know that this iMac was prior to videos becoming common online and I know that I have to sacrifice video quality.
    I can play youtube videos well, as in not jerky, in the 240 image quality and wanted to be able to do this through
    other websites with video. I have disabled Dashboard to gain CPU, tried to play the video through Realplayer and
    changed my Display from millions of color to thousands but I haven't been able to stop the jerking on the video.
    Is there a workaround or other solution?
    Thank you in advance for any suggestions or help.

    Each video website has its own controllers over how much choice you have over quality of streaming.
    However, as you use Real Player, you could wait until the video finishes downloading, then click 'Download' in the RealPlayer Download Agent window and watch it offline, when it should play smoother.

  • 10.6.2: Bad image quality with SIPS

    I used to convert my PDF documents with SIPS like this:
    /usr/bin/sips --setProperty format jpeg --setProperty formatOptions high -z 400 200 sourcefilename.pdf --out targetfilename.jpg
    This results in a very bad image quality after updating to 10.6.2 (the text contained in the source pdf file is nearly unreadable in the resulting image, especially when using the -z attribute for downsizing).
    I could reconstruct this behaviour with several machines today: when using 10.6.1 the quality is fine, but after the update to 10.6.2 the resulting image quality is unacceptable.
    Any ideas? Or could this be a bug? The man page for sips does not contain any information about new parameters and the image quality for other target formats (tif, png, ...) seems to be ok.

    That picture looks like it was taken in a dimly lit room.
    You could try using night mode but you will need a very steady hand.
    Most basic phone cameras just cannot produce good pictures indoors when not in brightly lit areas.  LED flashes just cannot do a good enough job when compared to real cameras.
    Megapixels don't equal quality, it's the lens and flash that make the biggest difference.

  • Pearl 8220 camera image quality is poor, poor, poor

    The photo image quality of the camera on my BB Pearl 8220 is extremely grainy and dark.
    I understand this is a cell phone camera and expectations are low to begin with, but this is unacceptably low quality.  The flash appears to function properly but that doesn't matter because the image quality is poor even for pictures taken in full sunlight.  
    Are there camera adjustments or settings that I haven't found that can remedy this problem?  The ones I HAVE found have had no effect.
    Thanks for any help.

    i've taken some good pics with our phones...
    I did notice that you need to be extremely steady (no built in "camera shake"), but other than that, its all been good. 
    I used the options to make the pics as large as possible too; but I do that with our digital camera as well.  I use Paint Shop to edit them on our PC.
    Where there is a will, there is a way...
    If there is no way; there is always a bigger hammer.

  • Animated (up state) button image quality

    Hello,
    I am experienced with Captivate and getting familiar with
    Flash MX.
    I am having trouble with loss of detail (blurry images) when
    importing flash into Captivate.
    In flash, I've created a simple button. It has a movie clip
    in its up state that makes the button "pulse". It has a graphic
    symbol for over, down, and hit states. I have published the swf
    with no compression and %100 "JPEG quality". When I preview the
    swf, it looks and responds to the click well. The button is a
    "NEXT" button that will eventually be used to "continue" the movie.
    It is about 108 pixels in width and 40 pixels high. It is based on
    images I already use for my NEXT button which was created using the
    Image Button functionality of Captivate.
    (NOTE: I have not tried to attach any action script to my new
    button yet because I am still struggling with image quality in
    captivate.)
    Since it can't be imported as a "button", I have imported it
    as an animation. (I am well aware of the issues animations cause
    with "losing focus" and such. Just click a library item and then
    move on.)
    After inserting the animation, the upstate does pulse, the
    over state lights up when I mouse over, and the down state displays
    when I click. But, the image is noticeably Fuzzy. It is easy to
    measure just how fuzzy and bad it looks by putting my test button
    right next to an image of the up and over states in captivate OR
    opening the new button in flash player and looking at it next to
    the images in my image editing software. My images for up and over
    are crisp and clear, The animation in flash player is crisp and
    clear, but the flash animation in Captivate is quite fuzzy. I do
    not think the issue is in flash or in the way the swf was created.
    (NOTE: I actually had to import "big" png images into flash,
    resize them smaller, then make them into graphic symbols in order
    to make the image quality good enough in flash itself. Simply
    importing to the Flash library seemed to make images fuzzy too, but
    I've gotten around that issue by shrinking bigger images.
    ...honestly it works.)
    I want to know if there is anything I can do about this. Any
    insight into getting better image quality of animations in
    Captivate is greatly appreciated. As it stands the fuzzy images
    just look unprofessional and I can’t use my cool pulsing
    button.
    Thanks for your insights.

    While using the fill option for button , you can define the position and fitting for the image.
    Thanks,
    Sanjit

  • Horrible image quality?

    I'm not sure if it's just me not being happy with the image quality as I haven't seen many people mention it before, but most (if not all) of my images come out with very obvious artifacting/noise/discolouration - whatever you want to call it.
    Link to one of the most obvious examples: http://img340.imageshack.us/img340/8721/img0885jw.jpg
    Is it just me that's having this issue? Tried in all sorts of lights, with/without flash etc. Front facing camera doesn't seem to have this issue

    Red seems to be a problem for a lot of image / video compression, I can't tell you how many shows I've watched that red looks terrible. (not saying that is the problem, just a common thing I see).
    Having said that, I don't have anything red besides an all red CD here and it looks a little crappy, but not nearly as crappy as your flower (but it doesn't have any differing shades of red, just solid red). Plus I am indoor with non-ideal lighting.
    No one elses pictures here had something really really red. Do your pictures look decent if you take a picture of a non-red flower?
    Message was edited by: HawksFan

  • Image quality degrades in published swf

    I've built a Flash site for a freind who is a photographer.
    There are over 100 images on the site that are imported jpegs. Most
    of them look fine but two of them look very washed out when I
    publish my swf even though in the Flash project file they have very
    sharp contrast. These particular images are monochromatic. Is there
    anyway to preserve the variation of tones in the published swf?
    I've tried using them at maximum image quality, but had the
    same result.
    Any suggestions would be greatly apreciated.

    I tried saving as a png, but I got the same result. It's like
    my black becomes a dark grey and my midtones go light/
    white.

  • How to Export High Quality Adobe Flash Professional CS6

    Okay, here's the situation. I've created a series of separate files of animations using .PNG images, and JPGs. Each animation is less than 1 minute long - and are separate files.
    I have tried exporting various ones, and have had absolutely no luck in getting anything resembling high quality. I mean the first animations made by humans were better quality than this.
    It's utterly ridiculous how bad this program works.
    Anyways...
    I've tried altering the frame rate, dimensions of the document, different export files, different players to view, I've gone into the settings and made sure the highest quality option is selected, etc. I've combed the internet for weeks and have read EVERYTHING on the subject (not much!!). I've also watched every relevant youtube video and nothing has worked!
    I am losing my mind over this.
    I even tried opening the files in Premiere and exporting them and they look even worse! What the hell is going on??
    The whole reason I began using Flash is because research led me to believe it was made for this purpose but it clearly can't do...anything.
    Is there any solution? Or should I just look into a different program?

    What Image Export Preset settings are you using?  (See and edit these via "Aperture→Presets→Image Export".)
    16-bit TIFF is the highest quality Image Format.  If you are using JPEG, set the Image Quality slider all the way to the right ("12").  Make sure size is set to "Original Size".  "DPI" has no bearing on image quality -- it is just a setting that some apps use to determine how big to display the image on the screen.

  • Why do images brought into flash from a psd appear differently when publish

    I am creating a flash banner using a layered psd.  The account team is happy with the look of the psd. BUT, when I bring the images into flash and publish the file, the colors look different.  I import them into flash at the highest quality yet they don't look the same.  Any advice?

    The answer relates to color spaces (profiles) and color management in Flash.
    In the other creative suite applications you work with a color space to define the colors your using—i.e., if you have #ff0000 full red this will be a different color in sRGB (an RGB color space) than Adobe 1998 (a different RGB color space). You need to have a color space (profile) to make sense of the color values.
    Flash doesn't honor profiles currently, which means it ignores these profiles. By default in Flash Player 10, and the only option in all players before 10, it gives these color numbers to the operating system without a color space, so the operating system is in charge of making sense of these numbers. In Windows it will assume these numbers are in the sRGB color space, on Mac it will assume that these numbers are in the monitor's color space (on my macbook this is Color LCD, which I believe is the color space for all macbooks by default).
    The way to get the colors to look the best in Flash is to make sure that the document is sRGB before you bring it into Flash. In Photoshop you can convert the colors into the sRGB color space, which will change these color values into the sRGB color space, by going to Edit -> Convert to Profile, and find sRGB in the RGB dropdown. Another way to do it if you are saving just a flat image is to use File -> Save For Web & Devices and check the Convert to sRGB checkbox on the right. Now when you bring the image in to Flash and publish it it should look right on Windows, and probably better on Mac.
    Flash Player 10 adds a feature where you can say that all the images are in the sRGB color space and it will hand the color values to the operating system as sRGB numbers. This makes it work better on Mac, if the swf file is viewed in an environment that honors profiles (Mac and Windows honor profiles but most browsers still ignore profiles, but that's getting better). You can turn this feature on by putting this code into your Flash file: stage.colorCorrection = ColorCorrection.ON;. Read more on that at this link: http://blogs.adobe.com/jnack/2008/10/get_better_color_through_fp10.html. I also gave a presentation on color management and blogged about it, which you can read about and watch here: http://blog.elliselkins.com/2009/02/flying-through-color-space-uflash.html.
    Feel free to ask me anything. Hope this helps.

  • Macbook pro with retina difference in image quality of Pc(dell) and mac quality

    Ok this is my dilemma. I have had a dell for about 5 years now never calibrated or anything(never even knew what that was).
    So there are some photos I upload to my flickr account from my macbook and I looked at the same flickr account on my pc and the images were dull, lacked color.
    I went to the apple store and they suggested that maybe i have been looking at the wrong quality all along from my pc lol!
    I know flickr should not be the basis on how I view photos but even when I take one photo from the mac and view it on my pc regularly it still looks horrible.
    Please help Im scared that when I give people their photos aside from print that the images on their flash drives will come out dull and lacking bold color.
    Also I edit with photoshop.

    Are you saving images with the correct color profile? Normally for web you would use sRGB. Make sure you are being consistent on Windows and Mac.
    You can have a different working color space. For example I use Pro Photo RGB as the working space in both Lightroom and Photoshop, but I usually export in sRGB (web; email) or Adobe RGB (printing)

  • Image quality / performance

    Hey All,
    I often wonder about this. (I'm using CS5.5): In Flash I need a movie clip that to be 200 px by 200 px on my stage.
    -If I create a 500px by 500px image in Photoshop and import it at that size, create my MC, then resize it down to 200 x 200 in Flash, it looks real nice.
    -If I create a 200 x 200 image in Photoshop and import it and create my MC (no need to resize in Flash), it looks kinda crappy.
    In my final SWF, is there a greater performance hit with the larger pixel dimension images that are resized in Flash ..compared with the images imported at the exact same size as they will display on my Flash stage?
    Also: I always save my images as PNG from Photoshop because I've heard that that is the best format for Flash. Can someone confirm or correct this belief?
    Thanks much!

    Amy,
    What do you mean by: "low quality image?"
    Correct me if I'm misunderstanding but it sounds like what you're saying is what I'm doing (except I'm using PNGs):  To arrive at a good looking image in Flash, I create a larger (in pixel dimensions) image than what the final size will be on the Flash stage. So, for example, if the final size of the MC needs to be 200 x 200px, in Photoshop I create a 500 x 500px PNG image that has a resolution of 72, import it at that size and then resize it to 200 x 200. I'm happy with those results. That results in good image quality but I want to know if I'm going to pay for it down the road in slow performance once I've added lots of images in this way.
    So I guess my question is about best practices: Should I consider importing larger images as a performance trade off? Do larger images (resized down in Flash) cost in performance as compared with images that are imported at the exact size they will appear on stage?
    In other words: I can probably get an even better looking image if I create a 600 x 600 image in PS (requiring even more resizing in Flash)...but if it will slow down the animation then I might settle for the 500 x 500.
    Thanks for your help.

Maybe you are looking for

  • How to show an HTML page in a new browser window

    Hi Everyone, I am trying to show a page generated by some servlet in a new browser window when the button is clicked on the applet. I can accomplish that by using AppletContext as in: myApplet.getAppletContext().showDocument(servletUrl, "_blank"); Th

  • Help unable to install OS X as hard drive not visible in internet recovery mode

    Hi I have a MacBook Pro During use my screen froze and I had to force quit. Since then I have tried the following: Turning on in safe mode Internet recovery - no mac hd or partition recovery drive are visible in disk utility only OS X base system Una

  • Media Control Bluetooth Application

    Does anyone know a good Palm OS compatible remote control application that allows you to control at least Windows Media Center on your PC via Bluetooth? I have tried Liberty Control thus far and am I really looking for something that can actually ski

  • Ipod song missing on itunes

    I want to sync my ipod touch with a different itunes library. I plugged my ipod in the computer and my itunes started transferring my purchased items off of my ipod. I looked at my music and one song that I recently bought and downloaded on my ipod t

  • 3rsm on x86?

    The remote shared memory API documented in 3rsm on Solaris 9 and 10 looks like an almost perfect solution for a difficult resiliency problem I need to solve. But too bad: everything I can find at sun.com shows that the SCI card sun offers (X1074A) to