0 Replies Latest reply on Sep 24, 2008 5:20 PM by MrPres9485

    Flash Vars Problem -- Video Player

    MrPres9485
      I'm using an XML Video Player on my site, and I embed the swf file in a object in PHP , which I also do for many other flash swfs. I noticed that in this player _root is not used for accepting an xml path as a FlashVar.

      I would like to pass in the path names of the 4 xml files, one for each of the video categories, and I’m passing the paths in as follows:

      FlashVars="xmlPath0=/wml/files/players/video/industry/user_18/xml/Company.xml"
      FlashVars="xmlPath1=/wml/files/players/video/industry/user_18/xml/Publicity.xml"
      FlashVars="xmlPath2=/wml/files/players/video/industry/user_18/xml/Talent.xml"
      FlashVars="xmlPath3=/wml/files/players/video/industry/user_18/xml/Clips.xml"

      I modified the AS in the fla file to accept the FlashVars:

      The_Player_MC -> Initiate Functions Layer, Line 71: xmlData.load(_root.xmlPath0);

      The gallerybuttons, Line10:

      _parent.loadnewxml(_root.xmlPath0);

      _parent.loadnewxml(_root.xmlPath1);

      _parent.loadnewxml(_root.xmlPath2);

      _parent.loadnewxml(_root.xmlPath3);

      I’m not having much luck with my implementation, and I would appreciate any insight.

      Thanks!
      Email: MrPres9485@hotmail.com