Problem with Flash 13

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Flash 13

FlexCoders mailing list
After updating to Flash player 13 I'm receiving the following error:

SecurityError: Error #3769: Security sandbox violation: Cannot send HTTP
headers when using navigateToUrl().

Any idea?

Thanks

---
Este email está limpo de vírus e malwares porque a proteção do avast! Antivírus está ativa.
http://www.avast.com

Reply | Threaded
Open this post in threaded view
|

Re: Problem with Flash 13

FlexCoders mailing list
Might check this out:

http://stackoverflow.com/questions/23703920/flash-sandbox-security-error-just-started-popping-up-in-the-last-day-dead-in-wa



On Fri, May 16, 2014 at 6:44 AM, Jairo França [hidden email] [flexcoders]
<[hidden email]> wrote:

>
>
> After updating to Flash player 13 I'm receiving the following error:
>
> SecurityError: Error #3769: Security sandbox violation: Cannot send HTTP
> headers when using navigateToUrl().
>
> Any idea?
>
> Thanks
>
> ---
> Este email está limpo de vírus e malwares porque a proteção do avast!
> Antivírus está ativa.
> http://www.avast.com
>
>  
>



--
John Hall
[hidden email]
http://www.cactusware.com
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Flash 13

FlexCoders mailing list
In reply to this post by FlexCoders mailing list
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Flash 13

FlexCoders mailing list
hola:
en  AS3 / Flex

var urlExcelExport:String =  "
http://midominio.ar/php/create.php?name=mypdf.pdf&method=inline";
var variables:URLVariables = new URLVariables();
var bytes:ByteArray = myPDF.savePDF(Method.LOCAL);
var u:URLRequest = new URLRequest(urlExcelExport);
u.contentType = "application/octet-stream";
u.method = URLRequestMethod.POST;
u.data = bytes;
  navigateToURL(u,"_blank");

en PHP el create.php
<?php
$method = $_GET['method']; $name = $_GET['name']; $RAW_POST_DATA =
file_get_contents("php://input"); if ( isset ( $RAW_POST_DATA )) {
$pdf = $RAW_POST_DATA;
//$pdf = $GLOBALS["HTTP_RAW_POST_DATA"];

if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') )
    {
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Windows 98') )
{
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Type: application/pdf');
header('Content-Length: '.strlen($pdf));
header('Content-disposition: attachment; filename="'.$name.'"');
 }
else {
header('ETag: etagforie7download'); //IE7 requires this header
header('Content-Type: application/pdf');
header('Content-Length: '.strlen($pdf));
header('Content-Disposition: inline; filename="'.$name.'"');
header("Content-Transfer-Encoding: binary");
}
} else  {
header('Content-Type: application/pdf');
header('Content-Length: '.strlen($pdf));
header('Content-disposition:'.$method.'; filename="'.$name.'"');
}

echo $pdf;
}  else echo 'An error occured.'.$name;


?>

funciona ok



2014-05-16 19:27 GMT-03:00 [hidden email] [flexcoders] <
[hidden email]>:

>
>
> Also this thread:
>
> https://forums.adobe.com/thread/1474415
>
>
>
>  
>



--
saludos
edgardo