开发者

Embed Javascript Module within Flex application

I have a large module written in JS which uses Canvas to draw and animate trees. This module was written for a product which is now being migrated to flex.

Is there a way in flex to embed this JS module as is? Or would I have to rewrite the whole module in AS3 (shudder)? Further, if embedding is possible, 开发者_JAVA百科would user interactions (mouse clicks) etc. work seamlessly?

An example of the tree structure I am talking about can be found here - http://thejit.org


Don't know of anyway to embed JS into Flex, but it shouldn't be too difficult to convert to AS, just time consuming.

Another option, which really should just be an interim step to get the product out quicker is to open a browser within a frame in which you can just call the existing page in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜