Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   ActionScript 1.0/2.0 (http://www.flasher.ru/forum/forumdisplay.php?f=93)
-   -   setProgress (http://www.flasher.ru/forum/showthread.php?t=71702)

seras 11.11.2005 13:36

setProgress
 
Чего то я непонял?
Если я нехочу ничего загружать просто цикл бывает долгий и в ето время я хочу показывать процес выполнения.
Как ето зделать? В manuale все просто :

Drag a ProgressBar component from the Components panel to the Stage.
In the Property inspector, do the following:
Enter the instance name pBar.
Select manual for the mode parameter.
Select Frame 1 in the Timeline, open the Actions panel, and enter the following code that updates the progress bar manually on every file download using calls to the setProgress() method:
Код:

for(var:Number i=1; i <= total; i++){
  // insert code to load file
  // insert code to load file
pBar.setProgress(i, total);
}

а на reale flashik повисает пока не кончится цикл.


Часовой пояс GMT +4, время: 15:08.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.