Save javascript file winthin a .AMXD
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?
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.
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.
Thanx to amounta and Griotspeak!