开发者

setting text to flash dynamic text fields from asp

how can I set the text of dynamic text field 开发者_如何学Pythonfrom the asp page that loads .SWF file ?


I'm not familiar with ASP, can you create/call JavaScript from ASP? If you can, the answer is somewhere along the following lines:

Create a function in your Flash movie that sets the text property of the dynamic text instance. Declare it as external interface, with ExternalInterface.addCallback. Check it out here.

Then, call your function from JavaScript, like so:

document.getElementById('myMovie').myFunction('argument');

More on this, here

Or, if you only need to modify the text once, when the page loads, you could simply use FlashVars and generate the appropriate embed code from your server side script. ASP is server side, right?.. :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜