Thanks Aran, I suspect you're right.

I put the swfobject code in the header by itself and it never fails,
it looks like the DomLoadEvent is the right direction.

Thanks again-- Mike

On Oct 16, 7:26 pm, "Aran Rhee" <[EMAIL PROTECTED]> wrote:
> Mike.
>
> No, there is no debug mode. I would suggest5 that your error is coming from
> the combination of using swfobject and the facebook js api, and order of
> calls.
>
> If you suspect timing errors, then maybe you want to delay the firing of
> certain functions until things are ready. Have a look at the
> swfobject.addDomLoadEvent() method
>
> http://code.google.com/p/swfobject/wiki/api
>
> e.g. (run other function after DOM is ready)
>
> <script type="text/javascript" src="swfobject.js"></script>
> <script type="text/javascript">
>         function sayHi() {
>                 alert("Hi!");
>         }
>         swfobject.addDomLoadEvent(sayHi);
> </script>
>
> OR do swfobject stuff after DOM is ready:
>
> <script type="text/javascript" src="swfobject.js"></script>
> <script type="text/javascript">
>     if (swfobject.hasFlashPlayerVersion("6.0.0")) {
>       var fn = function() {
>         var att = { data:"test.swf", width:"780", height:"400" };
>         var par = { flashvars:"foo=bar" };
>         var id = "replaceMe";
>         var myObject = swfobject.createSWF(att, par, id);
>       };
>       swfobject.addDomLoadEvent(fn);
>     }
> </script>
>
> (example from swfobject.createSWF() section of API wiki page)
>
> Cheers,
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Mike
> Sent: Friday, 17 October 2008 7:45 AM
> To: SWFObject
> Subject: debug mode?
>
> I've got an intermittent error that looks like it's coming from
> swfobject, is there any sort of debug mode to get more info?
>
> Most of the time swfobject appears to fail silently. This may be
> timing related as once I put HTTP Analyzer on it then I started to get
> more successes than fails.
>
> For what it's worth the environment is:
> IE 7
> Flash 10.0.12
> swfobject 2.1 (dynamic)
> Facebook JS API
>
> Serving the swf directly (no html, no swfobject) to IE never fails.
> Firefox 2/Flash 10 from the same failing html is rock solid.
>
> Thanks-- Mike
--~--~---------~--~----~------------~-------~--~----~
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