Skip to main content
February 18, 2010
Question

AS3 DW frameset btn's function out in need of URLRquest mods

  • February 18, 2010
  • 1 reply
  • 740 views

Hi

I'm new to DW Framesets and AS3...

URLRequest btns function out launching index.html in new browser.

mainFrame2 btn returns server error in application "DEFAULT WEB SITE"

Error summaryHTTP  Error 404.0 - Not Found

Same error with mainFrame3 btn and mainFrame4 btn.

In summary all four btns are not functioning out correctly.

Happy to stay up for the next four hours to solve it.

Sabby76

btn1.addEventListener(MouseEvent.CLICK, btn1Click);

function btn1Click(evt:MouseEvent):void {
   var url:String = "http://poole-pc/WebSites/FrameSets/URLRequest/index.html";
   var req:URLRequest = new URLRequest(url);
   navigateToURL(req);
}
btn2.addEventListener(MouseEvent.CLICK,btn2Click);

   function btn2Click(evt:MouseEvent):void {
   var url:String= "http://poole-pc/WebSites/FrameSets/URLRequest,mainFrame2.html";
   var req:URLRequest = new URLRequest(url);
   navigateToURL(req);
   }
btn3.addEventListener(MouseEvent.CLICK,btn2Click);

   function btn3Click(evt:MouseEvent):void {
   var url:String= "http://poole-pc/WebSites/FrameSets/URLRequest,mainFrame3.html";
   var req:URLRequest = new URLRequest(url);
   navigateToURL(req);
   }
btn4.addEventListener(MouseEvent.CLICK,btn2Click);

   function btn4Click(evt:MouseEvent):void {
   var url:String= "http://poole-pc/FrameSets/URLRequest,mainFrame4.html";
   var req:URLRequest = new URLRequest(url);
   navigateToURL(req);
   }
Thank you

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
February 18, 2010

I don't believe commas are permitted in web addresses.  Your last three url's appear to have typos... commas where slashes should be (as compared to the first url).

February 18, 2010

Thanks Ned

I noticed also the eventlistener btns were numbered incorrectly, example: btn3.addEventListener(MouseEvent.CLICK, btn1Click);

I've changed them around to correspond and will edit the commas next.

I still think the URLReturn needs some extra extentioning derived from my limited knowledge of AS2, example:

on(release){
getURL("mainFrame1.html", "mainFrame");
}

sabby76