Page 1 of 1

Updateing the TShockwaveFlashEx in a Loop

Posted: Thu Nov 03, 2005 1:35 pm
by dudedolf
Hi,

I have created a progress bar in flash that is updated using a percentage value sent to a variable. I am updating this value during the loop however, the value is not being changed until after the loop has finished.

Is there anyway i can force the flash movie to update itself??? I have tried the Update, Refresh and Repaint Methods on both the Form and the Flash Movie but no luck thus far

Many thanks

Rudy

Posted: Thu Nov 03, 2005 2:00 pm
by Softanics
Thank you for your question.
Try move the code of the cycle in a separate thread. Hope it helps.

Posted: Thu Nov 03, 2005 6:14 pm
by onad
use :

FlashPlayerControl1.SetVariable('txtProgressStatusMessage','MyText');
sleep(200);
application.ProcessMessages;

The sleep value needed is dependant on the framrate in your flash file, try to experiment a little.

There is also a more complex way setting variables in the flas by using _root.variable

Look in other treads for more tips.