how to remove or update a rollout ?
hello !
I want to know how to remove or update a rollout for exemple if I have a rollout2 and I want to replace it by the rollout 3 ou 4
Here this my code :
flt= newrolloutfloater "test" 200 200 addrollout rollout1 flt addrollout rollout2 flt rollout rollout1 "rollout1 " ( button button1 "3" on button1 pressed do ( removerollout rollout2 flt addrollout rollout3 flt ) button button2 "4" on button2 pressed do ( removerollout rollout2 flt addrollout rollout4 flt ) ) rollout rollout2 "rollout2 " ( label lab1 "this rollout2" ) rollout rollout3 "rollout3 " ( label lab1 "this rollout3" ) rollout rollout4 "rollout4 " ( label lab1 "this rollout4" )
I don't understand why removerollout is not working !
thank you for your help
Comments
thank you so much
thank you so much
Declare your rollouts before rollout1
Hi, for some reason your variables rollout2,3 and 4 don't seem to be correctly declared on the first try. (The script works perfectly when you use it a second time).
If you define your rollouts before rollout1, it works.