Hi, I'm wondering if it possible to monitor the progress of the CMLParser command?
I'm asking that, because for now, it takes about 2 min to parse my CML files... and my application is not yet finished.
So, I would like to be able to display a loading message during the process. I have tried to display a message triggered by a timer, but it stops during the parsing... I think also this help me to avoid running into the "script time limit" error.
You want enable the debug flag on the parser. Are you by any chance setting variables in the Include tag?
Thanks a lot Shaun for your fast answer!
No. All my variables are in AS3...
But, I was not aware that I could set variable in CML... How Can I do that?
The reason I was asking if you were setting variables through an Include tag is because that is the only time I have seen load latency of the time you mentioned. Setting variables in CML is the basis of CML. It's just a declarative alternative to AS3. I recommend following the tutorials for a better understanding of the features and limitations.
So, I suppose there is something wrong with my CML files... Do you think, that a bad choice(or organisation) of CML tags could be the origin of that latency? (Thanks for time)
Little update: I went through my CML files trying to find what was wrong. I was using some HTML tags
<br /> in my text elements to make some formatting... By removing them the parsing time was reduced by more than 90 sec!!!