0 Replies Latest reply on May 10, 2007 8:30 AM by forty6n2

    center content of swfloader

      I am trying to center the content within an swfloader. By default the content is loading at the top-left corner of the laoder. All I am doing:

      var centerCoord = (loader.width - loader.contentWIdth) / 2
      loader.content.x = centerCoord;

      This works when the window is large, but it seems that when the resolution or window size is decreased, even though the centerCoord calcultation remains correct, the x position of the content becomes less accurate. For example, the centerCoord value will be 100, and I will measure on the screen the actual x-value of the content and it is like 40 or 50.

      Any ideas?