|
-
URLRequest: forward slashes in website URL greys out rest of line like a comment
After the double forward slashes in the website address, the rest of the line gets greyed or commented out in the Script Pane. How come?
[
function gotoSoccerSite(evtObject:MouseEvent):void {
var soccerURL:URLRequest = new URLRequest (“http://www.usyouthsoccer.org/”);
navigateToURL(soccerURL);
}
function gotoSoftballSite(evtObject:MouseEvent):void {
var softballURL:URLRequest = new URLRequest (“http://www.softball.org/”);
navigateToURL(softballURL);
}
function gotoAllianceSite(evtObject:MouseEvent):void {
var allianceURL:URLRequest = new URLRequest (“http://www.nays.org/”);
navigateToURL(allianceURL);
}
soccer_btn.addEventListener(MouseEvent.CLICK, gotoSoccerSite);
]
Tags for this Thread
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
|