2 Replies Latest reply on Jun 29, 2007 7:15 AM by Tom797979

    getBounds in Flex 2/3

    Tom797979
      Hi,

      I've a problem with the getBounds function. I've a .swf create with Flash7.2 and getBounds is perfect when I launch my .swf. But when the .swf is launching with the SWFLoader in Flex getBounds return "NaN".....

      Do you know how resolve this ?
      Do you know other bugs with SWFLoader ?

      Thank you,

      Tom
        • 1. Re: getBounds in Flex 2/3
          Flex harUI Adobe Employee
          Two likely causes: (1) Flash 7 swfs are in a different "sandbox" than Flex 3 swfs and may not be able to get bounds in certain situations. (2) The application is not parented until "applicationComplete" event fires after several frames so bounds may not be availabe until then.

          quote:

          Originally posted by: Tom797979
          Hi,

          I've a problem with the getBounds function. I've a .swf create with Flash7.2 and getBounds is perfect when I launch my .swf. But when the .swf is launching with the SWFLoader in Flex getBounds return "NaN".....

          Do you know how resolve this ?
          Do you know other bugs with SWFLoader ?

          Thank you,

          Tom


          • 2. Re: getBounds in Flex 2/3
            Tom797979 Level 1
            Thank you !

            So we are not sure of the compatibility between Flex3 and a flash script with AS2....

            bad...