开发者

setting text to flash dynamic text fields from asp

开发者 https://www.devze.com 2022-12-08 15:23 出处:网络
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 s

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

精彩评论

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