显示来自bulkLoader的内容,在Flex应用程序中输入为MovieClip
我知道这有点微不足道,但我找不到合适的解决方案,所以请帮助我:)
我正在使用bulkLoader 将数十个SWF 加载到我的Flex 应用程序中,并且所有SWF 都是静态的(仅1 帧)。 “一切”工作正常,但是,我不确定如何处理来自bulkLoader的数据...我正在为所有SWF获取MovieClip类型,并且我不确定如何告诉Image或SWFLoader类使用某些这些 MovieClips 作为来源...
非常感谢您的帮助:)
米。
I know this is somehow trivial, but I couldn't find appropriate solution so please help me :)
I am using bulkLoader to load dozens of SWFs into my Flex app, and all of SWFs are static (1 frame only). 'Everything' works fine, however, I'm not sure how to handle data from bulkLoader... I am getting MovieClip types for all of my SWFs, and I am not sure how to tell to Image or SWFLoader classes to use some of those MovieClips as source...
Thanks for any help really :)
m.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Image 或 SWFLoader 类的 source 属性仅将文件的位置(URL 或本地路径)存储为字符串。如果设置此属性,该类将尝试加载该文件(使用可绑定的 blabla)
因此,您不能用影片剪辑覆盖源属性。
也许您可以使用以下命令将 MovieClip 投射到图像组件
var image:Image =bulkLoaderMovieClip as Image;
再见,
无尾礼服
The source property of the Image or SWFLoader class only stores the location of the file (URL or local path) as a string. If you set this property the class tries to load that file (with bindable blabla)
So, you can't overwrite the source property with a movie clip.
Maybe you could cast the MovieClip to an Image component using
var image:Image = bulkLoaderMovieClip as Image;
bye,
tux