Xjs file which is made when saving User Component pr Script File from UX-Studio, is made into XML unlike js file that is a text form, and type=”xscript4.0”property must exist in Root Tag <Script>.
<?xml version="1.0" encoding="utf-8"?> <Script type="xscript4.0"> <![CDATA[class UC_BUTTON extends Button { } }}> </Script>
The xjs file can be used in script files such as xjs and xfdl by using include declaration.
include "Base::UC_Button.xjs"; function Button01_onclick(obj:Button, e:ClickEventInfo) { }