My head hurts of trying to search through the net for a solution I believe I didn't find one here, so here goes. I'm simply trying to make a SWF file load some values from an XML file and they're both stored locally. No network access is being tried to make.
So, I have:
- a .SWF -file (tried all Flash Lite versions from 2.0 to 3.0) that displays a pie chart
- an XML file that contains the values and colors to render the pie chart
- publish settings 'Access local files only'
I've loaded the XML in the Flash file using the load() function (I followed Lee Brimelow's example at www.gotoandlearn.com). Basically I'm 99% sure I'm doing it right, because it works. Then when publishing the SWF file Adobe Device Central gives me a warning that:
"FTPS033: A Call to loadVariables(pieGraph.xml) found, limitations might apply."
But everything works. I make a .WGZ file of the whole package and send it to my N97.
What happens next is that the embedded flash file loads fine in the widget, but doesn't see the XML file that's in the same directory. I end up with a black square (colors didn't load from the XML). Everything works fine in my computer's browser and Adobe Device Central.
I read from Adobe's site that in some devices the load() function is somehow disabled (for security reasons?) and has to be externally triggered (for example by clicking the Flash object). Is this true? I read somewhere that there's a 'trusted' folder in the phone where all this should work. How can I make the .WGZ file install there? At that same point I read that also the 'private' folder should act the same way, but that's exactly where the widget is being installed by default and it still doesn't work.
How can I get pass this?