Hi there, I am new to swfobject and I got some problems when using it. I want to use swfobject to load swf file dynamically and usually the script file and swf file are not on the same domain.
For example I have a html file with swfobject code on "a.com", and the swfobject is going to load the swf file on "b.com". It doesn't work. The file I tried is the example in swfobject's documentation: ======================================================================= <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head> <title>SWFObject 2 dynamic embed</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="text/javascript" src="test_dynamic_files/ swfobject.js"></script> <script type="text/javascript"> swfobject.embedSWF("http://www.bobbyvandersluis.com/swfobject/ testsuite_2_2/test6.swf", "myContent", "300", "120", "9.0.115", "expressInstall.swf"); </script><style media="screen" type="text/css">#myContent {visibility:hidden}</style> </head><body> <object style="visibility: visible;" id="myContent" data="test_dynamic_files/test6.swf" type="application/x-shockwave- flash" height="120" width="300"></object> </body></html> ======================================================================= I put the above code on a web server, and it seems it can not load the swf file. But if I use the plain html code to do this, it will be fine. Any one can help me? Thanks in advance~ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
