ndt-dev - [ndt-dev] [ndt] r1118 committed - Have the flash client default to testing to the server it got the clie...
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r1118 committed - Have the flash client default to testing to the server it got the clie...
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r1118 committed - Have the flash client default to testing to the server it got the clie...
- Date: Mon, 30 Jun 2014 20:05:19 +0000
Revision: 1118
Author:
Date: Mon Jun 30 20:05:07 2014 UTC
Log: Have the flash client default to testing to the server it got the client from
http://code.google.com/p/ndt/source/detail?r=1118
Modified:
/trunk/flash-client/src/Main.as
=======================================
--- /trunk/flash-client/src/Main.as Wed May 28 11:17:18 2014 UTC
+++ /trunk/flash-client/src/Main.as Mon Jun 30 20:05:07 2014 UTC
@@ -16,6 +16,7 @@
import flash.display.Sprite;
import flash.events.Event;
import mx.resources.ResourceBundle;
+ import mx.utils.URLUtil;
/**
* @author Anant Subramanian
*/
@@ -44,6 +45,10 @@
*/
private function init(e:Event = null):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
+ var selfUrl:String = URLUtil.getServerName(this.loaderInfo.url);
+ if (selfUrl) {
+ server_hostname = selfUrl;
+ }
// Set the properties of the SWF from HTML tags.
NDTUtils.initializeFromHTML(this.root.loaderInfo.parameters);
- [ndt-dev] [ndt] r1118 committed - Have the flash client default to testing to the server it got the clie..., ndt, 06/30/2014
Archive powered by MHonArc 2.6.16.