This content has been marked as final. Show 2 replies
> I working on a project that parses multiples XML and image files. The
> first XML (initial data file, idf.xml) contains a serie of nodes, for
> example: example of idf.xml
> I use a sequential preloadnetthing with every node founded in
> idf.xml, for each file I use streamstatus to track downloading
> progress. What I want is to track the progress of the entire package
> (data.xml + preferences.xml). That is, to know the filesize of every
> xml before the first call of streamstatus.
Can you use streamSize?
(And do the filenames really need quotes around them?)
I Can't test it now. But I think I can't, when I preloadnetthing with a XML I have no cast member to access to its streamsize prop.
Do I need to import it in a cast member as "link to external file" and then preload it?. This can be done, however, there are image files that changes in filenames and number, so I have the problem again.
Thanks for the reply, the problem is that I didn´t explain what do the program do with the files.
Use it (populate a proplist)
create a new #bitmap cast member
import the image to the member with importFileInto
Create a new 3d texture with the member.
don' t forget it until program closes.
The xml is the simplest case, in fact I can put the filesize in the firs XML (initial data file), But the image files are more complex ( or tedious)
For the double quotes, I made a maxcript XML scene exporter that gave me problems with some file names. I think It was the & character. So I enclosed file names with quotes as a fast solution. Maybe I must define a DTD for the XML (well, another story for that).