简体   繁体   English

部署Flex应用程序SWF需要哪些文件?

[英]what files are required to deploy a Flex application swf?

I haven't written anything in Flex in a couple years and much has changed since. 几年来我没有用Flex编写任何东西,此后发生了很多变化。 I used Flash Builder 4.6 to build my app now I want to deploy it to a ASP.NET application. 我现在使用Flash Builder 4.6构建应用程序,现在我想将其部署到ASP.NET应用程序。 What files other than the swf do I need to deploy to ensure everything works for my users? 我需要部署除swf之外的其他文件,以确保所有内容都对我的用户有效吗? I see in the bin-debug folder of the project it spits out a bunch of swfs (framework, rpx, playerProductInstall, spark, etc) and the swfobject.js. 我在项目的bin-debug文件夹中看到它吐出了一堆swfs(框架,rpx,playerProductInstall,spark等)和swfobject.js。 Do I need all these files deployed to the same location as my swf? 我是否需要将所有这些文件部署到与swf相同的位置?

These extra files are what's known as a run-time shared library (RSL for short). 这些额外的文件称为运行时共享库​​(简称RSL)。 In your project properties in eclipse/Flashbuilder/Flexbuilder (right click go to properties) you can set in the flex build path to either merge the framework library into the code or to use RSLs. 在eclipse / Flashbuilder / Flexbuilder的项目属性中(右键单击转到属性),可以在flex构建路径中进行设置,以将框架库合并到代码中或使用RSL。 The advantage with RSL is that the framework code is stored in there and is cached, so if the user has already gone to a site that has the same versioned RSLs or if they've gone to your page before and your application code changes but the framework doesn't then they just have to download your updated swf without the framework embedded. RSL的优点是框架代码存储在其中并被缓存,因此,如果用户已经去过具有相同版本的RSL的站点,或者如果他们之前已经去过您的页面并且您的应用程序代码已更改,但是框架则不需要在没有嵌入框架的情况下下载更新的swf。 If you change the option the project properties to SDK merged into code then it'll just compile the classes needed from the framework into your swf. 如果您更改选项,则将SDK的项目属性合并到代码中,那么它将仅将框架所需的类编译到swf中。 In the latter case it's just like how you're used to probably where you end up with single swf. 在后一种情况下,就像您习惯使用单个swf结束的地方一样。 There's a couple of extra js files it'll create too, history.js helps it out with the BrowserManager for dealing with deep linking and using the browser back button ACOETags.js embeds the swf into the DOM with some browser specific settings, if javascript is disabled it'll fall back on the HTML embed method. 它还会创建几个额外的js文件,history.js可以通过BrowserManager帮助其处理深度链接,并使用浏览器后退按钮ACOETags.js通过某些浏览器特定的设置将swf嵌入DOM(如果使用javascript)禁用后,它将重新使用HTML embed方法。 Basically in either case you are going to want to deploy everything in the bin/bin-debug (whatever your output is) to your web-server, but you have options to tweak what that output will be through the IDE. 基本上,无论哪种情况,您都希望将bin / bin-debug中的所有内容(无论输出结果如何)都部署到Web服务器,但是您可以选择通过IDE调整输出结果。

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

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