Flex 中的非缓存 RSL?

发布于 2024-09-05 21:37:15 字数 591 浏览 4 评论 0原文

我有一个面向多个客户的项目,唯一的区别在于数据库,除了主页的文本之外,其他所有内容看起来都相同。这是从外部 swf 文件加载的。我创建了一个库,将其编译为 SWC,导入它并将其用作 RSL。问题是,如果我打开页面,然后更新 rsl(因为需要更改文本),那么它已经被浏览器缓存了(不是 flashplayer 的缓存,但我们不应该讨论这个!)并且更新后的 swf 将不会被加载。如果我用它作为外部,页面甚至不会启动(浏览器说它已加载,但它是空白的,甚至连flex的加载进度条都没有出现)

<local:MainPage includeIn="default" currentState="{MainPageState}" id="Page"
width="100%" height="100%" />

这是主页上的代码,如果我评论这个即使使用“外部”链接类型,也比整个内容加载要好。

如果有帮助,在设计视图中,我会看到该组件,但会收到有关库的警告:

设计模式无法加载 MainPage.swc。它可能与此 SDK 不兼容或无效。 (DesignAssetLoader.CompleteTimeout)

I have a project that is for several customers, the only difference is in the DB, everything else looks the same, except for the main page's text. That is loaded from an external swf file. I created a library, compiled it as an swc, imported it and using it as an RSL. The problem is that if once I've opened the page, and afterwards update the rsl (because changes in the text are needed), than it's already cached by the browser (not the flashplayer's cache but we shouldn't discuss this please!) and the updated swf won't be loaded. If I use it as an external, the page won't even start up (the browser says it's loaded, but it's blank, not even the loading progess bar of flex appear)

<local:MainPage includeIn="default" currentState="{MainPageState}" id="Page"
width="100%" height="100%" />

this is the code on the main page, if I comment this out, than the whole thing loads, even with the use of the "external" link-type.

If it helps, in the design view, I see the component, but I get a warning for the library:

Design mode could not load MainPage.swc. It may be incompatible with this SDK, or invalid. (DesignAssetLoader.CompleteTimeout)

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

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

发布评论

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

评论(1

傾旎 2024-09-12 21:37:15

我发现 rsl-s 没有缓存(或者至少在更新时重新加载,这是一件好事!)。我刚刚习惯了Visual Studio,而且因为之前flashbuilder的自动构建遇到了问题,所以我总是使用“clean”来重建。不幸的是我之前没有保存 mxml 并且它可能构建了最后一个文件,这就是为什么 swc 是新的但没有看到更改......

I have found out that the rsl-s are not cached (or at least it reloads on updating, which is a good thing!). I'm just used to visual studio, and because I had problems before with the automatic build of flashbuilder, I always use "clean" to rebuild. Unfortunately I didn't save the mxml before and it probably built the last file, that's why the swc was new but didn't see the change...

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