0 Replies Latest reply on Jun 3, 2015 3:24 AM by Salster123

    Filling in circles

    Salster123 Level 1

      Livecycle ES2.

       

      Hello, I have found the code to fill in a rectangle and that works, but I seem to be struggling with filling in circles.

      centre_rectangle.value.rectangle.fill.color.value = "255,255,0";

       

      I have created a circle and named it "centre_circle", but it would appear that replacing the "..rectangle.fill..." with "...circle.fill..." doesn't seem to work.

      centre_circle.value.circle.fill.color.value = "255,255,0";

       

      Nor does anything else I've tried:

      centre_circle.fill.color.value = "255,255,0";

      centre_circle.rectangle.fill.color.value = "255,255,0"

      centre_circle.value.rectangle.fill.color.value = "255,255,0"

       

      Is this a syntax error? Or can circles not be filled by JavaScript?

      My customer actually wants triangles and hexagons, but assuming they are not an option..!

       

      Any help would be very much appreciated.

      Thanks