Re: [Flashcoders] swf and referring domain
Mick, You don't need the import (in AS2) if you type out the full package name: flash.external.ExternalInterface(...); Tyler On 11/17/06, Mick G [EMAIL PROTECTED] wrote: 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. ___ 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 referring domain
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. ___ 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 referring domain
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. ___ 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 referring domain
The swf (SWFA) that wants to load your swf (SWFB) can't do so if you i) you don't allow it ii) you don't know where SWFA is You have to know where SWFA is to allow it. See the System.security.allowDomain entry in the Flash 8 docs; it has a nice diagram to illustrate things. http://livedocs.macromedia.com/flash/8/main/2647.html On 11/16/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. ___ 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 -- Cheers, Ray Chuan ___ 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 referring domain
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. ___ 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