| Menus: Copy Level Actionscript |
Copy Level Actionscript
| If you want to make a game self-contained, it'll be neccessary to store the level data in the game's SWF somehow. This command converts the level data into XML, and then sets it up to be stored as a really really long string! This command is helpful because 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. It stores something like this in the clipboard: data_txt = '<data>~~really long xml~~'; data_txt += '~~~ </data>'; data = new XML( data_txt ); onLoad( data );
| Last updated: February 3, 2010 |