如何将图像存储localy使用Flex 3的XML? [英] how to images store localy from xml using flex 3?

查看:119
本文介绍了如何将图像存储localy使用Flex 3的XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XML链接。该链接有图片(APX 1000的图像)的集合。

在我的Flex应用程序启动的时候加载的所有图像在本地。然后当我需要的图像,然后使用它。

我如何做到这一点,给我一些链接和逻辑。

使用Flex 3。

感谢提前。

senthil。

解决方案
  1. 加载的.xml形式的服务器或左右。
  2. 解析的.xml,创造您存储映射中的所有图片网址
  3. 将您的UI中的图像成分和源属性设置为图像URL的值
  4. Flash插件将加载从URL中的形象,将显示图像完成后。
  5. 如果你正面临着​​一个SandboxVaiolationException(或类似的东西),你需要告诉你的服务器,让请求去。
如果你想改变形象的源属性在运行时,单击后奥德的其他事件只是设置

。 (没问题)

I have one xml link. that link have collections of images(apx 1000 images).

when i flex applications start at the time load all images in locally. then when i need that images then use it.

How i do this... give me some links and logic.

Using flex 3.

Thanks advance.

senthil.

解决方案

  1. Load the .xml form server or so.
  2. Parse the .xml and create a Map where you store all the image URLs
  3. Place an Image Component on your UI and set the "source" property to the value of the image URL
  4. Flash Plugin will load the image from the URL and will show the image when done.
  5. If you are facing a "SandboxVaiolationException" (or something like that) you need to tell your server to let the request go.

If you want to change the "source" Property of the Image at runtime, just set it after a click oder an other Event. (is no problem)

这篇关于如何将图像存储localy使用Flex 3的XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆