Just a quick question - do these calls to javascript work when the embed tag has disabled script access? For instance, whenever you put a Flash movie into a page at MySpace, they always set AllowScriptAccess to "never".
thanks, - rajat On 3/1/06, Alan Queen <[EMAIL PROTECTED]> wrote: > > fyi, I got this to work in both ie and mozilla.. > var host:String = String(ExternalInterface.call("eval", " > window.location.host")); > > requires flash 8.. > > my goal here was to simply return the host name where the webpage is > running > without requiring any javascript on the page.. > > > > On 3/1/06, Alan Queen <[EMAIL PROTECTED]> wrote: > > > > Hey Geoffrey, > > > > This works great in IE! thx.. > > > > but doesnt in mozilla, u know of a work around for it in mozilla? > > > > -aq > > > > > > On 3/1/06, Geoffrey Williams <[EMAIL PROTECTED]> wrote: > > > > > > If you want the URL of the page (not the SWF), you can try something > > > like: > > > > > > getURL > > > ('javascript:document.getElementById > ("object_id").setVariable("url_string", > > > window.location.href); void (0);'); > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Bart > > > Wttewaall > > > Sent: Wednesday, March 01, 2006 2:11 PM > > > To: Flashcoders mailing list > > > Subject: Re: [Flashcoders] way to get window.location from flash? > > > > > > trace(_root._url) > > > > > > 2006/3/1, Alan Queen <[EMAIL PROTECTED]>: > > > > Is there a way get the window's location ( url ) from flash without > > > embedded > > > > a javascript helper function on the page? > > > > > > > > -- > > > > - Alan Queen > > > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > -- > > > > - Alan Queen > > > > > > -- > - Alan Queen > _______________________________________________ > 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 > -- Rajat Paharia [EMAIL PROTECTED] http://www.bunchball.com http://www.rootburn.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