i've got a problem with a Flash website that has been driving me crazy.
i have a Flash website that was built for us in late 2009, it uses ActionScript 2 and i have been maintaining it in CS3 on a Mac.
the site is structured as a heirarchy of swf files, and loads XML files to specify text content, image locations, and Youtube videos.
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 still frame nor the player skin load.
if i run the site directly from my hard drive (with my Flash Player security preferences set to allow the swf to access the internet), the videos do load and play, so i am guessing that it is some kind of security domain issue.
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 think the solution is probably fairly simple, however i don't know enough about ActionScript to figure it out...
any help would be much appreciated!
i should add that the same thing happens on three different servers, on Safari or Firefox, and on Windows or Macs, so it seems pretty likely that it is a change in either Youtube embedding or Flash Player that has broken the embedding...
it's been doing my nut in that i can't find any reports of similar problems on the interwebs...