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

2006-10-30 Thread AJ Canepa
A third option, which may not work for MySpace, but is worth  
mentioning for situations like this, is to embed a loader.swf on the  
3rd party server.  In the loader.swf, you test _url and if it meets  
your requirements you can then load your primary SWF file from your  
server.


AJ Canepa
Runtime Logic
www.runtimelogic.com


On Oct 29, 2006, at 2:22 AM, Mick G wrote:

Perhaps when you instruct with what EMBED code to use on myspace,  
do it like

this...

EMBED src=mydomain.com/myfile.swf?id=123
That ID could be a unique ID to a certain account. In flash you can do
whatever database calls you need and check if that userID has the  
access you

need. If the swf is called without the ID, then don't allow it.

OR...

I'm not sure if this will work, but you could use...
EMBED src=mydomain.com/myfile.php - your php could check who the  
referrer
is, and do whatever checking you need, then load your SWF and spit  
out a

SWF-file type.

- Mick


On 10/28/06, Diversity [EMAIL PROTECTED] wrote:


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


___
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-29 Thread Mick G

Perhaps when you instruct with what EMBED code to use on myspace, do it like
this...

EMBED src=mydomain.com/myfile.swf?id=123
That ID could be a unique ID to a certain account. In flash you can do
whatever database calls you need and check if that userID has the access you
need. If the swf is called without the ID, then don't allow it.

OR...

I'm not sure if this will work, but you could use...
EMBED src=mydomain.com/myfile.php - your php could check who the referrer
is, and do whatever checking you need, then load your SWF and spit out a
SWF-file type.

- Mick


On 10/28/06, Diversity [EMAIL PROTECTED] wrote:


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


___
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


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

2006-10-28 Thread Jim Berkey
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] 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