3 Replies Latest reply on Jan 14, 2011 5:19 AM by vb_k

    Get width and height from youtube player!?

    vb_k

      HI!

       

      I'm trying to get size of a loaded youtube player, but it's not working (it's tracing 0):

       


      fotoLoader = new MovieClipLoader();
      fotoLoadListener = new Object();
      fotoLoader.addListener(fotoLoadListener);

       

      fotoLoadListener.onLoadInit = function(target) {
      trace (target._width);

       

      }

       

      fotoLoader.loadClip("http://www.youtube.com/v/"+"VhRas_qrz5Y", loader);

       

      Any tips? ~~~~~~