ActionScript for Flash MX. The Definitive Guide
Authors: Moock C
Published year: 2002
Pages: 764-766/780
Buy this book on amazon.com >>
ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Part III:  Appendixes

Appendix F. Support for GET and POST

Table F-1 lists the twelve functions and methods that can transfer content to an HTTP server in an HTTP request using either the GET or POST method. Due to limitations and bugs discussed in this appendix, for best results, you should use the HTTP GET method whenever possible, particularly when developing Flash 5-format movies. For Macromedia's information on POST-specific problems in the Flash Player, see:

http://www.macromedia.com/support/flash/ts/documents/flash_get_post.htm
http://www.macromedia.com/support/flash/ts/documents/flashplayer_r40.htm
ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Appendix F.  Support for GET and POST

F.1 Browser-Based Support for GET and POST

On both Windows and Macintosh, the browser plugin and ActiveX control versions of Flash Player 6 fully support the HTTP GET and POST methods . However, despite this support, minor bugs in certain browser/Player combinations cause intermittent failure for functions using POST (see preceding URLs). Furthermore, prior to version 6.0.40.0, the Flash Player's POST method caused problems for Java servlets, as discussed at:

http://www.macromedia.com/support/flash/ts/documents/java_get.htm
ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Appendix F.  Support for GET and POST

F.2 Standalone Player Support for GET and POST

Table F-1 lists, by function, the official support for HTTP GET and POST on Windows and Macintosh in Standalone Player 5 and Standalone Player 6. Note the following general rules:

  • Standalone Player 5 on Windows and Macintosh does not support POST.

  • Standalone Player 6 on Windows does not support POST for functions that receive results in a web browser rather than the Player.

  • Hence, even if POST works on your system, you should use GET wherever possible for the best results on the most platforms.

Table F-1. Support for GET and POST as HTTP methods in Flash Standalone Player 5 and Standalone Player 6 for Windows and Macintosh

Function

Win GET F5

Mac GET F5

Win POST F5

Mac POST F5

Win GET F6

Mac GET F6

Win POST F6

Mac POST F6

getURL( )

[1]

[2]

loadMovie( )

[1]

loadMovieNum( )

[1]

loadVariables( )

[3]

[1] [3]

loadVariablesNum( )

[3]

[1] [3]

LoadVars.send( )

N/A

N/A

N/A

N/A

[2]

LoadVars.sendAndLoad( )

N/A

N/A

N/A

N/A

MovieClip.getURL( )

[1]

MovieClip.loadMovie( )

[1]

MovieClip.loadVariables( )

[1]

XML.send( )

[1]

[2]

XML.sendAndLoad( )

[1]

[1] POST requests are converted to GET requests but no variables are sent (i.e., the query string is missing). In my tests, POST works in Standalone Player 5 on Macintosh, but the consensus from Macromedia and the developer community is that POST does not work reliably in that Player.

[2] POST requests are converted to GET requests, and data is transferred via the GET request query string.

[3] The entire loadVariables( ) method works neither in the Standalone Player nor with executable Projectors (i.e., movies bundled with the Standalone Player in a single executable file).

ActionScript for Flash MX. The Definitive Guide
Authors: Moock C
Published year: 2002
Pages: 764-766/780
Buy this book on amazon.com >>

Similar books on Amazon