1 Reply Latest reply on Jan 17, 2007 7:47 AM by kglad

    trouble loading swf

    Nicholas_Desbiens
      I am making a simple gallery application that will display jpgs and swf, with a main image and several scrollable thumbnails.

      Everything seems to be working except for some troubles I'm having with the swfs. Basically I want to scale the MovieClip holding the swf to shrink to fit in the thumbnail bar. I read that you cannot change MovieClip . _width and ._height properties before until the file has completely loaded, so I'm currently using a Listener with .onLoadComplete(). But I'm still having problems. In the onLoadComplete() function, when I query the MovieClip ._width and ._height properties, they both return 0. When I change those properties to their respective target value, I lose the image completely.

      I would appreciate any advice or ideas as to what might be causing me these problems.

      Thanks,

      Nicholas