Flash 空闲加载图像

发布于 2024-10-09 21:40:43 字数 195 浏览 1 评论 0原文

我有一系列大约 50 张图像,每个图像大约 100kb,需要加载到闪存中。它们不能一一加载,因为它们需要响应动画。我在想我是否可以最初加载一定数量的内容,以便减少预加载时间。然后,只需在用户与网站交互时加载图像,而不是直接使用图像。本质上,我想要达到的目的是在用户说“阅读单个页面”时秘密加载图像,我可以利用加载内容的宝贵时间(例如延迟加载)。

感谢任何见解。

I have a series of approximately 50 images each approximately 100kb each that needs to be loaded into flash. They cannot be loaded one by one because they need to be responsive to animations. I was thinking if maybe i can load like a certain amount of them initially so that preload time is less. Then just load the images when the user is interacting with the site and not using the images directly. Essentially what im trying to get at is secretly loading the images while the user is say "reading a single page", i could use that valuable time loading content (something like lazy-loading).

Thanks any insight is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忘东忘西忘不掉你 2024-10-16 21:40:43

你可以看看 greensock 的 LoaderMax

它使您能够创建加载序列。例如,您可以决定加载一定数量的图像,然后随时将更多图像添加到加载序列中。您也可以暂停&恢复加载当您不希望加载过程干扰某些其他进程(例如补间动画)时,这会很方便。

You could have a look at LoaderMax from greensock.

It gives you the ability to create a loading sequence. For instance, you could decide to load a certain number of images , then add more images to the loading sequence whenever you wish. You could also pause & resume loading which can be handy when you don't want the loading process to interfere with some other processes such as tween animations.

薄凉少年不暖心 2024-10-16 21:40:43

批量加载器是一个不错的选择。

它很像 LoaderMax,只是语法不同。

Bulk loader is a good alternative.

It's a lot like LoaderMax, just different syntax.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文