Pregunta

Quiero enviar un formulario en Flash y enviar al usuario a otra página en HTML/PHP y obtener la información de publicación en esa página. ¿Cómo puedo hacer esto?

¿Fue útil?

Solución

// create a URLRequest object with the target URL:
var url : String = 'newpage.html';
var urlRequest : URLRequest = new URLRequest(url);

// create a URLVariables object and add all the values you want to send with their identifiers:
var urlVariables : URLVariables = new URLVariables();
urlVariables['formfieldId'] = 'formfieldValue';

// add the urlVariables to the urlRequest
urlRequest.data = urlVariables;

// set the method to post (default is GET)
urlRequest.method = URLRequestMethod.POST;

// use navigateToURL to send the urlRequest, use '_self' to open in the same window
navigateToURL(urlRequest, '_self');

Otros consejos

Utilizar el Urlrequest clase

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top