Print actionscript wont work!

can anyone tell me whats wrong with this code?, when I use this code to print out pages in my site the print button still shows up on print out.

on (release) {
print(“1”,“bmax”);
printbutton._visible = false;
}