flex swfloader:是否可以将类和函数添加到加载的闪存文件中?

发布于 2024-08-15 15:14:45 字数 297 浏览 2 评论 0原文

我有一个 Flex 应用程序,可以加载 swf 文件并使用 SWFLoader 对象显示它们。 有没有办法提供不同的类和函数供swf应用程序使用?

例如。 如果我正在加载的 swf 文件具有以下功能:

function testme(): void {
  trace('test');
}

我可以以某种方式用其他东西覆盖该功能,以便如果 flash 文件实际上执行该功能,它将执行我的功能吗?

我想为我制作的特定闪存应用程序创建一个包装柔性应用程序,并且我不想过多修改原始闪存。

I have a flex application that loads swf files and displays them using the SWFLoader object.
is there a way to provide different classes and functions for the swf application to use?

for example.
if the swf file that i'm loading has the following function:

function testme(): void {
  trace('test');
}

can i somehow override that function with something else so if the flash file will actually execute the function it will execute mine ?

i want to create a wrapper flex application to specific flash applications that i made and i don't want to modify the original flash too much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无法回应 2024-08-22 15:14:45

我搜索了整个网络,但没有找到覆盖已加载 swf 文件功能的方法。经过一番考虑,似乎如果有一个选项可以做到这一点,请轻松破解闪存文件并更改它们以满足自己的需求。

可以从不同的 swf 文件加载类。然后不要尝试覆盖我想使用的功能。我将从适当的类加载它们,然后使用它们。

更多信息请访问:
http://stackoverflow.com/questions/1948104/actionscript-project-compiled-as-swf-how-can-i-load-it-with-flex-and-use-the-fun

i searched all over the net and i did not find a a way to override function for a loaded swf file. after some consideration it seems that if there was an option to do that, please could easily hack flash files and change them to suite their needs.

it is possible to load a class from a different swf file. then instead of trying to override the functions i wanna use. I'll just load them from the appropriate class and then use them.

more info at:
http://stackoverflow.com/questions/1948104/actionscript-project-compiled-as-swf-how-can-i-load-it-with-flex-and-use-the-fun

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文