Well, after looking at the page in a debug player, I can see that it is a
Flash external interface error which causes the swf not to be displayed
correctly:

SecurityError: Error #2060: Security sandbox violation: ExternalInterface
caller http://www.onlinevideomarketing.ch/player.swf cannot access
<unknown>.
 at flash.external::ExternalInterface$/_initJS()
 at flash.external::ExternalInterface$/call()
 at AkamaiMultiPlayer/createChildren()
 at AkamaiMultiPlayer()
 at AkamaiFlashPlayer()

So, I would say you need a try / catch block on trying to register your
external interface calls (as it relies on js being availbe on the host
page). There is a property called ExternalInterface.available which you can
check for:

"Indicates whether this player is in a container that offers an external
interface. If the external interface is available, this property is true;
otherwise, it is false.

*Note:* When using the External API with HTML, always check that the HTML
has finished loading before you attempt to call any JavaScript methods."

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html#available



I suggest to ALL Flash developers to always run a debug player, so you can
see what runtime errors might be stopping you app from working (and it will
save you time having to post to lists with non-related issues :)


Aran



On Wed, Jul 22, 2009 at 5:18 AM, Getify Solutions, Inc. <[email protected]>wrote:

>
> Just making a guess here, but I bet they're being passed in both cases, but
> they have different formats, or the format of one is rejected by flash.
> This
> seems like a bug in flash in safari, not swfobject.
>
> --Kyle
>
>
>
> --------------------------------------------------
> From: "mgoogle" <[email protected]>
> Sent: Tuesday, July 21, 2009 2:11 PM
> To: "SWFObject" <[email protected]>
> Subject: Re: Embedding in Safari does not work (flashvars) - SWFObject 2
>  HTML  and JavaScript generator
>
> >
> > I've compared the generated source from Safari with SWF Object enabled
> > and disabled, I can't belive but it is the truth, they are the same !?
> >
> > Thank you for your help and the information.
> >
> > I've now posted the description of the problem in the OVP forum on
> > sourceforge.net. (
> >
> https://sourceforge.net/forum/forum.php?thread_id=3341941&forum_id=945491
> > )
> >
> > Maybe there someone knows why this happens....
> >
> > On 21 Jul., 01:21, Aran Rhee <[email protected]> wrote:
> >> So did you run through any of the tests I suggested (no swfobject /
> >> standard
> >> embed)?
> >>
> >> There is an article on generated source for Safari
> >> here:http://www.andrewsellick.com/47/debugging-javascript-on-safari
> >>
> >> Also, Safari 4 (WIN) works for me using static embed on the test
> >> page:
> http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_params.html
> >>
> >> (from the test suite:http://code.google.com/p/swfobject/wiki/test_suite
> )
> >>
> >> How about for you?
> >>
> >> Aran
> >>
> >> On Tue, Jul 21, 2009 at 4:05 AM, mgoogle <[email protected]> wrote:
> >>
> >> > Now i've deugged the falsh movie and the falshvars are not passed if I
> >> > disable javascript,
> >> > but only in Safari ;-(
> >>
> >> > Aran Rhee schrieb:
> >> > > Oh, another test to run is just get rid of any swfobject inclusion
> or
> >> > call
> >> > > to registerObject(). This would be the equivalanent of turning off
> >> > > js,
> >> > and
> >> > > again you should be able to access all flashvars.
> >>
> >> > > Have you tried a normal object/embed insertion as well to see if
> >> > > Safari
> >> > is
> >> > > misbehaving full stop.
> >>
> >> > > On Mon, Jul 20, 2009 at 10:40 AM, Aran Rhee <[email protected]>
> >> > > wrote:
> >>
> >> > > > As you are using static publishing, there is nothing to stop the
> >> > Flashvars
> >> > > > being passed if no js is enabled. You are defining them in the
> >> > > > object
> >> > > > definition, so I see no reason at all that they would be unusable.
> >>
> >> > > > So you are tracing out the values in Flash, and they are
> undefined?
> >> > Have
> >> > > > you tried waiting a frame before trying to access the values?
> >>
> >> > > > Aran
> >>
> >> > > > On Mon, Jul 20, 2009 at 4:00 AM, mgoogle <[email protected]>
> >> > > > wrote:
> >>
> >> > > >> Hi
> >>
> >> > > >> with the generated code form the "SWFObject 2 HTML and JavaScript
> >> > > >> generator v1.2" the flash movie with flashvars does only work if
> >> > > >> javascript is enabled.
> >>
> >> > > >> If i disable javascript, it sees that the flashvars are not
> passed
> >> > > >> to
> >> > > >> the movie.
> >> > > >> Only the flash player window shos up without the movie.
> >>
> >> > > >> In all Versions of IE and Firefox the movie works with and
> without
> >> > > >> javascript enabled.
> >>
> >> > > >> Can anyone give me an hint or has an idea what could be the
> >> > > >> problem ?
> >>
> >> > > >> Thanks,
> >> > > >> Martin
> >>
> >> > > >> Her ist my code witch was generated with the "SWFObject 2 HTML
> and
> >> > > >> JavaScript generator v1.2".
> >>
> >> > > >> <script type="text/javascript">
> >> > > >> swfobject.registerObject("myFlashContent", "9.0.28", "http://
> >> > > >> xxxxxxxxxxxx.ch/system/modules/openvideoplayer/html/
> >> > > >> expressInstall.swf");
> >> > > >> </script>
> >>
> >> > > >> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> >> > > >> width="<?
> >> > > >> php echo $this->openvideoplayer['width']; ?>" height="<?php echo
> >> > $this-
> >> > > >> >openvideoplayer['height']; ?>" id="myFlashContent">
> >>
> >> > > >> <param name="movie" value="
> http://xxxxxxxxxxxx.ch/system/modules/
> >> > > >> openvideoplayer/html/player.swf" />
> >> > > >> <param name="allowfullscreen" value="true" />
> >> > > >> <param name="flashvars"
> >> > > >> value="src=http://xxxxxxxxxxxxxxxx.ch/media/
> >>
> >> >
> mercedes.mp4&mode=sidebyside&scaleMode=fit&themeColor=0395d3&frameColor=333333&fontColor=cccccc&autostart=true&width=646&height=401"
> >> > > >> /
> >>
> >> > > >> <!--[if !IE]>-->
> >>
> >> > > >> <object type="application/x-shockwave-flash" data="http://
> >> > > >> xxxxxxxxxxxx.ch/system/modules/openvideoplayer/html/player.swf"
> >> > > >> width="<?php echo $this->openvideoplayer['width']; ?>"
> >> > > >> height="<?php
> >> > > >> echo $this->openvideoplayer['height']; ?>">
> >> > > >> <param name="allowfullscreen" value="true" />
> >> > > >> <param name="flashvars" value="src=
> http://xxxxxxxxxxxxx.ch/media/
> >>
> >> >
> mercedes.mp4&mode=sidebyside&scaleMode=fit&themeColor=0395d3&frameColor=333333&fontColor=cccccc&autostart=true&width=646&height=401"
> >> > > >> /
> >>
> >> > > >> <!--<![endif]-->
> >>
> >> > > >> <a href="http://www.adobe.com/go/getflashplayer";>
> >> > > >> <img src="http://www.adobe.com/images/shared/download_buttons/
> >> > > >> get_flash_player.gif" alt="Get Adobe Flash player" />
> >> > > >> </a>
> >>
> >> > > >> <!--[if !IE]>-->
> >>
> >> > > >> </object>
> >>
> >> > > >> <!--<![endif]-->
> >>
> >> > > >> </object>
> > >
> >
>
> >
>

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