0 Replies Latest reply on Dec 28, 2007 12:12 AM by sapna30

    Load youtube video in a movieclip

      hello all,
      i m trying to load youtube videos in my flash8 application.i m using this code:--

      System.security.allowDomain(" http://www.youtube.com")
      System.security.loadPolicyFile(" http://www.youtube.com/crossdomain.xml")
      this.createEmptyMovieClip("image_mc", this.getNextHighestDepth())
      var mclListener:Object = new Object();
      mclListener.onLoadInit = function(target_mc:MovieClip) {
      target_mc._x = 0;
      target_mc._y = 0;

      var image_mcl:MovieClipLoader = new MovieClipLoader();
      image_mcl.loadClip(" http://www.youtube.com/v/818hQQmxHaM&rel=1", image_mc)

      This code is working fine but as i try to load other youtube video on same movieclip on a button click event it loads nothing.

      //code written on click event of button:--

      _root.image_mcl.loadClip(" http://www.youtube.com/v/5-43Xu6wrK0&rel=1", _root.image_mc)

      please help me on this issue.

      thanks in advance