Notifications
Clear all
[Closed] rolloutCreator simple question
Feb 05, 2010 3:34 pm
Ok now I’m pretty sure im just being a bit of an idiot, but I have the following chuk of script
rci = rolloutCreator “arcGuiWindow” “My Rollout”
fn createWindow =
(
rci.begin()
rci.addControl #button #myButton arcName[arcArrayItem]
rci.addHandler #myButton #pressed filter:on codeStr:”onButtonClicked() “
createDialog (rci.end())
)
now this worsk perfectly fine, but when i try to close it via a
destroyDialog “arcGuiWindow”
I get a load of errors about requiring a rollout class. Can someone put me out of my misery and tell me how to actually destroy this window?
2 Replies
Feb 05, 2010 3:34 pm
Try destroyDialog arcGuiWindow instead of destroyDialog “arcGuiWindow”. Once the rolloutCreator has run, you can treat the rollout like a normal rollout, no need to send around more strings. =P