Hi Rob. When are you trying to invoke the EI methods? (perhaps are you trying to call methods on the swf before it is actually available? Or are you calling js methods FROM flash?)
Also, to (temporarily remove) caching as a possible issue, can you tack on a cache busting querystring to both your shell.swf and appmain.swf by adding a unique number like so: flashvars.swfURL = "http://my_CDN_url/appmain.swf?r=" new Date().getTime(); This will ensure you are always loading a fresh swf. If you find there is no difference in behaviour when you close and re-open / refresh etc, then you can discount that caching might have been contributing. A couple of other things I noticed on your pastebin code: - your swfobject code block is in the <body>, are you able to move it into the <head>? This is really where it belongs as it can execute its code before the body starts rendering to page / SWFobject can acess all DOM elelments. - in your attributes, you specify a different name and id ("flashObjID" and "flashObj"). These should be the same to ensure all browsers can target your swf properly for EI. I feel for you being stuck on this for a while. Hopefully we can work through what might be going wrong. Cheers, Aran On Thu, Apr 1, 2010 at 5:38 AM, inchworm <[email protected]> wrote: > To clarify. > > With swfobject 2.2 it never seemed to work in IE7, or it might like > once in a blue moon. > With swfobject 2.1 it works if, after the initial view, I close the > browser and try to view it again. Refreshing on the initial view does > not solve the issue. > > I have not yet added the Security.allowDomain("*") call. Will do that > and follow up. Thanks for the links i'll check them out. > > On Mar 31, 11:31 am, Sam Sherlock <[email protected]> wrote: > > So with 2.1 you get the issue in ie 7 (and ie7 mode ie8) > > > > with 2.2 you get the issue only sometimes when cached (and only with ie7 > > proper) > > > > and when it does present refreshing does not fix the issue > > > > are now using flash.system.Security.allowDomain("*"); > > > > > http://forums.shopify.com/categories/1/posts/25437http://www.longtailvideo.com/support/forum/JavaScript-Interaction/902. > .. > > > > - S > > > > On 31 March 2010 18:35, inchworm <[email protected]> wrote: > > > > > I changed the swfobject version to 2.1 from 2.2 and that seemed to fix > > > the problem when I'm using IE8 and running it in developer mode as > > > IE7. However testing on a machine with windows XP and IE7 the first > > > time i hit the page it doesn't work. If i close the browser, reopen > > > it, and hit the page again it does work. When the page is not working > > > if I hit refresh over and over that doesn't fix the issue. > > > > > Any ideas??? > > > > > - rob > > > > > On Mar 31, 5:13 am, "Nathan Mynarcik" <[email protected]> wrote: > > > > "Seems weird that it would work in all > > > > browsers except IE7." > > > > > > That is never weird. IE has never acted the same as other browsers. > > > Always expect to do something special only for IE. > > > > > > Nathan Mynarcik > > > > Interactive Web Developer > > > > [email protected] > > > > 254.749.2525www.mynarcik.com > > > > > > -----Original Message----- > > > > From: Hung Bui <[email protected]> > > > > Date: Wed, 31 Mar 2010 09:14:32 > > > > To: <[email protected]> > > > > Subject: RE: [SWFObject] Re: external swf unable to access page > > > javascript > > > > > > Try the file on your root > > > > > > crossdomain.xml > > > > > > <?xml version="1.0"?> > > > > <cross-domain-policy> > > > > <allow-access-from domain="*" /> > > > > </cross-domain-policy> > > > > > > -----Original Message----- > > > > From: [email protected] [mailto:[email protected]] > On > > > > Behalf Of inchworm > > > > Sent: 31 March 2010 09:02 > > > > To: SWFObject > > > > Subject: [SWFObject] Re: external swf unable to access page > javascript > > > > > > We already have a crossdomain file and are using allowScriptAccess = > > > > "always" > > > > > > The only one of those that I haven't tried yet is > > > > flash.system.Security.allowDomain("*"); > > > > I thought that would just allow another site to manipulate your swfs > > > > but perhaps it's treating the ExternalInterface calls and flashvars > as > > > > some sort of cross script? Seems weird that it would work in all > > > > browsers except IE7. > > > > > > The only way I can show my code is if I use pastebin, otherwise it > > > > says "We were unable to post your message. If you believe this is an > > > > error, please contact Google Support". > > > > Here's a pastebin link to the code:http://pastebin.com/Tx4XEV93 > > > > > > Thanks for taking the time to help me out, I sincerely appreciate > > > > it :) > > > > > > - Rob > > > > > > On Mar 30, 4:14 pm, Aran Rhee <[email protected]> wrote: > > > > > The known issues are to do with ensuring the host page and swf file > > > have > > > > the > > > > > correct security sandbox settings to enable communications. > Flashvars > > > > should > > > > > always be allowed to the passed into the swf, as this is done at > object > > > > > construction time. > > > > > > > On the host page side of things you will need to ensure that > > > > > allowscriptaccess=always > > > > > since your swfs are coming from a different domain than the page. > On > > > the > > > > swf > > > > > side of things you will need to ensure that you have called > > > allowDomain. > > > > > Below are the most open settings you can set (lock down to your > domains > > > > > after you have determined it is working) > > > > > > > AS2 - System.security.allowDomain("*"); > > > > > AS3 - flash.system.Security.allowDomain("*"); > > > > > > > If you are loading any data (images, xml etc) from your swf, then > you > > > will > > > > > also need a crossdomain policy file on the domain you are loading > the > > > > > content from. > > > > > > > Everyone else can post code to the list, so I am unsure why you are > not > > > > able > > > > > to.... Copy and paste your code into something like notepad to > ensure > > > it > > > > is > > > > > plain text, and paste into your email. > > > > > > > Aran > > > > > > > On Wed, Mar 31, 2010 at 8:39 AM, inchworm <[email protected]> > > > wrote: > > > > > > I'm running into a problem with loading swfs on my page from a > CDN. > > > In > > > > > > all other browsers but IE7 everything works fine, however in IE7 > my > > > > > > shell.swf does not receive any flashvars, nor can it run js > functions > > > > > > on the page. If I switch the swfs to running off of the same > domain > > > > > > the issue is resolved but the client has insisted that the swfs > be > > > > > > hosted on their content distribution network ( which I refer to > with > > > > > > my_CDN_url ). > > > > > > > > Is there any known issue with using swfobject, external swfs, and > > > > > > IE7??? > > > > > > > > Any help would be IMMENSELY appreciated. Been stuck on this for > over > > > a > > > > > > week now. > > > > > > > > *edit* it won't let me post the embed code I'm using :( > > > > > > > > -- > > > > > > You received this message because you are subscribed to the > Google > > > > Groups > > > > > > "SWFObject" group. > > > > > > To post to this group, send email to [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]<swfobject%[email protected]> > <swfobject%[email protected]<swfobject%[email protected]> > > > > > <swfobject%2bunsubscr...@googlegroups. > > > > com> > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/swfobject?hl=en. > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > > "SWFObject" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<swfobject%[email protected]> > <swfobject%[email protected]<swfobject%[email protected]> > > > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/swfobject?hl=en. > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > "SWFObject" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > [email protected]<swfobject%[email protected]> > <swfobject%[email protected]<swfobject%[email protected]> > > > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/swfobject?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "SWFObject" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<swfobject%[email protected]> > <swfobject%[email protected]<swfobject%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/swfobject?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
