You need to describe your project more or attach an example.
How did you set it up? A player sprite with 'platform behavior' and door sprites with ' solid behavior'? You could also create an open door sprite and destroy the closed door at the same position on your "open door action". Open door sprites shouldn't have the solid behavior then.
I would prefer doing it like Ashley said with instance variables, but don't know if that fits to your project.