Take a look at the rollout open clause:
rolloutlabel = "label"
rollout rolloutDialog "Rollout" width:100 height:50
(
label alabel "" pos:[10,10] width:90 height:16
button updateBTN "Update label" pos:[10,25] width:80 height:16
-- alabel.text = rolloutlabel as string
-- this just gets a syntax error if i leave it here uncommented
on rolloutDialog open do
(
alabel.text = rolloutlabel
)
on updateBTN pressed do
(
alabel.text = rolloutlabel
)
)
createDialog rolloutDialog