Bitmap smoothing w/ loaded images

I know there was a lot of stuff about this for AS2, but I
cant seem to find anything more recent—and I am still having
this problem! I have a sprite, with a loader (which I dont add to
the stage). The loader loads a large image, scales it way down and
then draws it. No matter how I do this, the resulting Image is
always aliased. Setting the stage quality to 'best' did resolve
this, but the site took too much of a performance hit otherwise.
I have tried:
1. adding the loader to the stage, and setting smoothing to
true when content loads
2. creating a new bitmap on load, with smoothing set to true
(both in constructor and after)
3. creating a shape on load and using bitmap fill, with
smoothing on
Sample code for all three is below, but #3 is the one I
really want to use, because I need 9-slice scaling. What am I doing
wrong?!!

Your first try is the closest. The only thing is you need to
add the bitmap to the stage, not the loader. And you need to wait
for the content to load before you can create a bitmap of the
_imageLoader.content. Try this:

Similar Messages

  • Want to smooth loaded images (jpg) in flash8

    i want to smooth loaded images (jpg) in flash8
    let's say that i have one layer, one frame and the following
    AS:
    _root.loadMovie("q.jpg");
    the _root could be an object, but the behavior is the same
    so in flash7 CTRL+ENTER, right click and zoom ---> RESULT:
    zoom with image interpolation (like photoshop bicubic resample)
    but in flash8 CTRL+ENTER, right click and zoom --->
    RESULT: zoom with NO image interpolation (like photoshop nearest
    nei ghbor resample)
    why?????
    i have looked in help but all i can find is somthing refering
    about images in the library. I want external jpgs!!!
    i have done a slideshow with setable tranzitions (fade, blur,
    moving, zoom in/out, external loaded masking)
    here is some the important part of the my code (not important
    for my problem, but I just want to say that i've worked about 1-2
    days and i want to make it better. is frustating that i have blur,
    fade, gradient transparency (blending) and not a smooth image):
    Gtime=getTimer(); //global timmer
    ///////////////////////////////ia datele generale, daca cele
    particulare lipsesk
    /*Ttrans=eval("q.tt")-0;*/
    if(eval("q.tt"+pidx))Ttrans=eval("q.tt"+pidx)-0;
    /*Tfoto=eval("q.tf")-0;*/
    if(eval("q.tf"+pidx))Tfoto=eval("q.tf"+pidx)-0;
    /*sv=eval("q.sv")-0;*/
    if(eval("q.sv"+pidx))sv=eval("q.sv"+pidx)-0;
    /*sk=eval("q.sk")-0;*/
    if(eval("q.sk"+pidx))sk=eval("q.sk"+pidx)-0;
    /*xv=eval("q.xv")-0;*/
    if(eval("q.xv"+pidx))xv=eval("q.xv"+pidx)-0;
    /*yv=eval("q.yv")-0;*/
    if(eval("q.yv"+pidx))yv=eval("q.yv"+pidx)-0;
    /*xk=eval("q.xk")-0;*/
    if(eval("q.xk"+pidx))xk=eval("q.xk"+pidx)-0;
    /*yk=eval("q.yk")-0;*/
    if(eval("q.yk"+pidx))yk=eval("q.yk"+pidx)-0;
    /*rv=eval("q.rv")-0;*/
    if(eval("q.rv"+pidx))rv=eval("q.rv"+pidx)-0;
    /*rk=eval("q.rk")-0;*/
    if(eval("q.rk"+pidx))rk=eval("q.rk"+pidx)-0;
    /*xbk=eval("q.xbk")-0;*/
    if(eval("q.xbk"+pidx))xbk=eval("q.xbk"+pidx)-0;
    /*ybk=eval("q.ybk")-0;*/
    if(eval("q.ybk"+pidx))ybk=eval("q.ybk"+pidx)-0;
    /*xbv=eval("q.xbv")-0;*/
    if(eval("q.xbv"+pidx))xbv=eval("q.xbv"+pidx)-0;
    /*ybv=eval("q.ybv")-0;*/
    if(eval("q.ybv"+pidx))ybv=eval("q.ybv"+pidx)-0;
    /*mask=eval("q.mask");*/
    if(eval("q.mask"+pidx))mask=eval("q.mask"+pidx);
    if(trans==0 && Gtime>Ftime+Tfoto*1000){
    //retain values
    aux2=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000);
    Ttrans2=Ttrans;
    Tfoto2=Ttrans;
    sv2=sv;sk2=sk;
    xv2=xv;yv2=yv;
    xk2=xk;yk2=yk;
    rv2=rv;rk2=rk;
    xbv2=xbv;ybv2=ybv;
    xbk2=xbk;ybk2=ybk;
    //end retain values
    Ttime=Gtime;
    trans=1;//transition
    if(p=="p1"){
    p="p2";pp="p1";
    }else{
    p="p1";pp="p2";
    pidx++;
    if(eval("q.p"+pidx)==undefined){
    end=1;
    //gotoAndStop(6);
    }else{
    p1.swapDepths(p2);
    loadMovie(fotofolder+eval("q.p"+pidx),eval(p+".p.p"));
    eval(p)._xscale=eval(p)._yscale=100;
    eval(p)._rotation=0;
    if(trans==1 && Gtime>Ttime+Ttrans*1000){
    Ftime=Gtime;
    trans=0;//not transition
    //tranzition
    if(trans==1){
    if(mask.length>3)
    eval(p)._alpha=100;
    else
    eval(p)._alpha=(Gtime-Ttime)*100/(Ttrans*1000);
    aux=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000)
    eval(p)._x=xv*aux+xk;
    eval(p)._y=yv*aux+yk;
    eval(p)._xscale=eval(p)._yscale=sv*aux+100+sk;
    eval(p)._rotation=rv*aux+rk;
    blur.blurX=aux*xbv+xbk;
    blur.blurY=aux*ybv+ybk;
    eval(p).p.p.filters = [blur];
    //intarzierea
    aux=aux+aux2;
    eval(pp)._x=xv2*aux+xk2;
    eval(pp)._y=yv2*aux+yk2;
    eval(pp)._xscale=eval(pp)._yscale=sv2*aux+100+sk2;
    eval(pp)._rotation=rv2*aux+rk2;
    if(!end)gotoAndPlay(_currentframe-1);
    ////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////

    See
    http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html
    danredman wrote:
    > i want to smooth loaded images (jpg) in flash8
    >
    > let's say that i have one layer, one frame and the
    following AS:
    >
    _root.loadMovie("q.jpg");
    >
    > the _root could be an object, but the behavior is the
    same
    >
    > so in flash7 CTRL+ENTER, right click and zoom --->
    RESULT: zoom with image
    > interpolation (like photoshop bicubic resample)
    > but in flash8 CTRL+ENTER, right click and zoom --->
    RESULT: zoom with NO image
    > interpolation (like photoshop nearest nei ghbor
    resample)
    >
    > why?????
    >
    > i have looked in help but all i can find is somthing
    refering about images in
    > the library. I want external jpgs!!!
    > i have done a slideshow with setable tranzitions (fade,
    blur, moving, zoom
    > in/out, external loaded masking)
    >
    >
    > here is some the important part of the my code:
    >
    > Gtime=getTimer(); //global timmer
    >
    > ///////////////////////////////ia datele generale, daca
    cele particulare
    > lipsesk
    > /*Ttrans=eval("q.tt")-0;*/
    if(eval("q.tt"+pidx))Ttrans=eval("q.tt"+pidx)-0;
    > /*Tfoto=eval("q.tf")-0;*/
    if(eval("q.tf"+pidx))Tfoto=eval("q.tf"+pidx)-0;
    > /*sv=eval("q.sv")-0;*/
    if(eval("q.sv"+pidx))sv=eval("q.sv"+pidx)-0;
    > /*sk=eval("q.sk")-0;*/
    if(eval("q.sk"+pidx))sk=eval("q.sk"+pidx)-0;
    > /*xv=eval("q.xv")-0;*/
    if(eval("q.xv"+pidx))xv=eval("q.xv"+pidx)-0;
    > /*yv=eval("q.yv")-0;*/
    if(eval("q.yv"+pidx))yv=eval("q.yv"+pidx)-0;
    > /*xk=eval("q.xk")-0;*/
    if(eval("q.xk"+pidx))xk=eval("q.xk"+pidx)-0;
    > /*yk=eval("q.yk")-0;*/
    if(eval("q.yk"+pidx))yk=eval("q.yk"+pidx)-0;
    > /*rv=eval("q.rv")-0;*/
    if(eval("q.rv"+pidx))rv=eval("q.rv"+pidx)-0;
    > /*rk=eval("q.rk")-0;*/
    if(eval("q.rk"+pidx))rk=eval("q.rk"+pidx)-0;
    > /*xbk=eval("q.xbk")-0;*/
    if(eval("q.xbk"+pidx))xbk=eval("q.xbk"+pidx)-0;
    > /*ybk=eval("q.ybk")-0;*/
    if(eval("q.ybk"+pidx))ybk=eval("q.ybk"+pidx)-0;
    > /*xbv=eval("q.xbv")-0;*/
    if(eval("q.xbv"+pidx))xbv=eval("q.xbv"+pidx)-0;
    > /*ybv=eval("q.ybv")-0;*/
    if(eval("q.ybv"+pidx))ybv=eval("q.ybv"+pidx)-0;
    > /*mask=eval("q.mask");*/
    if(eval("q.mask"+pidx))mask=eval("q.mask"+pidx);
    >
    >
    > /
    >
    >
    > if(trans==0 && Gtime>Ftime+Tfoto*1000){
    > //retain values
    > aux2=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000);
    > Ttrans2=Ttrans;
    > Tfoto2=Ttrans;
    > sv2=sv;sk2=sk;
    > xv2=xv;yv2=yv;
    > xk2=xk;yk2=yk;
    > rv2=rv;rk2=rk;
    > xbv2=xbv;ybv2=ybv;
    > xbk2=xbk;ybk2=ybk;
    > //end retain values
    > Ttime=Gtime;
    > trans=1;//transition
    >
    > if(p=="p1"){
    > p="p2";pp="p1";
    > }else{
    > p="p1";pp="p2";
    > }
    > pidx++;
    > if(eval("q.p"+pidx)==undefined){
    > end=1;
    > //gotoAndStop(6);
    > }else{
    > p1.swapDepths(p2);
    > loadMovie(fotofolder+eval("q.p"+pidx),eval(p+".p.p"));
    > eval(p)._xscale=eval(p)._yscale=100;
    > eval(p)._rotation=0;
    > }
    > }
    > if(trans==1 && Gtime>Ttime+Ttrans*1000){
    > Ftime=Gtime;
    > trans=0;//not transition
    > }
    > //tranzition
    >
    > if(trans==1){
    > if(mask.length>3)
    > eval(p)._alpha=100;
    > else
    > eval(p)._alpha=(Gtime-Ttime)*100/(Ttrans*1000);
    > }
    > aux=(Gtime-Ttime)*100/((Ttrans*2+Tfoto)*1000)
    > eval(p)._x=xv*aux+xk;
    > eval(p)._y=yv*aux+yk;
    > eval(p)._xscale=eval(p)._yscale=sv*aux+100+sk;
    > eval(p)._rotation=rv*aux+rk;
    > blur.blurX=aux*xbv+xbk;
    > blur.blurY=aux*ybv+ybk;
    > eval(p).p.p.filters = [blur];
    > //intarzierea
    > aux=aux+aux2;
    > eval(pp)._x=xv2*aux+xk2;
    > eval(pp)._y=yv2*aux+yk2;
    > eval(pp)._xscale=eval(pp)._yscale=sv2*aux+100+sk2;
    > eval(pp)._rotation=rv2*aux+rk2;
    >
    > if(!end)gotoAndPlay(_currentframe-1);
    >

  • Loader will load images from another server, but then we get error on Bitmap operation

    I'm developing an app that currently is using Loader to get images from another server.  This shouldn't currently work since we are still waiting for the owner of that server to put a crossdomain file in place.  However, it does work -- sort of .
    Loader can load the images fine, without an error.  But then the app has a feature in which we are making a larger duplicate of the image to display in a sidebar, we do this in this manner:
    var myBitmap:Bitmap = Bitmap(loader.content);
    and when this runs we get a Flash player security error 2122, sandbox violation.
    So while I'm hoping all this will fix itself when the crossdomain.xml file is put in place, I'm confused as to why we only get the sandbox error when we make a Bitmap from the image, and not when we initially try to retrieve the image.
    (Incidentally: is there a better way to make a "copy" of an image loaded by a Loader, and then change its width and height for simultaneous display in another part of the stage?  I don't need to change its actual dimensions -- I just need to change its display width and height.)
    Thanks!

    The sandbox allows viewing, not editing from another server without a crossdomain.
    So, when you try to load it up, it loads it, but "read-only" and gives you an error when you try to "edit" it by making a new Bitmap out of it.
    This should resolve itself once that crossdomain is in place.
    ||EDIT||
    I just realized I should clarify my statement a little more.
    When you load images from another server without a crossdomain, it allows the load for display only.  When you try to load data, it will fail.  This is because, XML data, or some other type of data is editable by default, and images are only viewable by default.  So, the image fails when you try to convert it into an editable form.

  • Sandbox error, crossdomain loading Images dynamically

    Hi!
    I have a following image:
    <mx:Image id="listakuva1"
    source="images/autoListasivu.jpg"
    complete="handleImageComplete(event)" />
    And because I have to scroll the image, I have to turn the
    smoothing on when complete:
    private function handleImageComplete(event: Event): void {
    var bitmap: Bitmap = ((event.target as Image).content as
    Bitmap);
    if (bitmap != null) {
    bitmap.smoothing = true;
    This works fine. But then I want to change the image when
    user does something:
    listakuva1.load("new image in another domain via URL");
    And it gives me security sandbox error. I googled and I found
    that I should put:
    checkPolicyFile = true;
    to somewhere but I can't figure out WHERE!
    The images are still loaded without the warning but the
    smoothing-function is not working.
    PLS Help.
    BR Timo

    Hi,
    It would be great if you can post a simple sample. I can try
    it out on a Mac and let you know.

  • Problem loading image into texture memory

    Hi there, I am currently porting our new casual PC game over to the iPad using the pfi, the game was written in Flash so the porting process isn't that hard thankfully, it's mainly just optimizing the graphics.
    So far things are going smoothly, I was initially worried about graphical performance, but since we put everything into the GPU that's no longer a concern- it runs super smooth at 60fps at 1024x768, we can have a hundred large bitmaps rotating and alphaing at once with no slowdown.
    However there is one weird problem which is really worrying me at this point- it seems that the speed at which images are loaded into video memory as textures is vastly different depending on what else is being run on the iPad, for example:
    * If I run my game with nothing else in memory, it will run fine at 60fps, and load up large images into texture memory very fast.
    * If I run another App, in this case a Virtual piano app for a while, then close that App via the Home button (so the piano app is still in memory but suspended due to the multitasking), then when I run my game, it will run ok initially, but when I try to load a large (1024x512) image into texture memory it pauses the whole game for several seconds.
    * To make matters worse, if I repeat the same test using the RAGE app from ID software (which is very graphically intense), my game actually slows down to 1 fps and runs extremely slowly as soon as I run it and the frame rate never returns to normal. If I then double-click the home button, shut down RAGE, then go back to my game, it will run fine.
    I have read that sometimes when you load images into texture memory it will have to reclaim that memory from other apps, but that doesnt exaplain why it slows down every time I want to load something, or why the game would slow right down to a crawl.
    So then it seems that having other Apps in memory is slowing down my game, or stopping it from working altogether. Obviously this is not ideal and would stop us from releasing, so is there any way I can stop this, has anyone come across the problem? Please help!
    PS. this problem also happens on an iPhone 4, as I have performed the same tests.

    Hi _mz84
    First thing I noticed, is that you did not close your
    <embed> tag
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent" />
    If that doesn't solve your troubles, try the following
    container.
    <object type="application/x-shockwave-flash" height="611"
    width="385" align="middle" data="gallery1.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="gallery1.swf" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#421628" />
    </object>
    hope this helps out.

  • Load images in the correct order, needs help..

    I have tried loading in some images in the order of the xml files.. that contain them ..
    they did load in one by one but .. in  random order .. so mabe i am doing too much or too liitle can some one give it asecond look for me ..
    //-- load Xml
    urlLoader.load(new URLRequest("loader_alpabet/loader_alpabet.xml"));
    urlLoader.addEventListener(Event.COMPLETE,xmlReady);
    this.addEventListener(Event.ENTER_FRAME,entFrm);
    // process the Xml and create array of objs
    function xmlReady(evt:Event):void {
         xml=new XML(evt.target.data);
         var xmlListUrls:XMLList=new XMLList(xml.image.url.text());
         var xmlListNames:XMLList=new XMLList(xml.image.name.text());
         var xmlListDescs:XMLList=new XMLList(xml.image.description.text());
         for (var g:Number = 0; g < xmlListNames.length(); g++) {
              imagePack.push({name:xmlListNames[g],url:xmlListUrls[g],desc:xmlListDescs[g]});
              if (xmlListUrls.length()==imagePack.length) {
                   loaderMachine();
    //this is where i position the images
    function entFrm(evt:Event):void {
         if (imageIcons.length>0) {
              for (var g:Number = 0; g < imageIcons.length; g++) {
                   imageIcons[g].x=(centerX+Math.cos(angle+g)*radiusX)-imageIcons[g].width/2;
                   imageIcons[g].y=(centerY+Math.sin(angle+g)*radiusY)-imageIcons[g].height/2;
                   imageIcons[g].scaleX=imageIcons[g].scaleY= ((imageIcons[g].y/150) - 0.5);
                   stage.addChildAt(imageIcons[g], imageIcons[g].scaleX);
                   angle+=speed;
    //-- loader function
    function loaderMachine():void {
         trace(imagePack.length);
         loader = new Loader();
         loader.load(new URLRequest(imagePack[count].url));
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE,imageReady);
    // put image on stage
    function imageReady(evt:Event):void {
         var image:Bitmap = (Bitmap)(evt.target.content);
         addChild(image);
         imageIcons.push(image);
         count++;
         if (count<imagePack.length) {
              loaderMachine();

    ah, I missed the 2nd version of the code
    You have to take the loaderMachine(); call out of the loop, call it after the loop.
    function xmlReady(evt:Event):void {
         xml=new XML(evt.currentTarget.data);
         var xmlListUrls:XMLList=new XMLList(xml.image.url.text());
         var xmlListNames:XMLList=new XMLList(xml.image.name.text());
         var xmlListDescs:XMLList=new XMLList(xml.image.description.text());
         for (var g:Number = 0; g < xmlListNames.length(); g++) {
              imagePack.push({name:xmlListNames[g],url:xmlListUrls[g],desc:xmlListDescs[g]});
          // start loading images
         loaderMachine();
    You're overwriting you loader instance each time you load an image, that's not good if you want it to stick around (display each loaded image).
    So in the method, create a local Loader instance and add it to the Array stack.
    Don't start the enterFrame event handler until all images are loaded.
    You can do so in the imageReady() event handler (check if counter equals array length).
    Don't add event listeners in the enterFrame event handler, you're adding them over and over again.
    So remove these from entFrm()
    imageIcons[g].addEventListener(MouseEvent.MOUSE_OVER,btn_mouse);
    imageIcons[g].addEventListener(MouseEvent.MOUSE_OUT,btn_mouse);
    Don't use Event.target (unless you know what you're doing), use currentTarget instead.
    function imageReady(evt:Event):void {
         var loader:Loader = (event.currentTarget as LoaderInfo).loader;
         loader.addEventListener(MouseEvent.MOUSE_OVER, btn_mouse);
         loader.addEventListener(MouseEvent.MOUSE_OUT, btn_mouse);
         addChild((loader);
         count++;
         if (count<imagePack.length) {
              loaderMachine();
        }else{
              addEventListener(Event.ENTERFRAME, entFrm);
    Don't use Array.length in a loop condition, as this will check the lenght with each iteration, slowing down the loop.
    Set it to a local variable once and use that as the loop condition.
    var len:uint = imageIcons.length;
    for(var i:uint=0; i<len; i++) {}
    Last but not least, you're probably better off using a tween engine rather than an enterFrame event to move things around.
    Look into TweenLite.
    http://blog.greensock.com/tweenlite/
    It now looks like the enterFrame event continues untill you roll over one of the buttons? If so, that can't be good..
    function loaderMachine():void {
         var loader:Loader = new Loader();
         loader.load(new URLRequest(imagePack[count].url));
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageReady);
         imageIcons.push(loader);

  • Why do I get error message "Prop Bitmap DLL not loaded" when I try to print Adobe documents?

    When trying to print either images or text from Adobe format I receive the above error when using Mozilla firefox as my browser. i f I use Internet Explorer as browser I do not have any problems printing from Adobe.

    I recently updated to Firefox 9 and every time I try to print something in draft form from an email (like a confirmation of an order I placed on a website) I get the Prop Bitmap DLL Not Loaded message. I never got that message with the 3.6 version of Firefox so it is very annoying and starting to irritate me. I print most of my things in draft form to save using up the ink in the cartridge. I have a Dell 924 printer. I uninstalled the printer and then reinstalled it but that didn't help the problem. I'm not computer savvy so I don't know how to fix the problem.

  • How could I load image via a Form when it is in runtime by not using default block

    1. How could I load image from my local computer to the database via a Form when it is in runtime?
    2. And how to display the image stored in the database on a Form ?
    Thanks buddy ~
    A nice member answered this question already, but I want to know how could I do it by using manual create block instead of using database item directly~
    Could anyone help me pls~

    This is the only way I know right now:
    1) Create this table
    SQL> desc av_data
    Name Null? Type
    BLOB_ID NOT NULL NUMBER(10)
    BLOB_TYPE NOT NULL VARCHAR2(10)
    DESCRIPTION NOT NULL VARCHAR2(25)
    BLOB_DATA LONG RAW
    2) On form create a button with this 'when-btn-prssed' tgr:
    DECLARE
         v_dirname          VARCHAR2(255);
         v_filename          VARCHAR2(255);
    BEGIN
         v_dirname := 'C:\';
         v_filename := get_file_name(v_dirname, NULL,
         'Bitmap file (*.bmp)|*.bmp|'                    ||
         'JPEG file (*.jpg)|*.jpg|'          );
         IF v_filename IS NOT NULL THEN
    read_image_file(v_filename, 'ANY',
    'av_data_image.blob_data');
         END IF;
    END;     
    3) Add this pre-insert trigger too :
    :av_data_image.blob_type := 'IMAGE';
    Sorry if this is not exactly the answer you're looking for.
    Bob

  • Loading images in j++

    is there any way to load images in ms j++ other than using the PictureBox function? A friend showed how to load using bitmap class I think, I'm not sure, but I couldn't get the code down. the Image class isn't working either with j++, i'm not sure why.
    Anyone have a good suggest on the best way to load images in j++?

    I would suggest staying with the Java-specific routes, rather than any J++ tools. Unless you have absolutely no need to port this.
    There are many good articles on how to load images, as well as the entire Java Media Framework.
    Just hit up your favorite search engine, as well as java.sun.com

  • Loading images from an Array generated from XML

    OK, this is my first day trying to use AS3 and I'm kind of
    confused on how to load an image onto the screen and then be able
    to resize it, scale it, etc..
    I'm loading up to 5 images in from an XML file that will be
    generated on a server. (right now I'm just using a test.xml file).
    Normally I would load the images into dynamically created
    movie clips (whatever0_mc through whatever4_mc generated by code in
    AS2). But I can't seem to get anything working.. I've looked on the
    internet and read through some information but I'm still just
    REALLY confused... this is what I have so far. To make it easier on
    me in the future, I've put different code on different layers so I
    can look at it closer.. I've separated the code into the different
    layers they're on here:
    First Layer:
    import flash.events.Event;
    import flash.net.URLLoader; // URL Loader Import for Images
    import flash.net.URLRequest; // URL Requests Import for
    Images
    import flash.display.Loader; // Loader
    import flash.events.ProgressEvent; // Progress for Loader
    import flash.text.TextField; // Imports for Text Fields
    import flash.display.Sprite; // Imports Sprite stuff for
    loaded Images
    import flash.display.Bitmap; // Imports stuff to display a
    bitmap
    Second Layer:
    var imgLoader:Loader = new Loader(); // Initialize Image
    Loader
    // Listeners for the Image Loaders //
    function showPreloader(evt:Event):void {
    trace("-- ** showPreloader ** --");
    addChild(loadProgress_txt);
    function showProgress(evt:ProgressEvent):void {
    trace("-- ** showProgress ** --");
    var totalLoaded:Number = evt.bytesTotal;
    var currentLoaded:Number = evt.bytesLoaded;
    var thePercent:Number = (currentLoaded * 100) / totalLoaded;
    loadProgress_txt.text = thePercent + "%"; // Show bytes
    loaded
    function showLoadResult(evt:Event):void {
    trace("-- ** showLoadResult ** --");
    Third Layer:
    // Setup Variables //
    var imageArray:Array = new Array();
    var galleryTitle:String;
    var numPhotos:Number;
    var gallerySubmitter:String;
    // XML Info //
    XML.ignoreComments = true;
    XML.ignoreWhitespace = true;
    var galleryXML:XML;
    var xmlLoader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest("test.xml");
    xmlLoader.load(request);
    xmlLoader.addEventListener(Event.COMPLETE, XMLComplete);
    function XMLComplete(evt:Event):void {
    trace("-- ** XMLComplete ** --");
    var loader:URLLoader = evt.target as URLLoader;
    if (loader != null){
    galleryXML = new XML(loader.data);
    galleryTitle = galleryXML.children()[0].attributes()[0];
    numPhotos = galleryXML.children()[0].attributes()[1];
    gallerySubmitter = galleryXML.children()[0].attributes()[2];
    trace("galleryTitle: " + galleryTitle);
    trace("numPhotos: " + numPhotos);
    trace("gallerySubmitter: " + gallerySubmitter);
    for(var i:Number = 0; i<numPhotos; i++) {
    imageArray.push(galleryXML.children()[0].children()
    .attributes()[1]);
    } // for(var i:Number = 0; i<numPhotos; i++)
    trace(imageArray.toString());
    trace("loading: images\\gallery\\" + imageArray[0]);
    var imgRequest:URLRequest = new
    URLRequest("images\\gallery\\" + imageArray[0]); // Request the
    Image into the Loader
    imgLoader.load(imgRequest);
    imgLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
    imgLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResult);
    } else { // if (loader != null){
    trace("loader is not a URLLoader!");
    } // if (loader != null){
    } // function onComplete(event:Event):void {
    // End XML Info //
    Can anyone point me in the next direction?
    thanks...

    When you used the IMAQ create VI you specified each image to use the same name of "image".  Each image has to have a unique name.  I edited your VI to give a unique name for each image and I was able to view three different images in three different viewing panes.
    Attachments:
    Image Array Reworked.vi ‏19 KB

  • Saving and loading images (png) on the iPhone / iPad locally

    Hi,
    you might find this helpful..
    Just tested how to save and load images, png in this case, locally on the i-Devices.
    In addition with a SharedObject it could be used as an image cache.
    Make sure you have the adobe.images.PNG encoder
    https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
    Not really tested, no error handling, just as a start.
    Let me know, what you think...
    Aaaaah and if somebody has any clue about this:
    http://forums.adobe.com/thread/793584?tstart=0
    would be great
    Cheers Peter
        import flash.display.Bitmap
         import flash.display.BitmapData
        import flash.display.Loader   
        import flash.display.LoaderInfo
        import flash.events.*
        import flash.filesystem.File
        import flash.filesystem.FileMode
        import flash.filesystem.FileStream
        import flash.utils.ByteArray;
        import com.adobe.images.PNGEncoder;
    private function savePic(){
        var bmp =  // Your Bitmap to save
        savePicToFile(bmp, "test.png")
    private function loadPic(){
         readPicFromFile("test.png")
    private function savePicToFile(bmp:Bitmap, fname:String){
           var ba:ByteArray = PNGEncoder.encode(bmp.bitmapData);
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.WRITE);
            fileStream.writeBytes(ba);
             trace("saved imagefile:"+imagefile.url)
    private function readPicFromFile(fname:String){
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            trace("read imagefile:"+imagefile.url)
            var ba:ByteArray = new ByteArray();
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.READ);
            fileStream.readBytes(ba);
            var loader:Loader = new Loader();
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPicRead)
            loader.loadBytes(ba);   
    private function onPicRead(e:Event){
        trace("onPicRead")
         var bmp:Bitmap = Bitmap(e.target.content)
         // Do something with it

    Are the movies transferred to your iPhone via the iTunes sync/transfer process but don't play on your iPhone?
    Copied from this link.
    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
    What are you using for the conversion? Does whatever you are using for the conversion include an iPod or iPhone compatible setting for the conversion?
    iTunes includes a create iPod or iPhone version for a video in your iTunes library. Select the video and at the menu bar, go to Advanced and select Create iPod or iPhone version. This will duplicate the video in your iTunes library. Select this version for transfer to your iPhone to see if this makes any difference.

  • Prop Bitmap DLL not loaded?

    What is this? Some things print others not so much. I have uninstalled and reinstalled my Dell printer and still get this message. Why?

    Hello, I hope you are there. I had to go last week.
    My printer name and number is a Dell 922.
    What file and where do I find this file and what do I do with this file when I find it. Please help. There are some pages that I need to copy and I can not.
      From: " kglad " 
    Sent: Sunday, March 31, 2013 11:53:21 AM
    Subject: Prop Bitmap DLL not loaded?
    Re: Prop Bitmap DLL not loaded?
    created by kglad in Downloading, Installing, Setting Up - View the full discussion
    what's your printer model name/number?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http ://forums.adobe.com/message/5193998#5193998
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link .
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http ://forums.adobe.com/message/2936746#2936746 .

  • Cannot load image

    Hi,
      I'm trying to add the logo to the marketing document's PLD. Added the image sucessfully in the server. When trying to load the image in the client, nothing happens. Tried to add the image under the option print preference. got the error message as "cannot load image". Please forward your solutions to fix the issue.
    Thanks & Regards
    Murugappan.T

    Hi Dear,
    You can add image on the PLD as follows.
    1) Add one Picture Field on the Report
    2) Paste the Image file into the Bitmap Folder on the server
    3) Click on Content-->then Browse.then select that image file from server
    4) then after that you can set the properties from Format tab.
    You need not set the Image file from the every client machine,
    PLD setting were loaded into the database.i.e.PLD is Database specific not user specific.
    Hope this will help you...
    lg Mahendra

  • Alpha transparency borders on dynamically loaded images for use with textures

    Hi there folks. Well, I have been beating my head over this
    and am hoping one of you can help me out.
    Essentially I have 16bit images that are loaded into my
    shockwave application at run-time. These images are user defined
    which means that I will not know their size ahead of time. Once the
    images are loaded I then create textures and apply them to various
    shaders. Ok, all of this works just fine. What I need to do though
    is create an alpha transparent border around the images, so when I
    apply them to their surfaces I only see the image and nothing
    around it. I am doing this because these images will only appear at
    specific parts on a surface, textureRepeat will be false, and many
    models will be stacked in the same exact location using the same
    model resource. I have everything working, but I cannot figure out
    the alpha part for the life of me. Also, when I test the alpha
    based image by itself it works just fine. It is not until I try and
    combine the 16bit (converted to 32bit at run-time) image that I run
    into problems.
    I have tried:
    - Creating a 32bit alpha image in Fireworks with a
    transparent border and a black rect for the inside. I then copy the
    dynamic image over the alpha image (only after going from 16bit to
    32bit in imaging Lingo) and leave a little room at the edges for
    the transparency. Well, I get a crazy amount of streaks here even
    when I try to up the trans border by around 24 pixels on each side.
    - Using another similiar alpha based image as a mask with
    copyPixels and extractAlpha/setAlpha like this... (code is a little
    rough here)
    newImage = new(#bitmap)
    newImage.name = "place_Test"
    newImage.image = member("place").image
    newAlpha = new(#bitmap)
    newAlpha.name = "AHH"
    newAlpha.image = image(newImage.image.width + 24,
    newImage.image.height + 24, 32)
    newAlpha.image.useAlpha = true
    newAlpha.image.copyPixels(member("vase").image,
    newAlpha.image.rect, member("vase").image.rect)
    newAlphaInfo = newAlpha.image.extractAlpha()
    newAlpha.image.useAlpha = false
    --reverse dark to light
    iAlphaReverse = image(newAlpha.image.width,
    newAlpha.image.height, 8, #grayscale)
    iAlphaReverse.fill(iAlphaReverse.rect, rgb(0,0,0))
    iAlphaReverse.copyPixels(newAlphaInfo, iAlphaReverse.rect,
    newAlphaInfo.rect, [#ink : #reverse])
    --newAlphaInfo.copyPixels(iAlphaReverse, newAlphaInfo.rect,
    iAlphaReverse.rect, [#ink:#subtractpin])
    newAlphaMask = iAlphaReverse.createMask()
    rescaleAbs(newImage, newImage.image.width,
    newImage.image.height, "place_Test", 32)
    destImage = member("place_Test").image.duplicate()
    destImage.fill(destImage.rect, rgb(0,0,0))
    newAlpha.image.useAlpha = false
    destImage.copyPixels(newImage.image, newImage.image.rect,
    newImage.image.rect, [#maskImage:newAlphaMask, #ink:#add])
    destImage.setAlpha(iAlphaReverse)
    destImage.useAlpha = true
    member("place_Test").image = destImage
    I apologize for the messy code. I have cut and pasted from
    all over the place and am getting confused. In any case, I think I
    am making this harder then it needs to be and hope someone can
    help.
    Thank you in advance,
    Dave

    Hi, you can try using other texture layer as mask on the same
    shader. As usually you create the texture from a dynamic loaded
    image, then apply this texture to the shader on the texture list
    index 1 (textureList[1]). Next part does the job, create other
    texture from a 32 bits image with the alpha information and fill
    all pixels with white color, this is very important because the
    second texture layer will be multiply with the first texture layer.
    This texture set its render format to rgba8888. Apply the mask
    texture to the same shader at texture list index 2, verify that the
    blendFunctionList index 2 is #multiply.
    I include the code of a project that use this masking
    approach:
    property pMember
    property pEarthSphere
    property pNightSphere
    property pLastTransform
    on beginSprite me
    pMember = sprite(me.spriteNum).member
    me.setupWorld()
    end
    on setupWorld(me)
    pMember.resetWorld()
    repeat with i = pMember.light.count down to 1
    pMember.deletelight(i)
    end repeat
    vEarthModelResource = pMember.newModelResource("EARTH MODEL
    RESOURCE", #sphere)
    vEarthModelResource.radius = 50.000
    vEarthModelResource.resolution = 20
    vEarthTexture = pMember.newTexture("EARTH TEXTURE",
    #fromCastMember, member(3,1))
    vEarthShader = pMember.newShader("EARTH SHADER", #standard)
    vEarthShader.emissive = color(255,255,255)
    vEarthShader.flat = TRUE
    vEarthShader.transparent = FALSE
    vEarthShader.textureList[1] = vEarthTexture
    pEarthSphere = pMember.newModel("EARTH MODEL",
    vEarthModelResource)
    pEarthSphere.shaderList = vEarthShader
    vNightModelResource = pMember.newModelResource("NIGHT MODEL
    RESOURCE", #sphere)
    vNightModelResource.radius = 50.2000
    vNightModelResource.resolution = 20
    vNightTexture = pMember.newTexture("NIGHT TEXTURE",
    #fromCastMember, member(4,1))
    vNightTexture.quality = #lowFiltered
    vNightTexture.nearFiltering = FALSE
    vNightTexture.renderFormat = #rgba8880
    vNightShader = pMember.newShader("NIGHT SHADER", #standard)
    vNightShader.emissive = color(255,255,255)
    vNightShader.flat = TRUE
    vNightShader.transparent = TRUE
    vNightShader.textureList[1] = vNightTexture
    vMaskNightTexture = pMember.newTexture("MASK NIGHT TEXTURE",
    #fromCastMember, member(6,1))
    vMaskNightTexture.renderFormat = #rgba8888
    vNightShader.textureList[2] = vMaskNightTexture
    vNightShader.textureModeList[2] = #wrapPlanar
    pNightSphere = pMember.newModel("NIGHT MODEL",
    vNightModelResource)
    pNightSphere.shaderList[1] = vNightShader
    pNightSphere.parent = pEarthSphere
    end
    on exitFrame(me)
    pEarthSphere.rotate(0.0,0.1,0.0)
    me.moveMaskNightTexture()
    end
    on moveMaskNightTexture(me)
    vRotationVector = - pEarthSphere.transform.rotation
    pNightSphere.shaderList[1].wrapTransformList[2].rotation =
    vRotationVector
    end

  • If I set Firefox to refrain from loading images automatically, how can I view a single image, or a single page's images, without having to enter the site in the Exceptions list, only to go back and remove it when I'm done?

    I was hoping for a hotkey option or button on the toolbar to load images for a single page for a single session at a time. Turning off images really saves bandwidth and speeds load time on websites, but sometimes I'd like to view the images on a page, but only for this session. Is that possible, or do I have to go to the Exceptions page and allow a specific domain or page to load images and then go back and remove that domain or page when I'm done?

    *Image Block: https://addons.mozilla.org/firefox/addon/image-block/

Maybe you are looking for

  • Create a Lookup for ProjetServer field in SharePoint List item

    Hi, I would like to display values in custom fields of MS Project Server 2010 in Ms SharePoint list 2010. The values ought to be displayed as lookup in a field of Listitem form. I would like to futher query and populate certain fields in New Items fo

  • Is kaspersky content blocker available in firefox 35.0.1

    Is Kaspersky Content Blocker (with the green or grey K's) available in firefox 35.0.1, because when I reinstalled Kaspersky Internet Security on 1/25/2015 it was not available; then became available, today. It is not in Firefox Extensions. I was hopi

  • Running OS command using OEM 11gR1

    Hi, I have installed OEM 11gR1 on linux 64bit machine and have applied all recommended patches on top of it. Everything worked out fine till i got to the part of configuring my database alert. Database Instance: UAT > All Metrics > Tablespace Space U

  • How do I un-install my OS X Yosemite? I find my mac is slow now and I don't like the changes. I would like to pretend I never up-dated.

    I am a student and over the christmas break I up-dated my computer. Ever since my mac is running weird, especially my preview app which I use to do all of my notes. My macbook pro is little old 2010 but was running just fine before this. I just want

  • New 27" iMac crashing

    Bought a new 27" iMac recently, upgraded with the i7 processor & GTX 780M 5gb video card. System has 32gb RAM. I received the machine the same day Mavericks was released, so before doing anything I upgraded the OS (but did NOT do a clean install. Mis