简体   繁体   English

swf动态影像来源

[英]swf dynamic image source

I'm sorry if it's a newbie question, but I'm kinda newbie in flash 抱歉,这是一个新手问题,但我有点儿新手

I want to make a simple .swf file with an image. 我想用图像制作一个简单的.swf文件。
The source of the image is not fixed but dynamic. 图像的来源不是固定的,而是动态的。 It should be a user's profile pic on facebook ( https://graph.facebook.com/FACEBOOK_ID/picture ). 它应该是Facebook上的用户个人资料照片( https://graph.facebook.com/FACEBOOK_ID/picture )。 I can get the user facebook id's dynamically with a php file that generates XML. 我可以使用生成XML的php文件动态获取用户facebook id。

How do I make the .swf extract the image source from the xml? 如何使.swf从xml提取图像源?

Everything you need is in the basic AS3 classes. 您需要的所有内容都在基本的AS3类中。 Check out this tutorial on how to use XML in ActionScript. 查看有关如何在ActionScript中使用XML的本教程

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

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