LoadVars.contentType Property | Flash 6 |
the MIME type used for send( ) and sendAndLoad( ) operations | read/write |
The contentType property is the MIME content type that is sent to a server when LoadVars.send( ) or LoadVars.sendAndLoad( ) is invoked. For most practical purposes, its default value (application/x-www-form-urlencoded) need never be changed. It is writable to allow MIME type flexibility in unique circumstances.
The LoadVars.prototype.contentType property can be used to change the MIME content type for all LoadVars instances that do not set it themselves. For example:
LoadVars.prototype.contentType = "yourContentTypeGoesHere";
dataSender = new LoadVars(); trace(dataSender.contentType); // Displays: application/x-www-form-urlencoded
LoadVars.send( ), LoadVars.sendAndLoad( )