Return to Snippet

Revision: 14287
at May 28, 2009 00:43 by StrawMan


Updated Code
private var _urlStr:String;
private var _webPageURL:URLRequest;
private var _targ:String;
private var _jscommand:String;
private var _popup:Boolean;		

/////////////////////////////
//Navigate to URL.
//////////////////////////////
private function goToURL (_urlStr, _targ, _popup):void {
     if(_popup) {
          _jscommand = "window.open('" + _urlStr + "','PopUpWindow','height=550,width=350,toolbar=no,scrollbars=no,resizable=yes');";
          _webPageURL = new URLRequest("javascript:" + _jscommand + " void(0);");
     } else {
          _webPageURL = new URLRequest(_urlStr);
     }
          navigateToURL (_webPageURL, _targ);
}
//////////////////////////////

Revision: 14286
at May 28, 2009 00:42 by StrawMan


Updated Code
private var _urlStr:String;
private var _webPageURL:URLRequest;
private var _targ:String;
private var _jscommand:String;
private var _popup:Boolean;		

/////////////////////////////
//Navigate to URL.
//////////////////////////////
private function goToURL (_urlStr, _targ, _popup):void {
     if(_popup) {
     _jscommand = "window.open('" + _urlStr + "','PopUpWindow','height=550,width=350,toolbar=no,scrollbars=no,resizable=yes');";
     _webPageURL = new URLRequest("javascript:" + _jscommand + " void(0);");
     } else {
	_webPageURL = new URLRequest(_urlStr);
     }
	navigateToURL (_webPageURL, _targ);
}
//////////////////////////////

Revision: 14285
at May 28, 2009 00:40 by StrawMan


Updated Code
private var _urlStr:String;
private var _webPageURL:URLRequest;
private var _targ:String;
private var _jscommand:String;
private var _popup:Boolean;		

/////////////////////////////
//Navigate to URL.
//////////////////////////////
private function goToURL (_urlStr, _targ, _popup):void {
			if(_popup) {
				_jscommand = "window.open('" + _urlStr + "','PopUpWindow','height=550,width=350,toolbar=no,scrollbars=no,resizable=yes');";
				_webPageURL = new URLRequest("javascript:" + _jscommand + " void(0);");
			} else {
				_webPageURL = new URLRequest(_urlStr);
			}
			navigateToURL (_webPageURL, _targ);
		}
//////////////////////////////

Revision: 14284
at May 27, 2009 23:49 by StrawMan


Initial Code
private var _urlStr:String;
		private var _webPageURL:URLRequest;
		private var _targ:String;
		private var _jscommand:String;
		private var _popup:Boolean;		
                /////////////////////////////
		//Navigate to URL.
		//////////////////////////////
		private function goToURL (_urlStr, _targ, _popup):void {
			if(_popup) {
				_jscommand = "window.open('" + _urlStr + "','PopUpWindow','height=550,width=350,toolbar=no,scrollbars=no,resizable=yes');";
				_webPageURL = new URLRequest("javascript:" + _jscommand + " void(0);");
			} else {
				_webPageURL = new URLRequest(_urlStr);
			}
			navigateToURL (_webPageURL, _targ);
		}
		//////////////////////////////

Initial URL

                                

Initial Description

                                

Initial Title
Navigate to URL. Invoke optional javascript popup

Initial Tags
url, javascript, navigation

Initial Language
ActionScript 3