如何在 Flex 3 中同步加载本地资源?

发布于 2024-07-28 22:13:17 字数 148 浏览 2 评论 0原文

我想在 Flex 项目中的小 XML 文件中存储 FlexUnit 测试的一些测试数据,并轻松访问它们以进行 Flex 测试。 如何同步加载这些数据? HTTPService 是我同步加载它们的方式,但是向我的测试用例添加事件处理程序似乎有点矫枉过正。

I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill.

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

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

发布评论

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

评论(2

空名 2024-08-04 22:13:17

据我所知,不支持同步网络和同步网络。 文件 I/O——所有此类活动都发生在后台线程上,并通过事件处理程序暴露给主线程。

To the best of my knowledge, there is no support for synchronous network & file I/O -- all such activity happens on the background thread, and is exposed to the main thread with event handlers.

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