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 ___ 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] way to get window.location from flash?
crap.. I meant: trace(_root._url) 2006/3/1, Bart Wttewaall [EMAIL PROTECTED]: 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 ___ 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] way to get window.location from flash?
thx, but i'm actually looking for the url in the browser not the url of the flash movie itself.. in otherwords if the browser's url is: http://www.mydomain.com/index.html and the flash file is embedded from: http://www.someotherdomain.com/flash/myfile.swf I'd like to know the browser's location from myfile.swf On 3/1/06, Bart Wttewaall [EMAIL PROTECTED] wrote: crap.. I meant: trace(_root._url) 2006/3/1, Bart Wttewaall [EMAIL PROTECTED]: 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 ___ 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 ___ 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] way to get window.location from flash?
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
Re: [Flashcoders] way to get window.location from flash?
Sounds more like you might want a tracking service embedded in your swf, like this one: http://www.mochibot.com/ - Original Message - From: Alan Queen [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 01, 2006 2:16 PM Subject: Re: [Flashcoders] way to get window.location from flash? thx, but i'm actually looking for the url in the browser not the url of the flash movie itself.. in otherwords if the browser's url is: http://www.mydomain.com/index.html and the flash file is embedded from: http://www.someotherdomain.com/flash/myfile.swf I'd like to know the browser's location from myfile.swf On 3/1/06, Bart Wttewaall [EMAIL PROTECTED] wrote: crap.. I meant: trace(_root._url) 2006/3/1, Bart Wttewaall [EMAIL PROTECTED]: 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 ___ 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 ___ 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] way to get window.location from flash?
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 ___ 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] way to get window.location from flash?
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
Re: [Flashcoders] way to get window.location from flash?
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
Re: [Flashcoders] way to get window.location from flash?
great question.. my solution var host:String = String(ExternalInterface.call(eval, window.location.host)); only works when: [ie] the id, classId and scriptAccess are included and scriptAccess is set to always [mozilla] scriptAccess = always are you saying that myspace will overwrite what I put in? I will try this out on myspace tommorrow and report back... -aq On 3/1/06, Rajat Paharia [EMAIL PROTECTED] wrote: 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 -- - 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
Re: [Flashcoders] way to get window.location from flash?
actually just tried it and you are right.. they (myspace) replaces my scriptAccess tags with never ( amongst other things ) arg... rajat, do you guys have a way of knowing where all your games are posted? on which sites/blogs I mean? btw, bunchball is very, very cool stuff.. -aq On 3/1/06, Alan Queen [EMAIL PROTECTED] wrote: great question.. my solution var host:String = String(ExternalInterface.call(eval, window.location.host)); only works when: [ie] the id, classId and scriptAccess are included and scriptAccess is set to always [mozilla] scriptAccess = always are you saying that myspace will overwrite what I put in? I will try this out on myspace tommorrow and report back... -aq On 3/1/06, Rajat Paharia [EMAIL PROTECTED] wrote: 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 -- - 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
Re: [Flashcoders] way to get window.location from flash?
Hey Alan - Thanks! As for us knowing where games are being posted, the answers are sometimes and kind of :) For sites that support it we generate javascript code, and then we do grab the location, in this case the full URL of the page, when the game is loaded and log it in our tracking database. For all sites, when a user generates the code and picks what site they want it for, we include the name of the site in the embed code. When the game is loaded we log that in the tracking database. So we know where the code was intended for, but we don't know the exact URL or even if it really is on that site, unless, as noted above, the site supports javascript. Kind of a drag, but I have yet to find a way to get the location without script access. But the ideas in this thread are great - some of the other sites that don't allow javascript might not be setting AllowScriptAccess to never, so it would actually work. I'll have to go look at the code they generate. Doesn't hurt to try and get it... And yeah, along with setting AllowScriptAccess to never, if I remember correctly MySpace also doesn't seem to like # characters (like in color values) or OBJECT tags... best, - rajat On 3/1/06, Alan Queen [EMAIL PROTECTED] wrote: actually just tried it and you are right.. they (myspace) replaces my scriptAccess tags with never ( amongst other things ) arg... rajat, do you guys have a way of knowing where all your games are posted? on which sites/blogs I mean? btw, bunchball is very, very cool stuff.. -aq On 3/1/06, Alan Queen [EMAIL PROTECTED] wrote: great question.. my solution var host:String = String(ExternalInterface.call(eval, window.location.host)); only works when: [ie] the id, classId and scriptAccess are included and scriptAccess is set to always [mozilla] scriptAccess = always are you saying that myspace will overwrite what I put in? I will try this out on myspace tommorrow and report back... -aq On 3/1/06, Rajat Paharia [EMAIL PROTECTED] wrote: 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