|
|||
|
Hi! I'm working on a file transfer program.
I can use the file class, but I have no idea how I may be able to make a progress bar in the copying process. So basically my solution was making a new file and then using FileStream for copying in order to make a progress bar. Does anyone have a better solution? Thanks a lot! ![]() |
|
|||
|
Yes, this way should work. In the copying loop, you may call the processMsg method to update the progress bar:
Code:
import SWFKit.*;
var fs = new FileStream(...);
...
while (...) {
if (!Global.processMsg()) break;
...
fs.write(...);
...
}
|
![]() |
Was this information helpful? Yes No
| Tags |
| copy, file, progress |
| Thread Tools | |
| Display Modes | |
|
|