简体   繁体   English

SWF文件中完全包含FLV播放器…除FLV外,没有其他外部文件

[英]FLV player totally contained in swf… no external files other than the FLV

I have a banner ad which contains an flv player. 我有一个横幅广告,其中包含flv播放器。 Due to size restrictions for banners at the site, I've found a player which I think will do the trick (chrometaphore). 由于网站上横幅广告的大小限制,我找到了一个可以发挥作用的播放器(chrometaphore)。 However, the site in question does not allow anything more than the actual swf for the ad, so I cannot include the com folder for the player and need to include all AS3 code in the swf file. 但是,所讨论的网站所允许的内容超出了广告的实际swf,因此我无法为播放器添加com文件夹,而需要在swf文件中包含所有AS3代码。 I'm not a scripting genius, and wonder what it would take to include all the classes in the AS3 file contained in the swf. 我不是脚本天才,不知道将所有类包含在swf所包含的AS3文件中会如何。 Is it possible? 可能吗? Does anyone know where I can find a VERY lightweight player whose entire code is contained in the fla? 有谁知道我在哪里可以找到fla包含所有代码的非常轻便的播放器?

[edit]: It just occurred to me that if the flv is on a remote server, could the com folder and files also be remote? [edit]:我只是想到,如果flv位于远程服务器上,那么com文件夹和文件也可以是远程的吗? Currently, the path for the com files looks like this: 当前,com文件的路径如下所示:

import com.chrometaphore.display.video.colibri.Colibri; import flash.media.SoundTransform;

What would that script look like if it was pointed to a remote com folder? 如果该脚本指向远程com文件夹,它将是什么样?

Thanks! 谢谢!

Import statements do not load external files. 导入语句不会加载外部文件。 They tell the compiler where to look for the source code when you publish the swf. 当您发布swf时,它们告诉编译器在哪里寻找源代码。 You should be good to go with one swf, and no com folder! 使用一个瑞士法郎,没有com文件夹,您应该会很好!

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

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