1 Reply Latest reply on Feb 27, 2007 9:11 AM by W_Herold

    Adjust regpoint to flash file

    Level 7
      Hello:

      I'm using the property loc to position one sprite on the screen.

      sprite(mysprite).loc=sprite(5).loc

      "mysprite" is an swf file. How can I adjust the regpoint of this ind of
      file?

      thank you


        • 1. Re: Adjust regpoint to flash file
          W_Herold
          I had a problem with an active swf, that has a fixed size, but a changing regpoint.
          As i fond no solution to change the regpoint of the swf, i did it
          this way.

          --mysprite_x would be spriteloch if sprite's regpoint is centered
          --mysprite_y would be spritelocv if sprite's regpoint is centered
          x0=mysprite_x - sprite(mysprite).width / 2
          y0=mysprite_y - sprite(mysprite).height / 2
          x1=mysprite_x + sprite(mysprite).width / 2
          y1=mysprite_y + sprite(mysprite).height / 2
          sprite(mysprite).rect = rect( x0,y0,x1,y1)


          maybe this can solve your problem

          regards
          Wolfgang