//    Instruction Example :     long gradient.position.x.get (objectid)


        screen.resolution.set (512,384)

        screen.set (BACK)
          pattern.display ("avo\bubble.gif")
        screen.end ()

        @grad = gradient.create (RIGHT,4,80,20,0,200,180,20,320,240)

        gradient.display (@grad,CENTER,CENTER)
        %data=gradient.position.x.get (@grad)

        text.display ("The X position of the gradient is : " + STR (%data),CENTER,10)

        text.display ("Press a key to exit.",CENTER,350)

        keyboard.wait ()

        script.stop ()