如何将多个资源加载到resourceModuleURLs
我使用Flex3.0(SDK 3.2)。
我有一个问题 Flex(resourceModuleURLs)。
我现在正在 HTML 包装器中使用 flashVars 属性加载资源,如下所示。
AC_FL_RunContent(
"src", "ResourceModuleApp",
"flashVars", "resourceModuleURLs=es_ES_ResourceModule.swf&localeChain=es_ES",
"width", "500",
"height", "500",
"align", "middle",
"id", "ResourceModuleApp",
"name", "ResourceModuleApp",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
※参考 http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f3c.html
虽然现在只有es_ES_ResourceModule.swf,但我想指定两个,es_ES_ResourceModule.swf和es_ES_ResourceModule2.swf。
请告诉我应该怎么写。
谢谢你!
我尝试“将其设置为运行时共享库”。 然而,这个案子并没有能够侦破。
为什么「设置为运行时共享库」是必要的呢?
I use Flex3.0(SDK 3.2).
I have a question Flex(resourceModuleURLs).
I am making loading of the resource using flashVars properties in the HTML wrapper as follows now.
AC_FL_RunContent(
"src", "ResourceModuleApp",
"flashVars", "resourceModuleURLs=es_ES_ResourceModule.swf&localeChain=es_ES",
"width", "500",
"height", "500",
"align", "middle",
"id", "ResourceModuleApp",
"name", "ResourceModuleApp",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
※Reference
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f3c.html
Although it is only es_ES_ResourceModule.swf now, I would like to specify two, es_ES_ResourceModule.swf and es_ES_ResourceModule2.swf.
Please let me know how it should write.
Thank you!
I try 「set it as a runtime shared library」.
However, this case was not able to be solved.
Why 「set it as a runtime shared library」Is it necessary to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您应该尝试使用 SWFObject 而不是原始的 Flex3 包装器(这已在Flex 4 使用 swfobject)。
从这里,您一次只能加载一个资源模块。我不明白为什么你需要不止一个,因为它们是特定于语言的。如果你想在其中加载其他东西,你需要将其设置为需要加载的运行时共享库。
First, you should try to use SWFObject and not the original Flex3 wrapper (this has been fixed in Flex 4 to use swfobject).
From here, you can only load one resource module at a time. I don't see why you would ever need to have more than one as they are language specific. If you want to load something else in there, you need to set it as a runtime shared library that needs to be loaded.