|
-
Nov 29th, 2008, 03:14 AM
#1
[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.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|