Flash AS3:URLLoader数据到视频播放
没有深入了解为什么(它是为了学校)的细节,我尝试使用我创建的自定义预加载器来加载 Flash 视频。
我已经创建了动画和加载器函数,但是在 Event.COMPLETE
事件中,如何将加载到 myUrlLoader
中的数据传递给 FLVPlayback
组件?
或者我应该使用 FLVPlayback
组件吗?一切直到:
myUrlLoader.addEventListener(Event.COMPLETE,
function(e:Event){
//what do I do?
});
......似乎都很好。有什么建议吗?
PS:一定要尽快提交。如果可以的话,我会设置赏金。
Without getting into the details of why (its for school) I'm trying to use a custom preloader I've created to load a Flash video.
I've created the animations, and the loader functions, but on the Event.COMPLETE
event, how do I pass the data I've loaded into myUrlLoader
to an FLVPlayback
component?
Or should I even be using the FLVPlayback
component? Everything up till:
myUrlLoader.addEventListener(Event.COMPLETE,
function(e:Event){
//what do I do?
});
...seems to be fine. Any suggestions?
PS: Gotta submit this soon. Would set bounty if I could.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
理想情况下,我会使用 NetStream、NetConnection 和 Video 类编写一个视频播放器,但您可以尝试这样做:
我会将预加载器放在 FLV 播放组件之上,并使用您设置的函数来添加并酌情将其从舞台上移走。
Ideally, I would write a video player using the NetStream, NetConnection, and Video classes, but you could try to do it this way:
I would put your preloader on top of the FLV playback component, and use the functions you set up to add and remove it from the stage as appropriate.