Cant add AS to button?

I’m creating a banner, and when i go to add action script to a blank white box in the back it says it cannot have AS applied to it. Could this be because i am using one of the banner formats? please respond.