-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Here is my current setup for some background. My Host machine is
Windows 2000 Professional that is running Eclipse IDE with the FB3
Beta 2 installed as a plugin. This Host machine does all of my
development coding. I have VMWare Workstation 6 installed which
handles 1 OpenSuse 10.2 Server for the MySQL Database and SVN
Repositories; 1 Windows 2000 Professional "Server" that has CF7 in
JRun Mode installed with an Apache 2.2 Frontend. All Directories
between the Host and the "Server" are shareable so I can drag and drop
files between to test code before being placed on my "Testing" Server.

Now in my MXML file I have

<mx:Application applicationComplete="initApp();" ........>

import mx.utils.URLUtil;
[Bindable] private var ServerName:String;

private function initApp():void {
   if
(URLUtil.getServerName(Application.application.loaderInfo.url).length
== 0) {
    ServerName = "triton.k12homeworkhotline.ws";
    SiteID = 2;
    } else if
(URLUtil.getServerName(Application.application.loaderInfo.iurl) == "D") {
    ServerName = "triton.k12homeworkhotline.ws";
    SiteID = 2;
    } else {
    ServerName = Application.application.parameters.ServerName;
    SiteID = Application.application.parameters.SiteID;
    }

<mx:RemoteObject id="K12WebService" destination="Coldfusion"
source="properties.cfc.K12FlexWebService" showBusyCursor="true"
fault="K12WebService_Fault(event)"
endpoint="http://{ServerName}/flex2gateway/";>


The first else if within the initApp() function checks for "D" as that
is the Drive where I store all of my code files on within the Host
computer, This allows me to test my Flex applications from within the
Flex Builder as I am learning flex which saves me many hours by not
coping the files to and from the VMWare CF7 Server. Then I used the
generated html file which gets generated when a file is compiled, made
some modifications to it so that it will pull up the swf file within
my own web directory structure.


I know their might be other ways to handle this, however I find a
solution that works every time as I tend to be the one to find errors
within the published books since a majority of the time the code
printed does not work. I would be a good Technical Editor.

If I can figure out how to view source within an Flex Application, I
can enable that and then you can see the entire source for this
application at http://triton.k12homeworkhotline.ws/


> @Mike, Thanks for the suggestion.  I gave it a quick try but to avail.
>
> @Graham, Your solution seems to be the direction I'm headed.  Could you
elaborate on some of the things you do in your MXML to detect the
connection between the different servers?
>
> Thanks again for sharing the knowledge!
> -Scott
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQEVAwUBR0LoD3njLHMPlkANAQJSWAf+NApYIMTaWiTKa9NezQiZ4OF87momjPZw
5DZR6KwWz6SmcTTx7QWG4/or4iEdML/ZCJR5iGuGQg67EHfnm9z3QxLH413h3V0L
K+x759u8roTNW4jPXOhUSlX6g+H0nPkY7Isl+qMT2249GZR4srDtZiv0FTwSlDIp
h7Lc5h1oom5ry9jlnDjaVUbuJjrQkL+QAVegCSzsFALHPqIiF6Ii8V2Xv9sgBiwc
DfZa14qo0tFD/LGjpxf2AaMt2GuYn2CdruuwuIEjiDIsHNoMlxbM/oy4c/NbpOTf
cvHravaEW3PcqsuQVZaLs2QyY4TzVyISUwPybuDRWIl7pcJkIpUWyg==
=zaAe
-----END PGP SIGNATURE-----


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4815
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to