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?

#50383
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.

#180805
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.

#180806
May 31, 2010 at 8:08pm

Thanx to amounta and Griotspeak!

#180807

You must be logged in to reply to this topic.