  | |  | timeout or pause in jstl? | timeout or pause in jstl?
2004-02-16 - By Bram Meijboom
Back Hi,
I 'm currently exploring how to use jsfl and have a question about it,
Does anyone know how to "pause " the script?
I am using it to automaticly compile and test the movies and it would be
nice to capture the output panel (where all trace messages are printed) and
dump it in a file. The thing is that when using doc.testMovie(); the "script
thread " continues running so flash gets killed before the movie had any
chance to send some debug messages. I put in a "for (i=0;i <100000;i++) loop
to "wait " a bit but it is not workable(I could capture the output from the
test).
Bit of jsfl code
var doc = fl.openDocument( "file:///C:/test.fla ");
fl.outputPanel.trace( "Publishing test.swf ");
doc.exportSWF( "file:///C:/test.swf ", true);
doc.testMovie();
//timeout here
fl.closeDocument(doc, false);
fl.outputPanel.save( "file:///C:/log.txt ");
fl.quit(false);
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104364
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |