1 Reply Latest reply on Dec 12, 2008 8:11 AM by Newsgroup_User

    preload images dynamically

    joseph_gener
      is there a way for the image to load prior to the addcild command so that it doesn't lag? or what event is dispatched when the image content is already complete?

      i'm creating a custom tile list that flips from one image to the next. unfortunately, unless the image is preloaded, it throws the error ArgumentError: Error #2015: Invalid BitmapData.. if i addchild in the constructor, it throws an RangeError: Error #2006: The supplied index is out of bounds..

      any ideas? thanks
        • 1. Re: preload images dynamically
          Level 7

          "problemaPaDin" <webforumsuser@macromedia.com> wrote in message
          news:ghtp1q$huo$1@forums.macromedia.com...
          > is there a way for the image to load prior to the addcild command so that
          > it
          > doesn't lag? or what event is dispatched when the image content is already
          > complete?
          >
          > i'm creating a custom tile list that flips from one image to the next.
          > unfortunately, unless the image is preloaded, it throws the error
          > ArgumentError: Error #2015: Invalid BitmapData.. if i addchild in the
          > constructor, it throws an RangeError: Error #2006: The supplied index is
          > out of
          > bounds..
          >
          > any ideas? thanks

          It would be easier to figure out if you posted some code.