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');
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?.. :)
精彩评论