[RESOLVED] URLRequest could not be loaded-VBForums
Results 1 to 2 of 2

Thread: [RESOLVED] URLRequest could not be loaded

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,346

    Resolved [RESOLVED] URLRequest could not be loaded

    Hi,

    I am creating a website for my flash class at school. However, I have run into a problem with some of the buttons. Some of them work and others do not.

    Here is the code I am using:

    Code:
    btn.addEventListener(MouseEvent.CLICK,callurl);
    
    function callurl(event:MouseEvent):void
    {
    	var sh2:URLRequest = new URLRequest("../html/sh2.html");
    	navigateToURL(sh2, "_self");
    }
    Here is the code from a button that is not working:

    Code:
    btn.addEventListener(MouseEvent.CLICK,callurl);
    
    function callurl(event:MouseEvent):void
    {
    	var sh0:URLRequest = new URLRequest("../html/sh0.html");
    	navigateToURL(sh0, "_self");
    }
    Is there any difference in the two above codes? I can not figure out what the following error refers to and how to solve it.

    Scene=scene 1, layer=actions, frame=1 Line 3

    The class or interface 'MouseEvent' could not be loaded.

    Scene=scene 1, layer=actions, frame=1 Line 5

    The class or interface 'URLRequest' could not be loaded.
    Please help! Thanks,


    Nightwalker
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  2. #2

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,346

    Re: URLRequest could not be loaded

    Never mind, for some strange reason some of the files that were not working were saved as Action Script 2 instead of Action Script 3. I converted them all to Action Script 3 and now they all work perfectly.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.