A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: loading the same image multiple times

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Location
    Austin, TX
    Posts
    297

    loading the same image multiple times

    Hi guys,
    I'm working on a project where I'd like to get a list of images via xml, and buttons will display each different image when you roll over them. I've got it working, each with their own preloader, but I was wondering if there was any way to keep from loading the same image over and over after the first time. The issue (not that big a deal, just trying to avoid it if I can) is that when I rollover a button, the preloader pops up for a split second before the image takes its place. If the image has been loaded before, I'd rather not have that happen. Is there a way around that? Or is it the case that if I destroy the movie clip that the image is being loaded into, you have to load the image back up from scratch again? Is there any way to load images into, like... a compile time library or something?

  2. #2
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    As soon as the image is loaded for the first time, you can set _visible to false for the preloader clip. So when the image is loading again the preloader will happen but will never get displayed again.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center