Hi Raúl,

Which URLRequest and URLVariables are you using (what did you import?).

Is this a compile-time error or runtime error?

Thanks,
-Alex

On 1/29/19, 9:19 AM, "Raúl Núñez" <[email protected]> wrote:

    Hi:
    
    I am using URLRequest to send information to a web. But I do not know how
    to fill the property: data.
    
    This is my code:
    
    var urlRequest: URLRequest = new URLRequest("www.[my-domain].com");
    var urlLoader: URLLoader = new  URLLoader();
    var urlVariables: URLVariables = new URLVariables("parameter=" + key);
    urlRequest.method = HTTPConstants.POST;
    urlRequest.data = urlVariables;
    urlLoader.load(urlRequest);
    
    I can't set data with urlVariables.
    
    Error: Implicit coercion of a value of type URLVariables to an unrelated
    type Object.
    
    Best regards!!
    

Reply via email to