
22 Sep
2009
22 Sep
'09
3:41 p.m.
Hi, I'm working with ActionScript 3. I want to make a link to an external HTML page through a button I created. The code getURL("path") does not work. When I try using the longer code that incorpoates a function, URLRequest is not recognized! What I'm wondering is if I have to include another class that includes the function URLRequest. Regards Obunga Ouya var url:String = "http://site"; var request:URLRequest = new URLRequest(url); try { navigateToURL(request, '_blank'); // second argument is target } catch (e:Error) { trace("Error occurred!"); }