开发者

Flash, LocalConnection and DOM

I have a Flash object on my site, which has this code:

this.ld = new LocalConnection();
this.ld.allowDomain("*");
ExternalInterface.call("alert", this.ld.domain);

It alerts my domain successfully开发者_开发知识库. However, what I want is to access the HTML DOM through this using LocalConnection and not ExternalInterface directly.

Any ideas?


ExternalInterface is your best bet in accessing HTML DOM. LocalConnection is for communication between different SWF files within the same page/browser.

The LocalConnection class lets you create a LocalConnection object that can invoke a method in another LocalConnection object, either within a single SWF file or between multiple SWF files.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜