简体   繁体   中英

How do I grab an http response from a flash object?

I know that certain flash objects send HTTP requests to their intended domain. How do I grab the flash object's server's response and store it in a variable in Javascript? I have no code because I'm completely unsure of what to do.

You cannot directly capture HTTP traffic between a Flash object and its host from JavaScript, for several reasons, one of them being security. You can, however, make calls between the Flash object and the SWF container (in this case, the browser running JavaScript) through ExternalInterface . This requires coordination between the two sides but it works well, as long as browser version and configuration together allow it to execute.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM