Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2006, 02:56 PM
Member
 
Join Date: May 2003
Posts: 35
Default PrintPreparedReport Prints two copies

Once in a while the PrintPreparedReport prints two copies of the form.

Few years ago I had the same problem and TopCCM told me to use something like FFish_async

I cannot find anythink about it on this forum nor in the help.

What is the proper command?

Thankx.
Reply With Quote
  #2 (permalink)  
Old 01-23-2006, 06:21 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:PrintPreparedReport Prints two copies

Ooops,

I forgot to mentionned that this is a FreeReport method.

Reply With Quote
  #3 (permalink)  
Old 01-24-2006, 01:39 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:PrintPreparedReport Prints two copies

Yes, please try the ffish_asyncrun instead of the ffish_run command to call the relevant script. This is because during the print process, the flash movie is still running. But the fscommand("ffish_run", ...) command does not return until the print process is over. Then it comes to this case: the flash player is running, and it finds that a fscommand does not return so that it may treat the fscommand is failed and sends it again. In this case, the flash player sends the fscommand twice so you get two copies.

The ffish_asyncrun command avoids this problem. When you call this command, it does nothing but place the ffish script to be called on a list and return. So the flash player will not send the fscommand again. When the flash player is idle, swfkit will get a script from the list and call it. So the ffish_asyncrun can work.

In flash player 8, we do not need fscommand any more. It give us chance to call external methods directly and synchronously. However, we have not test the PrintPreparedReport method under this situation yet. We will test it and make the swfkit pro 3 the best swf2exe tool.
Reply With Quote
  #4 (permalink)  
Old 01-25-2006, 01:15 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:PrintPreparedReport Prints two copies

To all, It should be "FFish_AsynRun"
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.