Flex 3 静态位图问题
这里有一个有趣的问题 - 我正在使用 Flex 3 制作一个小游戏 - 现在我有一个静态 ImageAccess 类,它首先加载所有图像并将它们存储在静态数组中,以便将来更快地访问。
现在,由于我在不调用 Clone() 的情况下处理物理位图数据(出于效率问题),并且有一次偶然我直接写入了位图数据。
现在奇怪的部分 - Flex 使用某种奇怪的缓存并存储位图及其所做的新更改 - 无论我做什么(重新启动 Flex Builder,删除我的缓存,重新启动浏览器),位图数据仍然会加载额外的内容信息(即使图像没有所有这些数据)。
请帮忙:D
Interesting problem here - I'm making a small game using Flex 3 - now I have a static ImageAccess class, which first loads up all images and stores them in a static array for quicker access in the future.
Now since I address the physical bitmapdata without calling Clone() (for efficiency issues) and once by accident I've written directly onto the bitmapdata.
Now the weird part - Flex uses some kind of weird caching and stores the bitmap with the new changes made to it - no matter what I do (restart Flex Builder, delete my cache, restart browser) the bitmap data is still loaded with the extra info (even though the image is without all that data).
Please help :D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能否提供有关您所谈论的额外信息的更多详细信息?
如果我错了,请纠正我,但 Flex 不会缓存任何内容,浏览器会缓存任何内容,无论如何,使用其他浏览器查看应该显示原始图像。如果没有,您可能会考虑某些被遗忘的功能仍然作用于原始位图的可能性...您是否尝试过在另一个浏览器中查看该应用程序?
原始图像也有可能因某种原因被损坏......
Can you give more details about what extra info you're talking about?
Correct me if I'm wrong but Flex doesn't cache anything as such, the browser does, in any case , viewing with another browser should display the original image. If it doesn't , you may consider the possibility of some forgotten function still acting on the original bitmap... have you tried viewing the application in another browser by the way?
there's also the possibility of the original image being corrupted for whatever reason...