Cocos Creator 3.7 - How to find or make methods and properties that were in cocos2d 3.17

Hello, Cocos Devs!

In 2018 - 2019, I developed game using cocos2d-js 3.17.
At that time, I used many methods and properties, for ex:

  • cc.Sprite
    width, height
    x, y
    getTexture()
    setSpriteFrame

  • cc.Texture
    getHtmlElementObj()
    initWithData()

  • cc.spriteFrameCache
    addSpriteFrame

  • cc.sys.isNative

  • jsb

I used more, but these above are important things in my project.

What’s the solution to use the props, methods and namespace disappeared?

Please share your idea!
Thank you.