PDA

Просмотр полной версии : setProgress


seras
11.11.2005, 13:36
Чего то я непонял?
Если я нехочу ничего загружать просто цикл бывает долгий и в ето время я хочу показывать процес выполнения.
Как ето зделать? В 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 повисает пока не кончится цикл.