PDA

View Full Version : rolloutCreator simple question


MattRennie
02-05-2010, 02: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?

MarcoBrunetta
02-05-2010, 03:23 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

MattRennie
02-05-2010, 04:19 PM
Fixed thanks for the tip. :)

CGTalk Moderation
02-05-2010, 04:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.