A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: loading errors

  1. #1
    Junior Member
    Join Date
    Jul 2009

    loading errors

    I imagine this is a simple fix but I can't figure it out. I'm still very new at ActionScript so please forgive me. I have a contact form that works great as a .swf on its own, but when I import it into a larger movie I get loading errors as such:

    The class or interface 'URLVariables' could not be loaded.
    The class or interface 'URLRequest' could not be loaded.

    I get the same descriptions for and the same for "URLLoader," and "MouseEvent."

    Following is the code I am using:

    var variables:URLVariables = new URLVariables;

    var varSend:URLRequest = new URLRequest("form_parse.php");
    varSend.method = URLRequestMethod.POST;
    varSend.data = variables;

    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader.addEventListener(Event.COMPLETE, completeHandler);

    submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);

    function ValidateAndSend (event:MouseEvent):void {

    variables.userName = name_txt.text;
    variables.userEmail = email_txt.text;
    variables.userMsg = msg_txt.text;


    Thanks so much for any help!!

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Austin, TX
    I don't see how that would work on its own. You need to import all those classes it is complaining about.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center