Flex浏览器应用程序初始化
有人能指出一些关于在 Flex 中创建没有 UI 的应用程序的好教程吗?
实际上,看起来我真正需要知道的是如何在 flash 对象初始化时调用函数。我尝试了creationComplete属性,但它在浏览器中不起作用。
Would anyone be able to point out some good tutorials on creating applications in flex that are don't have UI's?
Actually, it looks like all I really need to know is how to call a function upon initialization of the flash object. I tried the creationComplete attribute, but it doesn't work in browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我不确定是什么让它最终起作用,但我最终从某个网站复制并粘贴了这段代码(抱歉,我不记得该网站):
最终成功了!不管怎样,谢谢。
Well, I'm not sure what made it work finally, but I ended up copying and pasting this code from some website (sorry, i don't remember the site):
And that ended up working! thanks anyway.
如果您打算将 JavaScript 连接到 Java 服务器,为什么不使用 XMLHTTPRequest? IT 是每个 AJAX 风格 RIA 应用程序的基础。您来回传递的数据格式可以是 JSON 或 XML。它不一定是二进制的。
其次,您不需要为此使用 Flex。 ActionScript 中的套接字 API 是Flash Player 的一部分。您可以在不依赖 Flex 框架的情况下使用它们。
If you're intent is to connect JavaScript to a Java Server, why not use XMLHTTPRequest? IT is the basis of every AJAX style RIA application. The data format you pass back and forth can either be JSON or XML. It doesn't have to be binary.
Second, you don't need Flex for this. The Sockets APIs in ActionScript and are part of the Flash Player. You can use them without any dependencies to the Flex Framework.