Two lines...
*import* flash.*external*.*ExternalInterface
*var thisDomain:String = flash.external.ExternalInterface("eval", "
location.href");
I always forget that damn import and it kills me wasting time debugging it
;)
On 11/17/06, Tyler Wright <[EMAIL PROTECTED]> wrote:
Dave,
If you were just using Flash8 ... it's beautiful.
var thisDomain:String = flash.external.ExternalInterface("eval", "
location.href");
one line, so sweet.
Tyler
On 11/15/06, Dave Segal <[EMAIL PROTECTED]> wrote:
>
> Is there a way to find the domain of the page that loads my swf. For
> example, someone embeds an swf served from my server on their
> www.myspace.com <http://www.myspace.com/> page. Is there is way for me
to
> determine that the request is coming from myspace.com at runtime?
>
> A search of the archive revealed this thread that describes exactly the
> problem that I am facing but I didn't see any solution.
>
>
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-October/175064.html
>
> I have the option of using AS 3 if it provides a solution.
>
> Thanks.
>
> _______________________________________________
> [email protected]
> 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
>
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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