Updateing the TShockwaveFlashEx in a Loop

F-IN-BOX for Delphi / Builder C++ / VCL
dudedolf
Posts: 1
Joined: Thu Nov 03, 2005 1:31 pm

Updateing the TShockwaveFlashEx in a Loop

Postby dudedolf » Thu Nov 03, 2005 1:35 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Nov 03, 2005 2:00 pm

Thank you for your question.
Try move the code of the cycle in a separate thread. Hope it helps.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

onad
Posts: 22
Joined: Wed Aug 17, 2005 2:49 pm
Location: Turkey
Contact:

Postby onad » Thu Nov 03, 2005 6:14 pm

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.
"Just do it"


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 18 guests

cron