getting the download progress from another browser window sounds a little complicated to me.
what you might do instead is disable the button for however long.
here’s one method of doing that. make a testing movie in _root, call it “test”. we’ll toggle that button’s visiblilty in the example.
on your button, you add a few lines to disable the button, and re-enable it a little later:
_ _ _ _ // toggle test's visiblility
_ _ _ _ _root.test._visible = !_root.test._visible;
_ _ _ _ this.myButton.enabled = 0;
_ _ _ _ this.myButton.timeOut = setInterval(_root.reEnable,1000,this.myButton);
the setInterval arguments are; the function to call, how often to call it, and any arguments you want to pass to that function. in this case, we’re calling _root.reEnable every second (1000 milliseconds, you’ll probably wnat to make that longer) and passing it the a reference to the button which we’ve disabled (which also contains the handler for the setInterval).
and we’ll need to write that reEnable function that we called:
_ _ _ _ trace("cleared "+button+"'s interval!")
_ _ _ _ button.enabled = 1;
_ _ _ _ clearInterval(button.timeOut);
pretty straightforward, it re-enables the button, and clears the setInterval using the handler we defined. handy how each button can contain it’s own handler, eh? no overlaps.
oh yeah, you’ll need to name your buttons too, in the above example, i’ve named the button “myButton”.