Skip to main content
Known Participant
February 20, 2014
Answered

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

  • February 20, 2014
  • 1 reply
  • 1411 views

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

This topic has been closed for replies.
Correct answer kglad

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);

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 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);

Known Participant
February 23, 2014

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

kglad
Community Expert
Community Expert
February 23, 2014

you're welcome.