@citznfish

There is no inherent issues with having your swfobject.js file, you swf and
your HTMl page all coming from different domains (there is no security
preventing this).

A link to your actual page will help greatly in trying to debug.

As Vincent mentioned, have you used the code generator:
http://www.bobbyvandersluis.com/swfobject/generator/index.html to construct
your page? It will ensure everything is as it should be.


Aran

On Fri, Jul 17, 2009 at 7:56 AM, Vincent Polite <
[email protected]> wrote:

> Ack.  My apologies.  You are using the static publishing method and
> apparently the objects ARE given the id tags, not the divs.  Please
> disregard my ramblings for the moment.
>
> Vincent
>
>
> On Thu, Jul 16, 2009 at 2:53 PM, Vincent Polite <
> [email protected]> wrote:
>
>> I'm presuming that you changed the URLs to protect the guilty.  :)
>> However, it makes it challenging to really decipher what might be happening
>> in your particular case.  However, there are some obvious things that seem
>> incorrect that might be the cause of your problem.
>>
>> SWFObject replaces a given object on your page with the flash file that
>> you specify.  Because of this, in your example below, you need a <div> tag
>> with id="shoes" to serve as your initial content.
>>
>> Basically if you have that div and put inside of it your alt-content that
>> says, "Hey you don't have flash installed", then SWFObject will come along
>> and if the user has the appropriate browser support for Flash will swap out
>> that div and replace it with whatever you define in your SWFObject call.
>>
>> In your example below, you are not giving divs the id, but rather the
>> actual objects, and I believe this is incorrect usage of SWFObject.js in
>> general.
>>
>> If you do a search for code generator SWFObject on google, it should take
>> you to a page that will help you generate the appropriate code to insert
>> your flash.  In this case, I don't believe you should be running into any
>> sort of cross-domain issues, but please let us know if switching some of
>> your code around addresses your issue.
>>
>> Just as an aside, it's not clear (to me at least) what you mean by "if you
>> remove the javascript call".  Is said call in your code below?
>>
>> Best wishes,
>>
>> Vincent Polite
>>
>>
>> On Thu, Jul 16, 2009 at 2:05 PM, citznfish <[email protected]> wrote:
>>
>>>
>>> My sites use Akamai to host our files, but I seem to be having a
>>> problem with the javascript portion of SWFObject
>>>
>>>
>>> For example my site is www.store.ca or shop.store.com. This issue
>>> happens on both.
>>>
>>> but my files live on content.store.com (Akamai servers)
>>>
>>> If I remove the Javascript call SWFObject 2.2 works fine except for
>>> the flash version detect. If I make the JS call to swfobject.js I just
>>> get a blank page though since it's choking on the JS file.  I *think*
>>> this has something to do with JS and cross domain issues but need
>>> someone to verify that is the case. Is there a work around for this? I
>>> guess I could have the JS file put on each of our servers but I don't
>>> have easy access to that.
>>>
>>> <script type="text/javascript" src="http://content.store.com/swfobject/
>>> swfobject.js <http://content.store.com/swfobject/%0Aswfobject.js>
>>> "></script>
>>>                <script type="text/javascript">
>>>                swfobject.registerObject("shoes", "9.0.0");
>>>                </script>
>>> <div>
>>> <object id="shoes" classid="clsid:D27CDB6E-
>>> AE6D-11cf-96B8-444553540000" width="666" height="522">
>>> <param name="movie" value="http://content.store.com/StoreCanada/
>>> Landing/Shoes/2009-07-07/shoesCA.swf<http://content.store.com/StoreCanada/%0ALanding/Shoes/2009-07-07/shoesCA.swf>"
>>> />
>>> <param name="quality" value="high" />
>>> <param name="menu" value="false" />
>>> <param name="bgcolor" value="#ffffff" />
>>> <param name="wmode" value="transparent" />
>>> <param name="name" value="shoes" />
>>> <param name="allowscriptaccess" value="always" />
>>> <param name="allowfullscreen" value="false" />
>>>                        <!--[if !IE]>-->
>>> <object type="application/x-shockwave-flash" data="http://
>>> content.store.com/StoreCanada/Landing/Shoes/2009-07-07/shoesCA.swf"
>>> width="666" height="522">
>>> <param name="quality" value="high" />
>>> <param name="menu" value="false" />
>>> <param name="bgcolor" value="#ffffff" />
>>> <param name="wmode" value="transparent" />
>>> <param name="name" value="shoes" />
>>> <param name="allowscriptaccess" value="always" />
>>> <param name="allowfullscreen" value="false" />
>>> <!--<![endif]-->
>>> <div><a href="http://shop.content.com/ProductListing.aspx?
>>> page=GRID&browse=1&root_category|46=Women&category|cat_47|
>>> 2816=Tees&rpt=<http://shop.content.com/ProductListing.aspx?%0Apage=GRID&browse=1&root_category%7C46=Women&category%7Ccat_47%7C%0A2816=Tees&rpt=>
>>>
>>> &pt=ProductListing.aspx"><img src="http://content.store.com/
>>> StoreCanada/Landing/Shoes/2009-07-07/shoesStaticImage.jpg<http://content.store.com/%0AStoreCanada/Landing/Shoes/2009-07-07/shoesStaticImage.jpg>"
>>> alt="STORE
>>> shoes" title="STORE shoes" border="0" /></a></p><p><h4>Our web site is
>>> designed for Flash enabled browsers. If you would like the full
>>> experience please install the latest Flash player by clicking <a
>>> href="http://www.adobe.com/go/getflashplayer";>here.</a></h4></p>
>>>                                </div>
>>>                                <!--[if !IE]>-->
>>>                                </object>
>>>                                <!--<![endif]-->
>>>                        </object>
>>>                </div>
>>>
>>>
>>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to