Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I get a button in Flash point to a https page of PagSeguro.

Explorer ,
Feb 20, 2014 Feb 20, 2014

How do I get a button in Flash point to a https page of PagSeguro. Programming they provide is this:

<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->

<form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">

<!-- NÃO EDITE OS COMANDOS DAS LINHAS ABAIXO -->

<input type="hidden" name="itemCode" value="AC0DD53E5757C9F774629F9937513499" />

<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/120x53-comprar.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />

</form>

<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->

If I past this programation in start HTML, I see border white in my page.

I wrote a book and this schedule is to send to a secure site for sale

I development my site in Flash 4 and now CC6. Export in Html

www.escalasdecores.com.br

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 20, 2014 Feb 20, 2014

use the urlloader class:

var urlLoader:URLLoader=new URLLoader();

var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

var urlVariables:URLVariables=new URLVariables();

urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";

urlRequest.data=urlVariables;

urlRequest.method=URLRequestMethod.POST

urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

urlLoader.load(urlRequest);

Translate
Community Expert ,
Feb 20, 2014 Feb 20, 2014

use the urlloader class:

var urlLoader:URLLoader=new URLLoader();

var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

var urlVariables:URLVariables=new URLVariables();

urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";

urlRequest.data=urlVariables;

urlRequest.method=URLRequestMethod.POST

urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

urlLoader.load(urlRequest);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2014 Feb 23, 2014

Thank you, Excuse-me my English is poor. I'm not a programmer, I could never do these lines

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 23, 2014 Feb 23, 2014

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2014 Feb 26, 2014

Excuse me for my ignorance.

I put the schedule as show below and generates an error when I export

Scene 1, Layer 'Actions', Frame 350, Line 119, column 11 in 1061: Calling a possibly undefined method send through a reference with static type flash.net: URLLoader.

Which is in line urlLoader.send (urlRequest);

I used Snippets

This programation:

/* Evento de clique de mouse

Clicar na instância do símbolo especificada executa uma função na qual você pode acrescentar seu próprio código personalizado.

Instruções:

1. Acrescente seu código personalizado em uma nova linha depois da linha que diz "//Iniciar seu código personalizado" abaixo.

O código será executado quando se clica na instância do símbolo.

*/

button_7.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

          // Iniciar seu código personalizado

          var urlLoader:URLLoader=new URLLoader();

var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

var urlVariables:URLVariables=new URLVariables();

urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";

urlRequest.data=urlVariables;

urlRequest.method=URLRequestMethod.POST

urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

urlLoader.send(urlRequest);

          // Este exemplo exibe as palavras "Mouse clicado" no painel Saída.

          trace("Mouse clicado")

          // Encerrar seu código personalizado

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2014 Feb 26, 2014

that's my error and should be 'load', not 'send':

button_7.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

           var urlLoader:URLLoader=new URLLoader();

var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

var urlVariables:URLVariables=new URLVariables();

urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";

urlRequest.data=urlVariables;

urlRequest.method=URLRequestMethod.POST

urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;

function fl_MouseClickHandler(event:MouseEvent):void

{

          // Iniciar seu código personalizado

urlLoader.load(urlRequest);

          // Este exemplo exibe as palavras "Mouse clicado" no painel Saída.

          trace("Mouse clicado")

          // Encerrar seu código personalizado

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 26, 2014 Feb 26, 2014

Excuse-me don't play, see

http://www.crevin.com.br/indexOK.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 26, 2014 Feb 26, 2014
LATEST

you're trying a cross domain load with no security policy:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.crevin.com.br/indexOK.swf cannot load data from https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add.

    at indexOK_fla::MainTimeline/frame350()

"NetworkError: 404 Not Found - https://pagseguro.uol.com.br/crossdomain.xml"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines