Feche1320 Posted March 11, 2012 Posted March 11, 2012 How can I make a 'global' set and getElementData? I thought about creating an object, but then how could I get that object on another resource?
Castillo Posted March 11, 2012 Posted March 11, 2012 setElementData ( root, "myData", "Hello World!" ) getElementData ( root, "myData" ) You can also set the data to the console. setElementData( getElementByIndex ( "console", 0 ), "myData", "Hello World!" ) getElementData( getElementByIndex ( "console", 0 ), "myData" )
Feche1320 Posted March 11, 2012 Author Posted March 11, 2012 Meh I'll add it to root, it's easier >.< Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now