hi all

i've got a problem with a Flash website that has been driving me crazy.

i have a Flash website that was built by a Flash developer in late 2009, it uses ActionScript 2 and i have been maintaining it in CS3 on a Mac.

the site is structured as a hierarchy of swf files, and loads XML files to specify text content, image locations, and Youtube videos.

videos are loaded using mcLoader.loadClip

all this has worked fine until sometime in the past month or two. the problem now is that the embedded Youtube videos no longer load, although nothing has changed in the code. unfortunately i don't know exactly when the videos stopped loading.

in the Activity Window of Safari i can see the URLs for the Youtube crossdomain file (http://i1.ytimg.com/crossdomain.xml), Youtube still for the video, and the Youtube player (http://s.ytimg.com/yt/swfbin/cps-vfl2P81QA.swf). however neither the player skin nor the still frame become visible.

however, if i run the site directly from my local file system (with my Flash Player security preferences set to allow the swf to access the internet), the videos do still load and play.


if i run the site in Flash CS3 in debug mode, when i navigate to a video page, although the video loads and plays, i get lots of these warnings (i've edited the path and file name):

*** Security Sandbox Violation ***
SecurityDomain 'http://s.ytimg.com/yt/swfbin/cps-vfl2P81QA.swf' tried to access incompatible context 'file:///pathname/site.swf'


i have tried the site on three different servers. the videos fail to load using Safari or Firefox, and on Windows or Macs, so it seems likely that it is a change in either Youtube or Flash Player that has broken the embedding...

i think the solution is probably fairly simple, however i don't have the Flash chops to figure it out.

any help would be much appreciated!