Disclosed is a method of inhibiting growth of a melanoma cancer cell. The method includes contacting the melanoma cancer cell with an effective amount of a composition and the composition contains polymethoxyflavone. The polymethoxyflavone can be applied in an amount of 0.1 μmol/L-1000 μmol/L. A method of treating a subject having melanoma with the above discussed composition is also included.