DYNAMIC: You don`t can reset the DYNAMIC flag and then change the material after... From the Manual: Statische Entities erlauben keine Events - einschließlich Materialevents. function: from where you call the function detail_einstellungen() ? I don`t can find that. material: Why is detail_event() a action and not a void / function?