1 Reply Latest reply on Mar 15, 2011 2:12 AM by fishmonkey888

    embedded Youtube videos stopped working...

    fishmonkey888

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