[Flashcoders] Remoting Connection fault?

2006-11-06 Thread Diversity
Why can I not receive a connection fault? According to the docs I should 
be able to receive a fault


import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

// incorrect path on purpose to cause a fault
serv = new Service(http://localhost/amfphp/gateway.phpd;, 
null,IstRemote,null,new RelayResponder(this, success_Result, 
result_Fault));


var pc:PendingCall = serv.getData(Id);
pc.responder = new RelayResponder(this, Data_Result, Data_Fault);


function success_Result(){
   trace(connected);
}
  
function result_Fault(fault){

   trace(fault.fault.faultcode);
   trace(fault.fault.faultstring);
   trace(fault.fault.description);
   trace(fault.fault.detail);
   trace(fault.fault.type);
   trace(---);
   }

I dont get a success or fault on connect and do not get a fault on the 
pc either. When the gateway path is correct everything works but as we 
all know things may not work all the time.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Remoting Connection fault?

2006-11-06 Thread Diversity

Would I get a fault if my connection didn't connect and a call was made?

var pc:PendingCall = serv.getData(Id);
pc.responder = new RelayResponder(this, Data_Result, Data_Fault);



Robert Chyko wrote:

You don't get a fault if the connection fails.  You would only get a
fault if you make a call and the call itself fails for some reason.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Diversity
Sent: Monday, November 06, 2006 12:05 PM
To: Flash Coders
Subject: [Flashcoders] Remoting Connection fault?


Why can I not receive a connection fault? According to the docs I should

be able to receive a fault

import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;

NetDebug.initialize();

// incorrect path on purpose to cause a fault
serv = new Service(http://localhost/amfphp/gateway.phpd;, 
null,IstRemote,null,new RelayResponder(this, success_Result, 
result_Fault));


var pc:PendingCall = serv.getData(Id);
pc.responder = new RelayResponder(this, Data_Result, Data_Fault);


function success_Result(){
trace(connected);
}
   
function result_Fault(fault){

trace(fault.fault.faultcode);
trace(fault.fault.faultstring);
trace(fault.fault.description);
trace(fault.fault.detail);
trace(fault.fault.type);
 
trace(---);

}

I dont get a success or fault on connect and do not get a fault on the 
pc either. When the gateway path is correct everything works but as we 
all know things may not work all the time.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] swf and domains, what domain made the call?

2006-10-29 Thread Diversity

Not quite what I am looking for. Here is my situation.

I have a swf on my server. This swf will be allowed to be posted on 
other sites such as myspace (if the user that created the account has a 
certain account type). Since it can be posted on myspace the actual swf 
will be in an embed tag on myspace with an src pointing to my server. 
What I need to do is once this swf gets called is see what the referring 
domain is and see if the creator of that content has an account that 
allows embedding on external sites.


if(domain == myserver || domain == www.myserver){
   // serve up content this is on our server no account check needed
}
else{
   // WAIT!!! check if this content creator can embed outside of our domain
}


I hope I got my point across and I hope what i am trying to accomplish 
is actually doable. I tried localConnections domain function but that 
gave me the domain of the swf which was on my server not the domain of 
the html file that called/embedded the swf.



Jim Berkey wrote:

Would this do what you are looking for?
http://www.mochibot.com


jimbo

*** REPLY SEPARATOR  ***

On 10/28/2006 at 6:24 PM Diversity wrote:

  

Anyone with any suggestions?


Diversity wrote:

With flash and its cross domain security is there anyway for me to 
read what the calling domain is of the swf?


Example

swf located on my server, being called from domain.com. How can I see 
that its domain.com calling the swf and not myserver.com making the 
call? _url gives me the swf location not the calling domain.


Thanks,
Diversity
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] swf and domains, what domain made the call?

2006-10-28 Thread Diversity

Anyone with any suggestions?


Diversity wrote:
With flash and its cross domain security is there anyway for me to 
read what the calling domain is of the swf?


Example

swf located on my server, being called from domain.com. How can I see 
that its domain.com calling the swf and not myserver.com making the 
call? _url gives me the swf location not the calling domain.


Thanks,
Diversity
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] swf and domains, what domain made the call?

2006-10-27 Thread Diversity
With flash and its cross domain security is there anyway for me to read 
what the calling domain is of the swf?


Example

swf located on my server, being called from domain.com. How can I see 
that its domain.com calling the swf and not myserver.com making the 
call? _url gives me the swf location not the calling domain.


Thanks,
Diversity
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] swf and domains, what domain made the call?

2006-10-27 Thread Diversity
With flash and its cross domain security is there anyway for me to read 
what the calling domain is of the swf?


Example

swf located on my server, being called from domain.com. How can I see 
that its domain.com calling the swf and not myserver.com making the 
call? _url gives me the swf location not the calling domain.


Thanks,
Diversity
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com