[thelist] Upload with Flex3

Mark Groen evolt at markgroen.com
Tue Aug 12 08:00:55 CDT 2008


On Tuesday 12 August 2008 03:48:47 Marcus Bristav wrote:
> ....... I was asking how to set the content type in a
> Flex/Flash movie using *action script*. I've made a lot of research
> and it seems it's impossible :(

Think so too, the content-type appears to be inherited at the outset and 
looking at this Adobe class linked below seems to confirm this:

http://livedocs.adobe.com/flex/2/langref/flash/net/URLRequest.html

So you are stuck with using the header function (flush previous objects first) 
of PHP and then perhaps on the next line including your action script.

flush();
header("Content-Type: application/x-shockwave-flash"); or similar.
include('myactionscript.js');
--
cheers,

	Mark
--



More information about the thelist mailing list