> your discovery that this doesn't occur in a 
> barebones movie 

Actually, it's not a barebones movie.  It's a live web app I wrote awhile
back.  I didn't remember if I ever took more than 15 seconds to finalize a
PrintJob when I tested it so I got worried and went to look and sure enough
no error.

All the discussion about whether it's a bug or not is sort of moot at this
point.  PrintJob handles the dialog just fine.  Technically, it's still not
a bug with PrintJob or Flash and here's why.

The PrintJob class has no idea if other scripts are in the middle of
something when it makes its synchronous call to the system, nor should it.
PrintJob can't make sure that there are no other scripts in the middle of
anything when it tells the browser to open a print dialog.  It does what
it's told to do.  It's up to the coder to make sure there isn't code that
would be adversely affected by Flash making a synchronous call.  It's not
PrintJob's fault, nor is it Flash's fault.  The Flash player is single
threaded.  Period.  You can't say that it's buggy because it's single
threaded.  That is its nature.  You have to work within the confines of your
environment.  If you want Flash to be multi-threaded, get in line, but don't
expect it to happen anytime soon (on a side note, I have some friends who
tried to write a wrapper to make Flash run multi-threaded as an experiment
(because you technically had to hack the player which is against MM's EULA)
and it caused all kinds of craziness).

The issue here is that Grime didn't understand how PrintJob worked
(synchronous call) and how a synchronous call affects code running in Flash.
Now that he does, he can write code to stop his code from executing prior to
starting a PrintJob.

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to