Save javascript file winthin a .AMXD

xanadu's icon

Is it possible to include a javascript file inside a .amxd file? Of course the text can be included in a comment or another text container, but can I get it into a js object without intervention?

amounra's icon

Just freeze the device. It will package the js and all dependent files along with the device, and when the user unfreezes it, the js will be unpacked in an "unfrozen max device files" directory.

Griotspeak's icon

before you freeze and save, you may have to open the js in Max and save there.

Max doesn't like including js saved by, say, your favorite text editor.

i don't kno why.

xanadu's icon

Thanx to amounta and Griotspeak!