MySpace is a prime example of allowScriptAccess="never"
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of John VanHorn > Sent: Thursday, November 16, 2006 3:27 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] RE: swf and referring domain > > the allowScriptAccess attribute of the embed tag can be set > to "never" or "always". if its never, you can write all the > javascript you want, but it wont get called. i see embeds > with both "always" and "never" on myspace pages. im guessing > that any third party swfs will be set to "never".....if thats > the case, a javascript-from-flash solution wont work. i also > see that the embeds of third party swfs have flashvars in > them. talk to myspace - if that is the destination - and see > if they will pass in the domain as a flashvar. > > On 11/16/06, Dave Segal <[EMAIL PROTECTED]> wrote: > > > > > > Thanks for the response Joey. I actually tried a similar > method before > > that almost worked. From Flash I did this - > > > > getURL("javascript:document.mySWF.SetVariable('referringDomain', > > document.loc > > ation.host)"); > > > > The problem I ran into was that in IE as soon as this line executes > > the page stops rendering. This is especially problematic > when the swf > > begins before the page is done loading. The page never completes. > > Also, several sites I am targeting, like mySpace, restrict > javascript. > > I'm not sure what would happen if I tried writing javascript at > > runtime to a mySpace page. > > > > > > _______________________________________________ > > 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 > > > > > > -- > John Van Horn > [EMAIL PROTECTED] > _______________________________________________ > 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