简体   繁体   English

在 flex TileList 控件中缓存图像缩略图

[英]Cache image thumbnails in flex TileList control

I have a flex TileList to which I load a bunch of images.我有一个 flex TileList,我向其中加载了一堆图像。

When the tile list is scrolled up and down, it does fresh requests for all the images even though they were loaded previously.当磁贴列表上下滚动时,它会对所有图像进行新的请求,即使它们之前已加载。

Is there a way to stop this behavior and let the TileList control keep its previously loaded images?有没有办法阻止这种行为并让 TileList 控件保留其先前加载的图像?

Thanks in advance!提前致谢!

Flex does not provide you with native caching of images. Flex 不为您提供图像的本机缓存。 It loads them afresh.它重新加载它们。 You will have to write your own cache (a linked list of images).您将不得不编写自己的缓存(图像链接列表)。 Two references you should look at with sample implementation for image caching:您应该使用图像缓存的示例实现来查看两个参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM