5 Replies Latest reply on Aug 14, 2010 11:12 PM by kglad

    Is it a "bug" in flash tool?

    M.S.H

      I am developing youtube player using AS2.


      Just to see the response from youtube server I have this code:

       

      stop();

       

      System.security.allowDomain("http://www.youtube.com");

       

      var test_xml:LoadVars = new LoadVars();

      var result_xml:XML = new XML();

       

      result_xml.onLoad = function(success) {
          if (success) {
              trace(result_xml);
          } else {
              trace("Load failed");
          }
      }

       

      test_xml.sendAndLoad("http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today", result_xml, "GET");

       

      When I run this I am getting this error :

       

      Error opening URL 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today?'

       

      Now I am wondering why or from where the last character "?" came from.... In my sendAndLoad request this 'question mark' character is not present.

       

      Can anybody help me?

       

      Thanks and Regards,

      Manjunath