Discussion list for Unity developers.
unity-dev at moock.org
Tue Jul 25 13:39:07 CDT 2006
hi javier,
i'm posting your message for you. your message bounced because you have
a .gif in your signature. in future please post without any attachments.
thanks!
colin
===============
Hi,
I have a problem with my conexion, and it seems that is only a problem that
happens with intranets, and not in the internet.
My config xml is like that
// unityUrl is a variable. I don't load the xml directly. I call a JSP
which reads the xml, put value in this variable, and then sends the xml back
to my flash app.
<?xml version="1.0"?>
<config>
<server>==unityUrl</server> <port>9100</port>
<logLevel>DEBUG</logLevel>
<policyPort>9102</policyPort>
</config>
As you see, there is a policyPort, and we load a policy file. I make the
connection like that
In my main class
***** Code in main class *********
private var conexion : UnityEnlace;
.
.
.
this.conexion = new UnityEnlace( this.tl, null, null,
"../../jsp/dame_xml.jsp?xml=config.xml", false);
***** end of code in main class *********
( where UnityEnlace is a class that extends UClient )
***** Code in UnityEnlace *********
class UnityEnlace extends UClient
{
public function UnityEnlace( target : MovieClip,
host : String,
port : Number,
configURL : String,
disableLog : Boolean )
{
super( target, host, port, configURL, disableLog );
logPanel.setPosition( -200, 20 );
logPanel.setSize( 400, 250 );
logPanel.minimize( );
mx.events.EventDispatcher.initialize( this );
}
}
***** End of Code in UnityEnlace *********
In the internet, it works like a charm, but it seems that in intranets there
are problems. I'm thinking that perhaps, intranets are so quickly that make
the connection before load the policy file, as long as i usually get a
onConnectFailure msg. I must try and reload my browser a couple of times,
before get a succesfull connection.
Any idea about what's happening ?
Thanks in advance, and sorry for my horrible english ( more terrible each
time )
<http://www.como.es/> CÓMO
Javier Tardaguila
Programador Multimedia
javier.tardaguila at como.es
Duque de Liria, 6
3ª Planta
28015 Madrid
T (34) 91 548 92 60
F (34) 91 541 10 17