If you want the "Open/Save" dialog, your php file needs to set the Content-Disposition HTTP header. Usually it should be set to something similar to "attachment; filename='myFile.pdf'" for example. I don't have sample code specifically for php, but I'm sure there are examples online or in the php docs.
If you want the pdf file to open in a browser window using the Acrobat plugin, your Flex app should call navigateToURL(). In either case, your php file shoud set the mime content type to application/pdf. - Doug --- In [email protected], "thekluito" <[EMAIL PROTECTED]> wrote: > > Hi all, I'm migrating a Flash appl to Flex 2. I use amf0 remote > objects to comunicate with PHP. The appl needs to output some pdf > files generated with pdflib. In flash I was using LoadVars to redirect > the output to another window in order to open the pdf file. That was > something like: > > loadVar.send("com/services/PDF_comerciales.php", "POST"); > > Now in Flex and using ServiceLocator I'm unable to make the pdf to > pop-up. I don't know if I can hold the data in the onResult method and > send it to another window. If this can be done I really don't know > how. The php outputs the data using "echo" and, as far as I > understand, because Flex tries to open in the same window; nothing > happens. > > Any suggestion would be appreciated. > > Lots of thanks in advanced. > > > Alberto Alcaraz > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

