I haven't downloaded your cap, but in general:
You can only add attributes in edittime, not while the game is running. Also you can't remove attributes in runtime. That's a feature that was never finished.
Instead work with invisible sprites, that have the attribute solid, and put them in place of the bridge when the player is walking, and remove it from there when running.