| Menus: Copy Map Actionscript |
Copy Map Actionscript
| This options converts the current map into XML and then writes actionscript code that will store it as a super-long string. This is useful for making certain games self-contained. My earlier games did not use level data, so each map was stored within them in this way. It stores something like this in the clipboard: data_txt = '<data>~~really long xml~~'; data_txt += '~~~ </data>'; data = new XML( data_txt ); onLoad( data ); Flash has a quirk where it can't define super-long strings all at once. This command automatically splits up the string when neccessary to work around that issue.
| Last updated: February 3, 2010 |