Hi there,
I have not found any reason for it, but the Delegate class doesn't appear to work in Flash Lite, any version. Here is my code:
My trace in Device Central is:Code:function x_onLoad(result:Boolean) { trace("x_onLoad FUNCTION CALLED"); if (result) { trace("SUCCESS!"); } } var x:XML = new XML(); x.onLoad = Delegate.create(this, x_onLoad); x.load("db/questions.xml");
However, if I don't use Delegate (which, I might add, is a right pain in the @ss):Code:FTPS033: A Call to loadVariables(db/questions.xml) found, limitations might apply. Connected to file://C:\Work\test\bin\db\questions.xml. Loaded data from file://C:\Work\test\bin\db\questions.xml. Finished request for file://C:\Work\test\bin\db\questions.xml.
It works fine:Code:var x:XML = new XML(); x.onLoad = function(result:Boolean) { trace("x.onLoad function called"); if(result) { trace("SUCCESS!"); } }; x.load("db/questions.xml");
Anyone got any clues? I can't find anything else on the web about Delegate not working in Flash Lite. Surely it's just a simple AS2.0 class?Code:FTPS033: A Call to loadVariables(db/questions.xml) found, limitations might apply. Connected to file://C:\Work\test\bin\db\questions.xml. Loaded data from file://C:\Work\test\bin\db\questions.xml. Finished request for file://C:\Work\test\bin\db\questions.xml. x.onLoad function called SUCCESS!
Thanks!
:-Joe




Reply With Quote