为什么使用运行时共享库​​时不显示 Flex 图表轴值/标签

发布于 2024-08-10 22:03:06 字数 592 浏览 6 评论 0原文

我使用数据可视化组件开发了一个 Flex 应用程序。我现在正在尝试优化应用程序,我尝试的方法之一是使用运行时共享库​​。

我已将 Flex Builder 配置为与运行时共享库​​一起部署,并添加了框架、数据可视化和 rpc 共享库的 .swz 文件。部署后,我的应用程序会加载,但是每个图表中的轴值都​​丢失了。显示轴本身,但不显示其标签单元。系列本身也被展示。

我已经使用 Flex Builder 中的 3.4 SDK 和 3.2 SDK 进行了尝试。我还尝试使用 mxmlc ANT 任务编译 flex 并得到相同的结果。

我确保首先加载框架 RSL,并且我还确保在测试之前全局闪存缓存已被清除。

我可以从访问日志中看到,第一次向应用程序发出请求时,.swz 文件正在加载,因此我确信我已正确清除 Flash 播放器全局缓存。

有谁知道为什么只有当我使用 RSL 部署时我的轴值才会丢失???切换回合并模式后,我的应用程序工作正常,只有当我使用 RSL 进行部署时才会出现问题。

我还尝试仅使用框架 RSL 而不是数据可视化或 rpc RSL(将它们保持在合并模式)进行编译,并且得到相同的结果,没有轴值。

任何帮助表示赞赏。

谢谢。

I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.

I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.

I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.

I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.

I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.

Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.

I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.

Any help is appreciated.

Thanks.

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

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

发布评论

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

评论(1

疯到世界奔溃 2024-08-17 22:03:06

我使用 3.4.0.9271 时遇到了同样的问题。经过一番尝试和错误后,我找到了一个 hacky 解决方案。我将为此打开一个错误报告。以下是一些注释和示例:

  1. 仅当您的图表使用嵌入字体时才会发生这种情况。据我所知,设备字体很好。
  2. 正如您所发现的,框架 rsl 的加载似乎是罪魁祸首。
  3. 在初始化阶段,嵌入的字体可供应用程序使用 - 追踪 Font.enumerateFonts 数组即可查看。我对我的嵌入字体可用感到有点惊讶。
  4. 显式注册字体似乎可以解决问题
  5. 我不知道这可能会对加载时间、字体冲突等产生什么影响

示例:在应用程序的初始化阶段注册嵌入的 Lucida 字体

[Embed(source="/assets/fonts/Lucida Grande.ttf",fontName="LucidaGrandeEmbedded", fontStyle="normal")
private var myNormalLucida:Class;

private function onInitialize():void {
  Font.registerFont(myNormalLucida)
}

I was having this same issue using 3.4.0.9271. After some trial and error, I figured out a hacky solution. I am going to open a bug report for this. Here are a few notes and an example:

  1. This only happens if your chart is using an embedded font. As far as I can tell, device fonts are fine.
  2. As you discovered, the loading of the framework rsl appears to be the guilty party.
  3. In the initialization phase, the embedded fonts are available to the application - trace out the Font.enumerateFonts array to see. I was a little surprised that my embedded fonts were available.
  4. Registering the fonts explicitly appears to do the trick
  5. I don't know what repercussions this may have on load time, font conflicts, etc

Example: register embedded Lucida font within the Application's initialize phase

[Embed(source="/assets/fonts/Lucida Grande.ttf",fontName="LucidaGrandeEmbedded", fontStyle="normal")
private var myNormalLucida:Class;

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