4 Replies Latest reply on Sep 29, 2008 4:00 AM by Pasi_Valkeila

    How to find out width and height of SWFLoader

    Pasi_Valkeila
      I'm loading an image file with UrlLoader and SWFLoader and I need to find out the width and height size of the image
      ----
      var tmp_swf:SWFLoader = new SWFLoader();
      tmp_swf.load(a_file_urlloader.data);
      window_tw.addChildAt(tmp_swf, 0);
      ----

      I have tried:
      window_tw.getChildAt(0).width.toString();
      and
      window_tw.tmp_swf.width;
      but both return 0.

      Any ideas or am I just dumb?