try get(xml.scene);
Thanks - this worked a treat - I actually used
|
Quellcode
|
1
|
get(scene[get(xml.scene)].title
|
to get the title of the current scene. I was using it to set a value of a text field, based on the scene's title.
I didn't want to have to use a "state machine" as this would involve duplicating a lot of code, making it harder to edit in the future. Thanks for everyone's help.