Smart Corners in Flash

Out of context: Reply #1

  • Started
  • Last post
  • 26 Responses
  • mitsu0

    msk1 is a div w/ absolute positioning, and a transparent gif of the lower right rounded corner. you would do the same for the three other corner masks. positioning must be done after the image has fully loaded to calculate the correct dimensions.

    msk1.style.left=
    myimg.offsetLeft-10;
    msk1.style.top=
    myimg.offsetTop-10;

    same philosophy would be applied with layers to work in netscape.

View thread