Save javascript file winthin a .AMXD

May 16, 2010 at 12:29pm

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?

May 20, 2010 at 11:55pm

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.

May 30, 2010 at 12:52pm

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.

May 31, 2010 at 8:08pm

Thanx to amounta and Griotspeak!


You must be logged in to reply to this topic.