Topic: embeding text / xml files in the widet SWF
Hi!
I'm using Ubuntu / mtasc / swfmill to build my widget. Works great in Flash 8 player in the browser but on the device it seems to run into memory constraints. Problem is that I'm trying to allocate bunch of long strings in my code which in sum exceed 32k (perhaps I'm running into the infamous 32k static allocation problem). My work-around of splitting the strings into multiple classes worked on the browser player but Chumby still doesn't like it.
So instead of allocating the strings in the code I want to do what I was trying to do in the first place: put the strings in a .xml or .txt file, embed it in the .swf and somehow load it dynamically in the code. I searched deep and wide but could not find a way of doing this with mtasc / swfmill. Perhaps I'm misunderstanding something here but I think XML.load() only works with URLs. I also did not find syntax for how to embed text file resources in the mtasc / swfmill application definition (the <library> only seems to allow clips).
If at all possible I would prefer not to load the text data from a remote server (hence I'm trying to embed).
Let me know if you know of a way to do this.
Many Thanks