Try the following:
//show progress
var id = mx.ui.showProgress(“Message”, null);
//hide progress
mx.ui.hideProgress(id);
Hi Shalini,
What is it that you're trying to achieve? Do you mean you want to add a progress bar to a page by using a Javascript Action? Is there a reason you can't use the progress bar widget for that?