flash as3 - 通过actionscript 3从DOM获取数据
我一直在尝试使用各种 canvas / svg 库(例如 raphaeljs)基于通过 AJAX 传递到 DOM 的数据来创建动画/可视化,但它们在动画方面似乎从未像我希望的那样强大。我也尝试过诸如processing.js之类的东西,但是跨DOM的来回通信不是很好——处理很容易接触到javascript,但反之则不然。所以我想知道是否有某种技术可以将这两个方面(动画和与 DOM 的通信)结合起来 - 或者是否有一种好方法让 Flash 与不断变化的 DOM 来回交互,最好是通过 javascript / jquery。
I've been trying to use various canvas / svg libraries such as raphaeljs to create animations / visualizations based on data passed into the DOM via AJAX, but they never seem as powerful as I want them to be in terms of animation. I've also tried things such as processing.js, but the communication back and forth across the DOM isn't very good - it's easy for processing to reach out to javascript, but not vice versa. So I was wondering if there was some technology that might combine these two facets (animation and communication with the DOM) - or whether there was a good way for Flash to interact back and forth with a constantly changing DOM, preferrably via javascript / jquery.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你使用 JS 函数来操作 DOM,对吗?如果是这样,您可以通过 连接 AS3 和 JS外部接口API。
I suppose you use JS functions to manipulate the DOM, right? If so, you can connect AS3 and JS through the ExternalInterface API.