Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
flex 是否允许从服务器获取内容?
例如:服务器是http://www.sample.com/images/,内容如img1.jpg、img2.jpg、img3.jpg等...
http://www.sample.com/images/
img1.jpg
img2.jpg
img3.jpg
如何在我的应用程序中获取这些图像?
您需要在服务器上放置一个文件来描述该目录中的数据。最容易的是带有目录内容列表的 XML 文件。然后加载该已知文件,解析结果,然后加载其中的每个图像。或者,不推荐,如果数据确实遵循这样的模式,因此它是按顺序编号的,你可以尝试加载图像,从 1 开始,循环直到你得到 404。不那么优雅,但会工作。