TileList images disappear on scroll possible bug?

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default TileList images disappear on scroll possible bug?

    Hello, i've build a TileList (also noticed on HorizontalList) filled with
    <mx:Image> tags as itemrenderer, the source properties of the images are Bitmap
    Objects just like here:

    [url]http://blog.flexexamples.com/2007/08/03/duplicating-images-using-the-bitmap-and-[/url]
    bitmapdata-classes/

    please look at the comment from betehes (May 8th 2008), i'm having the exact
    same problem:
    if i scroll around some images disappear ( on the example above this happens
    when there are around 30 images in the list and i'm scrolling fast)

    is there a workaround for this problem?

    allnicksalreadytaken Guest

  2. Similar Questions and Discussions

    1. Dynamic TileList + Images
      Hi all I made a tile list inside tab navigator both dynamically.. now I want Images whose URL is in XML to displayed according to tab change....
    2. Add Tags and Images disappear
      When tagging a document to be accessible to the visually impaired (using Add Tags to Document), some of my images disappear. Poof. I can manually...
    3. Could XML tags cause portions of images to disappear in PDFs?
      An question with some unknown variables ... but here goes ... We have recently discovered portions of certain images lose elements when PDFd and...
    4. Scroll bar for images + text
      Hi, is it posible to make a scroll bar for dynamic text box and a picture (picture holder) toghatter? or maybe it is posible to view a html (or...
    5. scroll text and images together
      Here's another article "Scrolling text with Graphics" http://director-online.com/buildArticle.php?id=465 Although it might be more about...
  3. #2

    Default Re: TileList images disappear on scroll, possible bug?

    in case anyone is interested i found the solution:

    instead of using:
    <mx:Image source="{data.image}" />

    in the itemrenderer use this, and set display namespace to: "flash.display.*"
    <mx:Image>
    <mx:source>
    <display:Bitmap bitmapData="{data.image.bitmapData}">
    </display:Bitmap>
    </mx:source>
    </mx:Image>

    i dunno what flash is doing different then, but that helps

    best regards
    Martin

    allnicksalreadytaken Guest

  4. #3

    Default Re: TileList images disappear on scroll, possible bug?

    You can also set your image source to data.image in the commitProperties
    function of the itemRenderer. That way when it scrolls or you drag the items
    the image source stays the same.



    protected override function commitProperties():void {
    image.source = data.image;
    }

    Bryan Dresselhaus Guest

  5. #4

    Talking Re: TileList images disappear on scroll possible bug?

    "<mx:Image>
    <mx:source>
    <display:Bitmap bitmapData="{data.image.bitmapData}">
    </display:Bitmap>
    </mx:source>
    </mx:Image>
    "

    Nice tip! It helps !
    Unregistered Guest

  6. #5

    Default Re: TileList images disappear on scroll possible bug?

    thanks all
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139