Flash ActionScript - Trace from background Worker -
is possible @ all, or traces part of api not avalible background worker?
consider code:
public class main extends sprite { public function main(container : displayobjectcontainer = null) { if(worker.current.isprimordial) { trace("isprimordial"); var m_worker : worker = workerdomain.current.createworker(this.loaderinfo.bytes); m_worker.start(); } else { trace("is not primordial"); } }
the string "is not primordial" not appear, see m_worker.state "workerstate.running".
some update: main thread works , racts events, appears backgroung worker not start until desconnect debugger.
and if possible, how setup fdb show these logs?
ps. im using flash standalone debug player 13 latest fdt , apache flex 4.12.1 sdk.
ok, results are:
the background thread (worker) can write traces no problems @ if debugger not attached, illustration if using flashlog.txt output (output file).
what required is: flash debug player (me used v. 14 stand lone , firefox versions).
the setup using text file output discussed here: http://helpx.adobe.com/flash-player/kb/configure-debugger-version-flash-player.html http://help.adobe.com/en_us/flex/using/ws2db454920e96a9e51e63e3d11c0bf69084-7fc9.html
correct location of mm.cfg on modern operating systems (and not on win95!) discussed here: https://forums.adobe.com/thread/1218258
for me output file started work only after flashlog.txt file created 3rd party tool (i used vizzy), permission problem of flasho n windows 8 , file can created manually.
detailed give-and-take of flash traces topic (althoug little old, still relevant) here: see trace() of flash when running in browser
thanks help.
actionscript-3 flash flex
No comments:
Post a Comment